ChucK rockers, Hi list! I'm Graham. I like ChucK. Can someone give a working example of the Modulate Ugen? I hooked it up in the output of an STK instrument, but got no noise. Is it something you must poll for values, perhaps? Here's my unsuccessful try: -- Scale sc; //this is some utility code Wurley w => Modulate m => dac; m.vibratoGain( 0.5 ); m.randomGain( 0.5 ); m.vibratoRate( 1.0 ); int i,j; [0, 1, 2, 4, 5, 1, 2, 4, 3] @=> int mel[]; [1, 1, 3, 2, 1, 1, 2, 1, 1] @=> int dur[]; for (0=>int i; ; i++) { i%mel.cap() => int ind; sc.scaleFreq( mel[ind]+2, sc.mixo, 4, 0 ) => w.freq; w.noteOn( 0.4 ); 250::ms => now; } -- I'm running with the latest audicle and chuck on WinXP. best, Graham
Hi Graham!
Can someone give a working example of the Modulate Ugen?
One use is to multiply its output with a signal: // patch into gain sinosc s => gain g => dac; Modulate mod => g; // multiply 3 => g.op; // set freq 220 => s.freq; // set rate in hz mod.vibratoRate( 6.0 ); // set gain mod.vibratoGain( .2 ); // set random gain mod.randomGain( .1 ); // infinite time loop while( true ) 10::second => now; There are other ways to use Modulate (perhaps at your own chosen rate). Hope this helps! Best, Ge!
Thanks, This works excellently. I haven't yet mastered using the alternate operators for Ugens. This one works kind of like an LFO, it seems. I will have more questions, as I have invested much time in using Chuck to try and make cheesy pop music. Graham On Wed, 8 Feb 2006, Ge Wang wrote:
Hi Graham!
Can someone give a working example of the Modulate Ugen?
One use is to multiply its output with a signal:
// patch into gain sinosc s => gain g => dac; Modulate mod => g;
// multiply 3 => g.op;
// set freq 220 => s.freq;
// set rate in hz mod.vibratoRate( 6.0 ); // set gain mod.vibratoGain( .2 ); // set random gain mod.randomGain( .1 );
// infinite time loop while( true ) 10::second => now;
There are other ways to use Modulate (perhaps at your own chosen rate).
Hope this helps!
Best, Ge! _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (2)
-
Ge Wang
-
Graham Coleman