# [chuck-users] FM

Alberto Alassio alberto.alassio at gmail.com
Fri Oct 5 07:09:20 EDT 2012

```But what is the difference between
1)

cf + (index * m.last()) => c.freq;

and

2)
cf + ( index * m.freq () ) => c.freq;

?

On Fri, Oct 5, 2012 at 12:59 PM, Alberto Alassio
<alberto.alassio at gmail.com>wrote:

> Ok I've looked into the web and found a similar question and found a
> similar (but working )solution.
>
> The difference is in modulator.
>
>
>
> https://lists.cs.princeton.edu/pipermail/chuck-users/2012-August/006885.html
>
>
>
>
>
>
> On Thu, Oct 4, 2012 at 5:10 PM, Alberto Alassio <alberto.alassio at gmail.com
> > wrote:
>
>> Hi guys, I was looking at chuck manual, talking about LFO and then FM
>> came to my mind. But...How?
>>
>> I was thinking to a very simple FM like this:
>>
>> 1) SinOsc  alpha   carrier
>> 2) SinOsc beta    modulator
>> 3) SinOsc gamma  beta's amplitude modulator
>>
>> So i thought something like this
>>
>> SinOsc alpha => dac;
>> SinOsc beta => blackhole;
>> SinOsc gamma => blackhole;
>>
>> then oscillators frequencies
>> 220 => alpha.freq;
>>
>> 4 => gamma.freq;
>> while (20::ms => now )
>> {
>> (gamma.last () ) + 2 => beta.freq;   in this way I've got my amplitude
>> modulation on beta.
>>
>> Then I have to
>>
>> Beta.freq + alpha.freq => alpha.freq    - Frequencies sum. -
>> }
>>
>> 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?
>>
>>
>> Thankssssss
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20121005/2a1c163f/attachment.htm>
```