-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPn Pshuf combo.scd
62 lines (59 loc) · 1.3 KB
/
Pn Pshuf combo.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
(
Pdef(0,
Pseed(9197,
Pbind(*[
type: \cln,
snd: \drm,
val: Pn(Pshuf((0.0, 1/5 .. 1.0), 9)),
dur: 1 / Pn(Pshuf((0.0, 1/5 .. 1.0).linlin(0, 1, 5, 11), 9)).round(1/8),
fed: Pn(Pshuf((0.0, 1/5 .. 1.0).linlin(0, 1, 0, 4), 9)),
amp: Pn(Pshuf((0.0, 1/5 .. 1.0).linlin(0, 1, 0.2, 2.0), 9)),
tun: Pn(Pshuf((0.0, 1/5 .. 1.0).linlin(0, 1, 0.0, 5.0), 9)).round(1/7),
pan: 0.25,
sustain: 2,
rel: Pkey(\dur) * Plprand(1.0, 2.0),
lpf: Plprand(20.0, 20000.0),
lhf: Plprand(0.0, 1.0),
tnh: 1,
tng: 8,
dfm: 1,
dfg: 4,
stretch: 1.5,
shp: 1,
sho: Pwhite(0.0, 1.0),
shi: Pwhite(0.0, 1.0),
])
)
).play;
Pdef(1,
Pseed(9197,
Pbind(*[
type: \cln,
snd: \drm,
val: Pn(Pshuf((0.0, 1/5 .. 1.0), 7)),
dur: 1 / Pn(Pshuf((0.0, 1/5 .. 1.0).linlin(0, 1, 5, 11), 7)).round(1/8),
fed: Pn(Pshuf((0.0, 1/5 .. 1.0).linlin(0, 1, 0, 4), 7)),
amp: Pn(Pshuf((0.0, 1/5 .. 1.0).linlin(0, 1, 0.2, 2.0), 7)),
tun: Pn(Pshuf((0.0, 1/5 .. 1.0).linlin(0, 1, 0.0, 5.0), 7)).round(1/7),
pan: 0.75,
sustain: 2,
rel: Pkey(\dur) * Plprand(1.0, 2.0),
lpf: Plprand(20.0, 20000.0),
lhf: Plprand(0.0, 1.0),
tnh: 1,
tng: 8,
dfm: 1,
dfg: 4,
stretch: 1.5,
shp: 1,
shi: Pwhite(0.0, 1.0),
shi: Pwhite(0.0, 1.0),
])
)
).play;
)
s.record
(
Pdef(0).stop;
Pdef(1).stop
)