// Twinkle twinkle in ChucK // Name: // Date: //Set up the patch: SinOsc s => dac; .2 => s.gain; //pick an appropriate gain (volume) //MIDI note 60 is middle C, 61 is the C# above, 59 is the B below, etc. //Std.mtof is a function that computes frequency in Hz from a MIDI note value //e.g., Std.mtof(60) will give you the frequency for middle C Std.mtof(60) => s.freq; // set frequency of s to middle C .5::second => now; // let 1/2 second pass 0 => s.gain; //turns the sound off // Your code goes here .....