[chuck-users] example use of Modulate Ugen
gc at gehennom.net
Thu Feb 9 11:45:07 EST 2006
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.
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!
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
More information about the chuck-users