A SinOsc constantly oscillates between -1 and 1, according to the frequency set. The frequence is stored in/retrieved from m.freq (e.g. 200 for 200 Hz), and the constantly changing/oscillating value (between -1.0 and 1.0) can be retrieved from m.last().<br>
<br><div class="gmail_quote">On Fri, Oct 5, 2012 at 1:09 PM, Alberto Alassio <span dir="ltr"><<a href="mailto:alberto.alassio@gmail.com" target="_blank">alberto.alassio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font>But what is the difference between <br>1) <br></font><pre><font> cf + (index * m.last()) => c.freq;<br><br>and<br><br>2)  <br>cf + ( index * m.freq () ) => c.freq;<br><br>?<br></font></pre><div class="HOEnZb">
<div class="h5"><br><div class="gmail_quote">
On Fri, Oct 5, 2012 at 12:59 PM, Alberto Alassio <span dir="ltr"><<a href="mailto:alberto.alassio@gmail.com" target="_blank">alberto.alassio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Ok I've looked into the web and found a similar question and found a similar (but working )solution.<br><br>The difference is in modulator.<br><br><br><a href="https://lists.cs.princeton.edu/pipermail/chuck-users/2012-August/006885.html" target="_blank">https://lists.cs.princeton.edu/pipermail/chuck-users/2012-August/006885.html</a><div>

<div><br>
<br><div style="margin-left:40px"><br></div><br><br><br><div class="gmail_quote">On Thu, Oct 4, 2012 at 5:10 PM, Alberto Alassio <span dir="ltr"><<a href="mailto:alberto.alassio@gmail.com" target="_blank">alberto.alassio@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys, I was looking at chuck manual, talking about LFO and then FM came to my mind. But...How?<br><br>I was thinking to a very simple FM like this:<br>


<br>1) SinOsc  alpha   carrier<br>2) SinOsc beta    modulator<br>3) SinOsc gamma  beta's amplitude modulator<br>
<br>So i thought something like this<br><br>SinOsc alpha => dac;<br>SinOsc beta => blackhole;<br>SinOsc gamma => blackhole;<br><br>then oscillators frequencies<br>220 => alpha.freq;<br><br>4 => gamma.freq;<br>



while (20::ms => now )<br>{<br>(gamma.last () ) + 2 => beta.freq;   in this way I've got my amplitude modulation on beta.<br><br>Then I have to <br><br>Beta.freq + alpha.freq => alpha.freq    - Frequencies sum. - <br>



}<br><br>This is just an idea..... Could it work ? And how can I make beta and alpha's sum?  May I have to use fun like fun void ( int freqalpha, int freqbeta ) or something like this?<br><br><br>Thankssssss<br><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Release me, insect, or I will destroy the Cosmos!<br>