Debian Codegraph @

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

raw
1 // Listing 7.5 STK Sitar UGen modeling nonlinear bridge and pitch bends
2
3 Sitar sit => dac; // (1) Sitar instrument model
4
5 // (2) Indian scale is called a rag (rhymes with frog)
6 [50,51,54,55,57,58,61,62] @=> int rag[];
7
8 for (0 => int i; i < rag.cap(); i++)
9 {
10 Std.mtof(rag[i]) => sit.freq;
11 1 => sit.noteOn;
12 0.5 :: second => now;
13 }