-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathUpdating ListPattern objects in realtime.scd
64 lines (64 loc) · 1.3 KB
/
Updating ListPattern objects in realtime.scd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
(
~wait = Pxshuf((4, 8 .. 20), inf).asStream;
Routine{
Routine{
~list1 = List[0];
~list1.array = Array.rand(5, -14, 14);
Pdef(0,
Pbind(*[
type: \cln,
snd: \kps,
scale: Scale.mixolydian(\vallotti),
degree: Pseq(~list1, inf),
dur: 1/8,
amp: Pseq([1.9, 1.5, 1.5, 1.5, 1.5], inf) / Pkey(\degree).linlin(-14, 14, 0.8, 1.2),
rel: 1/4,
crv: 8,
sustain: 1/2,
lhf: 0.275,
])
).play;
~wait.next.wait;
}.loop.play;
Routine{
~list2 = List[0];
~list2.array = Array.rand(6, -14, 14);
Pdef(1,
Pbind(*[
type: \cln,
snd: \kps,
scale: Scale.mixolydian(\vallotti),
degree: Pseq(~list2, inf),
dur: 1/8,
amp: Pseq([1.9, 1.5, 1.5, 1.5, 1.5, 1.5], inf) / Pkey(\degree).linlin(-14, 14, 0.8, 1.2),
pan: 0.25,
rel: 1/4,
crv: 8,
sustain: 1/2,
lhf: 0.275,
])
).play;
~wait.next.wait;
}.loop.play;
Routine{
~list3 = List[0];
~list3.array = Array.rand(7, -14, 14);
Pdef(2,
Pbind(*[
type: \cln,
snd: \kps,
scale: Scale.mixolydian(\vallotti),
degree: Pseq(~list3, inf),
dur: 1/8,
amp: Pseq([1.9, 1.5, 1.5, 1.5, 1.5, 1.5, 1.5], inf) / Pkey(\degree).linlin(-14, 14, 0.8, 1.2),
pan: 0.75,
rel: 1/4,
crv: 8,
sustain: 1/2,
lhf: 0.275,
])
).play;
~wait.next.wait;
}.loop.play;
}.play
)