[chuck-users] dorkbot-chicago tomorrow

Tom Lieber alltom at gmail.com
Mon Apr 10 23:01:03 EDT 2006


On 4/10/06, Tom Lieber <alltom at gmail.com> wrote:
> 2) The following code sounds weird when played, like it's missing a
> note somewhere near the end:
>
> Scale sc; // The provider of scales
> StifKarp inst => dac;
> [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] @=> int mel[];
>
> for(0 => int i; ; i++){
>         std.mtof ( 12*4 + sc.scale ( mel[i % mel.cap ()], sc.maj ) )
> => inst.freq;
>         inst.noteOn(0.5);
>         300::ms => now;
> }

I think I had a syntax error elsewhere!

Sincerely,

Tom Lieber
http://AllTom.com/
http://GadgetLife.org/


More information about the chuck-users mailing list