-
Notifications
You must be signed in to change notification settings - Fork 7
/
timewavesynth_script.scd
312 lines (290 loc) · 19.3 KB
/
timewavesynth_script.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
//Important Note: You must load the Timewave synthesizer program and run the synth by pressing the
//"synth0" button at least once before this script can run.
/*Order of execution to run script and record:
1. Press "Ctrl/Cmd - Enter" anywhere inside the "//1 - LOAD SYNTH FUNCTIONS" parenthesis about 50 lines down,
2. Click on the same line as "//2 - START RECORDING" just above "//1 - LOAD SYNTH FUNCTIONS" and press "Ctrl/Cmd - Enter",
3. Press "Ctrl/Cmd - Enter" anywhere inside the "//3 - Routine" parenthesis about 10 lines down...
The recording file location will be found in the post window upon evaluating "s.record;"...
Leave out #2 to run the script without recording...
You can press "Ctrl/Cmd - Period" to stop synth/free the sever.
You can compose a piece, and find guides for doing so, inside the "//3 - Routine" function. */
((//3 - Routine
r = Routine({/*trace*/ ~st = 0; ~trace = {("event-"++(~st = ~st + 1).asString).postln;}; ~number_of_synths.do(x = 0; {("vol"++(x=x+1)).asSymbol.envirPut(/*volume*/ ~vol)});
1.do({
//duration of each chord
a = 8;
//Copy and paste "saved" chords from the "copy" button inside the Timewave synthesizer GUI here:
//Choose to change each duration individually by changing the "a" variable in the code below this line, as well as "synthopen/synthflow/synthslide".
//Also, the amount of frequency values in the arrays must be >= "~number_of_synths". Although, this is done
//automatically when using the generated code and values from the "copy" button in the GUI. "0"'s can be used to fill in empty spots.
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 525.7244292648, 646.87931910571, 882.91913643716, 1181.3955692862, 706.55967076687, 711.25161146077, 977.22674582697, 662.50413564615, 0, 0, 0, 0 ].at(x-1))}); ~synthopen.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 1316.2675385788, 1316.2675385788, 658.1337692894, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 1051.0271787501, 1051.0271787501, 525.51358937505, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 937.1102649523, 937.1102649523, 937.1102649523, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 824.55305817848, 824.55305817848, 822.73593638317, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 824.55305817848, 1037.2062139187, 1037.2062139187, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 554.31101031015, 554.31101031015, 554.31101031015, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 521.10543213641, 521.10543213641, 521.10543213641, 521.10543213641, 521.10543213641, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 525.7244292648, 646.87931910571, 882.91913643716, 1181.3955692862, 706.55967076687, 711.25161146077, 977.22674582697, 662.50413564615, 0, 0, 0, 0 ].at(x-1))}); ~synthopen.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 1316.2675385788, 1316.2675385788, 658.1337692894, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 1051.0271787501, 1051.0271787501, 525.51358937505, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 937.1102649523, 937.1102649523, 937.1102649523, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 824.55305817848, 824.55305817848, 822.73593638317, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 824.55305817848, 1037.2062139187, 1037.2062139187, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 1100.8670554563, 1316.2675385788, 554.31101031015, 554.31101031015, 554.31101031015, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([ 654.05453931384, 879.03193048766, 941.25430167146, 521.10543213641, 521.10543213641, 521.10543213641, 521.10543213641, 521.10543213641, 0, 0, 0, 0 ].at(x-1))}); ~synthflow.value; ~trace.value; (a).wait;
//fade out function
100.do({~number_of_synths.do(x = 0; {("vol"++(x=x+1)).asSymbol.envirPut(("vol"++x).asSymbol.envirGet - (~vol/100))}); ~synthflow.value; 0.1.wait;});
//stop everything
~synthfree.value; 2.wait; s.stopRecording;
~number_of_synths.do(x = 0; {("vol"++(x=x+1)).asSymbol.envirPut(~vol)});
});}););
r.play;
);
s.record; //2 - START RECORDING
s.stopRecording; // STOP RECORDING
(//1 - LOAD SYNTH FUNCTIONS
~synthopen = {
case
{((~l1a.isRunning == false) and: (~l1a1.isRunning == false)) or: ~l1a1.isRunning == true}{
if(~l1a1.isRunning == true, {
(1.do({
s.makeBundle(0, {
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"b1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"c1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"d1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"e1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"f1").asSymbol.envirGet.do(_.set(\dur, 0));
});
});
}););
});
(
1.do({
6.do(x = 0; {("s"++(x=x+1)).asSymbol.envirPut([\gsineicfld6, \gsineicrld6, \gsineicfld2, \gsineicrld2, \gsineicfld1, \gsineicrld1].at(x-1))});
case
{~sendreplysynthdef_on == 0}{~number_of_synths.do(x = 0; {("s5_"++(x=x+1)).asSymbol.envirPut(\gsineicfld1)});}
{~sendreplysynthdef_on == 1}{~number_of_synths.do(x = 0; {("s5_"++(x=x+1)).asSymbol.envirPut(\gsineicfld1_f++(x))}); ~sendreply_oscfunc_array.value;};
s.makeBundle(0, {
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a").asSymbol.envirPut(Synth(~s1, [\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]).register;);
("l"++(x)++"b").asSymbol.envirPut(Synth(~s2, [\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]););
("l"++(x)++"c").asSymbol.envirPut(Synth(~s3, [\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]););
("l"++(x)++"d").asSymbol.envirPut(Synth(~s4, [\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]););
("l"++(x)++"e").asSymbol.envirPut(Synth(("s5_"++(x)).asSymbol.envirGet, [\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]););
("l"++(x)++"f").asSymbol.envirPut(Synth(~s6, [\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]););
});
});
});
);
if(~l1a1.isRunning == true, {
AppClock.sched(0.161803398875, {
(x = 0; ((Array.fill(~number_of_synths, {[
("l"++(x=x+1)++"a1").asSymbol.envirGet.do(_.free);
("l"++(x)++"b1").asSymbol.envirGet.do(_.free);
("l"++(x)++"c1").asSymbol.envirGet.do(_.free);
("l"++(x)++"d1").asSymbol.envirGet.do(_.free);
("l"++(x)++"e1").asSymbol.envirGet.do(_.free);
("l"++(x)++"f1").asSymbol.envirGet.do(_.free);
]}).flatten).do(_.free))); ~slideroutine.stop;
});
});
}
{~l1a.isRunning == true}{
(1.do({
s.makeBundle(0, {
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"b").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"c").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"d").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"e").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"f").asSymbol.envirGet.do(_.set(\dur, 0));
});
});
}););
(
1.do({
6.do(x = 0; {("s"++(x=x+1)).asSymbol.envirPut([\gsineicfld6, \gsineicrld6, \gsineicfld2, \gsineicrld2, \gsineicfld1, \gsineicrld1].at(x-1))});
case
{~sendreplysynthdef_on == 0}{~number_of_synths.do(x = 0; {("s5_"++(x=x+1)).asSymbol.envirPut(\gsineicfld1)});}
{~sendreplysynthdef_on == 1}{~number_of_synths.do(x = 0; {("s5_"++(x=x+1)).asSymbol.envirPut(\gsineicfld1_f++(x))}); ~sendreply_oscfunc_array.value;};
s.makeBundle(0, {
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a1").asSymbol.envirPut(Synth(~s1, [\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]).register;);
("l"++(x)++"b1").asSymbol.envirPut(Synth(~s2, [\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]););
("l"++(x)++"c1").asSymbol.envirPut(Synth(~s3, [\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]););
("l"++(x)++"d1").asSymbol.envirPut(Synth(~s4, [\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]););
("l"++(x)++"e1").asSymbol.envirPut(Synth(("s5_"++(x)).asSymbol.envirGet, [\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]););
("l"++(x)++"f1").asSymbol.envirPut(Synth(~s6, [\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet]););
});
});
});
);
AppClock.sched(0.161803398875, {
(x = 0; ((Array.fill(~number_of_synths, {[
("l"++(x=x+1)++"a").asSymbol.envirGet.do(_.free);
("l"++(x)++"b").asSymbol.envirGet.do(_.free);
("l"++(x)++"c").asSymbol.envirGet.do(_.free);
("l"++(x)++"d").asSymbol.envirGet.do(_.free);
("l"++(x)++"e").asSymbol.envirGet.do(_.free);
("l"++(x)++"f").asSymbol.envirGet.do(_.free);
]}).flatten).do(_.free))); ~slideroutine.stop;
});
};
};
~synthflow = {
case
{~l1a1.isRunning == true}{
(1.do({
s.makeBundle(0, {
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"b1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"c1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"d1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"e1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"f1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
});
});
}););
}
{~l1a.isRunning == true} {
(1.do({
s.makeBundle(0, {
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"b").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"c").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"d").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"e").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"f").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
});
});
}););
};
};
~synthslide = {
case
{~l1a1.isRunning == true}{(
~slideroutine = Routine({1.do({
~slidedo.do({~slidecount=~slidecount-1;
(
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut(("f"++(x)).asSymbol.envirGet + ("sf"++(x)).asSymbol.envirGet)});
s.makeBundle(0, {
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"b1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"c1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"d1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"e1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"f1").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
});
});
);
(~slidetime/~slidedo).wait;});
});}).play;);}
{~l1a.isRunning == true} {(
~slideroutine = Routine({1.do({
~slidedo.do({~slidecount=~slidecount-1;
(
~number_of_synths.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut(("f"++(x)).asSymbol.envirGet + ("sf"++(x)).asSymbol.envirGet)});
s.makeBundle(0, {
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"b").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"c").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"d").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd3, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"e").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
("l"++(x)++"f").asSymbol.envirGet.do(_.set(\dur, ("f"++(x)).asSymbol.envirGet/~icd6, \lpfl, ~lpfl, \lpf_rq, ~lpf_rq, \vol, ("vol"++(x)).asSymbol.envirGet));
});
});
);
(~slidetime/~slidedo).wait;});
});}).play;);};
};
~synthpause = {(
case
{~l1a1.isRunning == true}{
(1.do({
s.makeBundle(0, {
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"b1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"c1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"d1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"e1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"f1").asSymbol.envirGet.do(_.set(\dur, 0));
});
});
}););
}
{~l1a.isRunning == true} {
(1.do({
s.makeBundle(0, {
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"b").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"c").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"d").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"e").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"f").asSymbol.envirGet.do(_.set(\dur, 0));
});
});
}););
};
);
};
~synthfree = {
(
case
{~l1a1.isRunning == true}{
(1.do({
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"b1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"c1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"d1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"e1").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"f1").asSymbol.envirGet.do(_.set(\dur, 0));
});
}););
AppClock.sched(0.161803398875, {
(x = 0; ((Array.fill(~number_of_synths, {[
("l"++(x=x+1)++"a1").asSymbol.envirGet.do(_.free);
("l"++(x)++"b1").asSymbol.envirGet.do(_.free);
("l"++(x)++"c1").asSymbol.envirGet.do(_.free);
("l"++(x)++"d1").asSymbol.envirGet.do(_.free);
("l"++(x)++"e1").asSymbol.envirGet.do(_.free);
("l"++(x)++"f1").asSymbol.envirGet.do(_.free);
]}).flatten).do(_.free))); ~slideroutine.stop;
});
}
{~l1a.isRunning == true}{
(1.do({
(~number_of_synths).do(x = 0; {
("l"++(x=x+1)++"a").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"b").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"c").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"d").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"e").asSymbol.envirGet.do(_.set(\dur, 0));
("l"++(x)++"f").asSymbol.envirGet.do(_.set(\dur, 0));
});
}););
AppClock.sched(0.161803398875, {
(x = 0; ((Array.fill(~number_of_synths, {[
("l"++(x=x+1)++"a").asSymbol.envirGet.do(_.free);
("l"++(x)++"b").asSymbol.envirGet.do(_.free);
("l"++(x)++"c").asSymbol.envirGet.do(_.free);
("l"++(x)++"d").asSymbol.envirGet.do(_.free);
("l"++(x)++"e").asSymbol.envirGet.do(_.free);
("l"++(x)++"f").asSymbol.envirGet.do(_.free);
]}).flatten).do(_.free))); ~slideroutine.stop;
});
};
);
};
);
/* e-mail: ken_brant@ymail.com */