Debian Codegraph @

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

raw
1 // Listing 7.8 Fiddling around with the STK Bowed UGen
2
3 // Test some Bowed parameters
4 Bowed viol => dac;
5
6 for (1 => int i; i <= 5; i++) {
7 for (1 => int j; j <= 5; j++) {
8 i*0.2 => viol.bowPressure; // (1) Gradually increases bowPressure...
9 j*0.2 => viol.bowPosition; // (2) ...and changes bowPosition.
10
11 <<< "pres=", i*0.2, "pos=", j*0.2 >>>;
12
13 1 => viol.noteOn;
14 0.3 :: second => now;
15
16 1 => viol.noteOff;
17 0.1 :: second => now;
18 }
19 }