Hi, I was trying to recreate a simple fm synth in sc3 and chuck , so i can be able to compare the sounds of both. Is there any sc3 users in this list? i ve made this version of the fm code from chuck web site but it sounds so different. I was wondering maybe i made anything wrong? I was wondering also if doing this in chuck " m.last()" will be the same as "mod " in sc3? thanks. R. here is the code. Chuck: // FM synthesis by hand // carrier SinOsc c => dac; // modulator SinOsc m => blackhole; // carrier frequency 220 => float cf; // modulator frequency 550 => float mf => m.freq; // index of modulation 200 => float index; // time-loop while( true ) { // modulate cf + (index * m.last()) => c.freq; // advance time by 1 samp 1::samp => now; } Supercollider: ( SynthDef("fm1", { arg bus = 0, freq = 440, index = 200, mul = 0.05; var mod; var car; mod = SinOsc.ar( 550, 0, 1 ); car = SinOsc.ar( freq + (index * mod) , 0, mul ); Out.ar(bus,car) }).load(s); ) Synth("fm1");
On 13 August 2012 15:57, ronni montoya
Hi, I was trying to recreate a simple fm synth in sc3 and chuck , so i can be able to compare the sounds of both.
Is there any sc3 users in this list? i ve made this version of the fm code from chuck web site but it sounds so different.
I was wondering maybe i made anything wrong?
Well, I don't think anything is "wrong", but I'd encourage a look here; http://chuck.cs.princeton.edu/doc/program/ugen_full.html#sinosc There you'll see that fm synthesis functionality is build into the humble SinOsc already for your convenience. To use it you can send your preferred modulator to its input; SinOsc mod => SinOsc car => dac; Set your settings according to that page and your own taste and off you go. I seem to remember we are borrowing some oscillators from SC, of these are amongst those you should be able to make it sound the same. Hope that helps, Kas.
participants (2)
-
Kassen
-
ronni montoya