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">https://lists.cs.princeton.edu/pipermail/chuck-users/2012-August/006885.html</a><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>