[chuck-users] example use of Modulate Ugen

Graham Coleman gc at gehennom.net
Tue Feb 7 09:38:07 EST 2006


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


More information about the chuck-users mailing list