examples\book\digital-artists\chapter7\Listing7.5.ck
// Listing 7.5 STK Sitar UGen modeling nonlinear bridge and pitch bends

Sitar sit => dac;          // (1) Sitar instrument model

// (2) Indian scale is called a rag (rhymes with frog)
[50,51,54,55,57,58,61,62] @=> int rag[];

for (0 => int i; i < rag.cap(); i++)
{
    Std.mtof(rag[i]) => sit.freq;
    1 => sit.noteOn;
    0.5 :: second => now;
}
home .. language .. program .. examples