[chuck-users] user study!!!

Graham Coleman gc at gehennom.net
Thu Jun 15 17:15:16 EDT 2006


> this string:
>
>   std.mtof( 48 + scale( mel[i%mel.cap()], major ) => inst.freq; //set the note
>
> lacks an )
>
> should be
>
>   std.mtof( 48 + scale( mel[i%mel.cap()], major )) => inst.freq; //set the note

Thanks for the feedback, fixed!

Graham

On Thu, 15 Jun 2006, biotechisgodzilla.wifebeater wrote:

> This is in merit of the great tutorial at
> http://ravelite.org/chuck-notes/tutorial.html
>
> there is a little typo here:
>
>
>
> Now use this function to simulate indexing into the scale.
>
> [0,2,3,1,4,2,6,3,4,4] @=> int mel[]; //sequence data
> [0,2,4,5,7,9,11,12] @=> int major[]; //major scale
>
> for (0=>int i; ; i++) { //infinite loop
>   std.mtof( 48 + scale( mel[i%mel.cap()], major ) => inst.freq; //set the note
>   inst.noteOn( 0.5 ); //play a note at half volume
>   300::ms => now; //compute audio for 0.3 sec
> }
>
>
> seeya
> .mike
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>


More information about the chuck-users mailing list