Here is a simple ChucK program that performs the above dataset with a sine wave. Click "Start" to run the live ChucK code. Try out some live edits by modifying something in the live code block and then clicking "Replace" to hear your changes. Suggestions include, for example, lowering the 100::ms interval to speed up the tempo.
////////////////////////////////////////////////////////////////////////////////////////////////////////// change timbre SawOsc osc => dac; // change pitch range osc.freq(vals[i]*1000+500); // change tempo 10::ms => now;
50::ms => now; // start after 50ms SinOsc osc => dac; // play the data with a sine wave for (0 => int i; i < nVals; i++) { osc.freq(vals[i]*1000+200); // data values in range 0 - 1 100::ms => now; }