-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelativeDegreePatterns.scd
91 lines (71 loc) · 1.23 KB
/
relativeDegreePatterns.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// how to make a freq pattern (for instance [ 100, 50, 50, 120] ) relative to transpose*degreePattern*scale
(
~transpose=0;
Pdefn(\degree, Pseq([0,1,2], inf));
~scale = [0,4,11];
)
(
Pdef(\pattern,
Pbind(
\scale, Pfunc({~scale}),
\degree, Pdefn(\degree) + Pfunc({~transpose}),
\dur, 0.25,
)
).play;
)
Pdef(\pattern).stop;
(
~transpose=0;
Pdefn(\degree, Pseq([0,1,5], inf));
~scale = [0,4,7,12];
)
(
~transpose = 3;
Pdefn(\degree, Pseq([0,1,5], inf));
~scale = [0,4,7,12];
)
// pick a random scale
(
~transpose = 1;
Pdefn(\degree, Pseq([0,1,5], inf));
~scale = Scale.choose;
)
(
~transpose = 0;
Pdefn(\degree, Pseq((0..7), inf));
~scale = Scale.phrygian;
)
(
~transpose = 0;
Pdefn(\degree, Pseq((0..7), inf));
~scale = Scale.dorian;
)
(
~transpose = 0;
Pdefn(\degree, Pseq((0..7), inf));
~scale = Scale.majorPentatonic;
)
(
~transpose = 0;
Pdefn(\degree, Pseq((0..7), inf));
~scale = Scale.minorPentatonic;
)
(
~transpose = 0;
Pdefn(\degree, Pseq((0..7), inf));
~scale = Scale.spanish;
)
(
~transpose = 0;
Pdefn(\degree, Pseq((0..7), inf));
~scale = Scale.diminished;
)
(
~transpose = 0;
Pdefn(\degree, Pseq((0..7), inf));
~scale = Scale.augmented;
)
// print all scales:
Scale.directory
Pdef(\pattern).stop;
Pdef(\pattern).play;