2 summary:: applying ascending and descending scales to event stream
3 categories:: Streams-Patterns-Events>Patterns>Math
7 Basic classical indian scale pattern. Allowing to apply an ascending scale (aroh) and a descending scale (avaroh).
9 Note that no special pakads (movements) or vakras (twists) are applied.
11 The pakad is often a natural consequence of the notes of arohana / avarohana (ascending and descending structures). This is the purpose of this pattern.
18 Pseq([1, 2, 3, 2, 5, 4, 3, 4, 2, 1], 2),
27 //___indian video game (1)
29 SynthDef("ivg", { arg out, freq=900, pan;
31 trig = Impulse.kr(LFClipNoise.kr(4, 3, LFClipNoise.kr(0.2, 2, 7)));
33 SinOsc.ar(freq, 0, Decay.kr(trig, 1.8)).distort
36 Out.ar(out, Pan2.ar(snd, pan))
41 var aroh, avaroh, synth, str, pat;
43 //gandhari raga. vadi: dha (7) samvadi: ga (3)
45 aroh = #[0, 2, 5, 7, 10];
46 avaroh = #[0, 1, 3, 5, 7, 9, 10];
48 synth = Synth.head(s, \ivg);
49 pat = Prand([0, 2, 3, 4, 2, 1, 0, -1, -2], inf);
50 str = Pavaroh(pat, aroh, avaroh).asStream;
54 synth.set(\freq, midicps(str.next + 60) );
55 rrand([0.1,1.0].choose, 0.5).wait;