-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasciiToScale.scd
154 lines (126 loc) · 4.03 KB
/
asciiToScale.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
//rounds ascii value to a given scale
~asciiToScale = {|ascii, scale, length|
var nearest;
// function to transform to midi keys
nearest = { |arr, scale|
arr.cpsmidi.round.asInteger.collect(_.nearestInScale(scale, length))
};
nearest.(ascii, scale);
};
//oyster patties
~oysterPatties[\ingChar].size.do{|i|
~oysterPatties[\ingChar][i] = ~asciiToScale.
(~oysterPatties[\ingChar][i], Scale.major, 12);
};
~oysterPatties[\dirChar].size.do{|i|
~oysterPatties[\dirChar][i] = ~asciiToScale.
(~oysterPatties[\dirChar][i], Scale.major, 12);
};
~oysterPatties[\verbChar].size.do{|i|
~oysterPatties[\verbChar][i] = ~asciiToScale.
(~oysterPatties[\verbChar][i], Scale.major, 12);
};
//banana nut bread
~bananaNutBread[\ingChar].size.do{|i|
~bananaNutBread[\ingChar][i] = ~asciiToScale.
(~bananaNutBread[\ingChar][i], Scale.major, 12);
};
~bananaNutBread[\dirChar].size.do{|i|
~bananaNutBread[\dirChar][i] = ~asciiToScale.
(~bananaNutBread[\dirChar][i], Scale.major, 12);
};
~bananaNutBread[\verbChar].size.do{|i|
~bananaNutBread[\verbChar][i] = ~asciiToScale.
(~bananaNutBread[\verbChar][i], Scale.major, 12);
};
//brownies
~brownies[\ingChar].size.do{|i|
~brownies[\ingChar][i] = ~asciiToScale.
(~brownies[\ingChar][i], Scale.major, 12);
};
~brownies[\dirChar].size.do{|i|
~brownies[\dirChar][i] = ~asciiToScale.
(~brownies[\dirChar][i], Scale.major, 12);
};
~brownies[\verbChar].size.do{|i|
~brownies[\verbChar][i] = ~asciiToScale.
(~brownies[\verbChar][i], Scale.major, 12);
};
//creole bread pudding
~creoleBreadPudding[\ingChar].size.do{|i|
~creoleBreadPudding[\ingChar][i] = ~asciiToScale.
(~creoleBreadPudding[\ingChar][i], Scale.major, 12);
};
~creoleBreadPudding[\dirChar].size.do{|i|
~creoleBreadPudding[\dirChar][i] = ~asciiToScale.
(~creoleBreadPudding[\dirChar][i], Scale.major, 12);
};
~creoleBreadPudding[\verbChar].size.do{|i|
~creoleBreadPudding[\verbChar][i] = ~asciiToScale.
(~creoleBreadPudding[\verbChar][i], Scale.major, 12);
};
//frozen lemon pie
~frozenLemonPie[\ingChar].size.do{|i|
~frozenLemonPie[\ingChar][i] = ~asciiToScale.
(~frozenLemonPie[\ingChar][i], Scale.major, 12);
};
~frozenLemonPie[\dirChar].size.do{|i|
~frozenLemonPie[\dirChar][i] = ~asciiToScale.
(~frozenLemonPie[\dirChar][i], Scale.major, 12);
};
~frozenLemonPie[\verbChar].size.do{|i|
~frozenLemonPie[\verbChar][i] = ~asciiToScale.
(~frozenLemonPie[\verbChar][i], Scale.major, 12);
};
//lemon thins
~lemonThins[\ingChar].size.do{|i|
~lemonThins[\ingChar][i] = ~asciiToScale.
(~lemonThins[\ingChar][i], Scale.major, 12);
};
~lemonThins[\dirChar].size.do{|i|
~lemonThins[\dirChar][i] = ~asciiToScale.
(~lemonThins[\dirChar][i], Scale.major, 12);
};
~lemonThins[\verbChar].size.do{|i|
~lemonThins[\verbChar][i] = ~asciiToScale
.(~lemonThins[\verbChar][i], Scale.major, 12);
};
//oatmeal cookies
~oatmealCookies[\ingChar].size.do{|i|
~oatmealCookies[\ingChar][i] = ~asciiToScale.
(~oatmealCookies[\ingChar][i], Scale.major, 12);
};
~oatmealCookies[\dirChar].size.do{|i|
~oatmealCookies[\dirChar][i] = ~asciiToScale.
(~oatmealCookies[\dirChar][i], Scale.major, 12);
};
~oatmealCookies[\verbChar].size.do{|i|
~oatmealCookies[\verbChar][i] = ~asciiToScale.
(~oatmealCookies[\verbChar][i], Scale.major, 12);
};
//pecan meatballs
~pecanMeatballs[\ingChar].size.do{|i|
~pecanMeatballs[\ingChar][i] = ~asciiToScale.
(~pecanMeatballs[\ingChar][i], Scale.major, 12);
};
~pecanMeatballs[\dirChar].size.do{|i|
~pecanMeatballs[\dirChar][i] = ~asciiToScale.
(~pecanMeatballs[\dirChar][i], Scale.major, 12);
};
~pecanMeatballs[\verbChar].size.do{|i|
~pecanMeatballs[\verbChar][i] = ~asciiToScale.
(~pecanMeatballs[\verbChar][i], Scale.major, 12);
};
//pecan pralines
~pecanPralines[\ingChar].size.do{|i|
~pecanPralines[\ingChar][i] = ~asciiToScale.
(~pecanPralines[\ingChar][i], Scale.major, 12);
};
~pecanPralines[\dirChar].size.do{|i|
~pecanPralines[\dirChar][i] = ~asciiToScale.
(~pecanPralines[\dirChar][i], Scale.major, 12);
};
~pecanPralines[\verbChar].size.do{|i|
~pecanPralines[\verbChar][i] = ~asciiToScale.
(~pecanPralines[\verbChar][i], Scale.major, 12);
};