Debian Codegraph @

examples/book/digital-artists/chapter7/Listing7.1.ck

raw
1 // Listing 7.1 Playing the ChucK STK Clarinet physical model unit generator
2
3 // STK Physical Clarinet Model
4 Clarinet clar => dac;
5
6 0.2 => float blow; // initial blowing pressure
7
8 while ((0.05 +=> blow) < 1.0) // gradually increases from there
9 {
10 blow => clar.startBlowing; // alternately blowing
11 0.2 :: second => now;
12
13 1 => clar.stopBlowing; // and not blowing
14 0.2 :: second => now;
15 }
16