ChucK/Examples/Line1

From CSWiki
Revision as of 05:14, 10 August 2007 by Gasten (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A equivalent of lineX from SC in ChucK. Here I'm manipulating the freq of a sinosc.

SinOsc s => dac;
Envelope env => blackhole;

300 => env.value;           // From
900 => env.target;          // To
500::ms => env.duration;    // Within

1 => env.keyOn;
while(true) {
    env.value() => s.freq;
    samp => now;            // Tried 50::ms instead of samp, yet?
}

Masterpiece by Gasten