2 //To run the synth, click anywhere within the parenthesis above and press "ctrl - enter" or "cmd - return".
3 //A guide to using the instrument is available by clicking on the "i" button in the bottom right corner of the GUI.
4 //Several lines down, where it says "//VARIABLES YOU MAY WISH TO CHANGE", are variables that you can change for various things,
5 //including key codes for keyboard functions.
7 //It is recommended to reboot the interpreter in the "Language" toolbar, or by hightlighting - (thisProcess.platform.recompile);
8 //and pressing "ctrl - enter" or "cmd - return", before each server boot. Rebooting the interpreter is not needed to
9 //evaluate the code below if the server is booted.
11 //You can program/make a song by using the "timewavesynth12script.scd" file
13 //This version is slightly CPU intensive due to the amount of synths it has, so a less-powerful computer may experience trouble running it
15 s.options.memSize = 2097152/2;
21 var point, w, view, view2,
22 vol = 0.02,mute1,mute2,mute3,mute4,mute5,mute6,mute7,mute8,mute9,mute10,mute11,mute12,muteall,unmuteall,
23 g1,g2,g6,g8,g33,g48,g64,g72,g88,gm,ngm1,ngm2,ngm6,set1,set2,menu1,menu2,
24 ts,sts,str,spaceb,b1,b2,b3,b4,button,button1,info,
25 n1,n2,n3,n4,n5,n6,n7,n8,keycodeb,
26 f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12;
29 //VARIABLES YOU MAY WISH TO CHANGE
32 //note A tuning frequency in hz
34 ~tuning_frequency = 432; //default 432 hz
36 ~freqmap = (i = ~tuning_frequency / (2 ** (69 / 12)); a = (-1); b = (-1); Array.fill(128, {i * (2 ** (((a=a+1) / 12).trunc)) * ( (2 ** (12.reciprocal)) ** ((b=b+1) % 12));}));/*~freqmap = (i = 8.0271480262684/*-0.0000000000024*/; ~stepratio = 1.0594630943593; Array.fill(128, { i = i*~stepratio;}));*/
39 //number of KW(King Wen) sequences in a timewave half-cycle (or amplitude x2)
41 ~synthdefnum = 12; //default 12
44 //timewave starting base (lowest) frequency
46 x = 432; y = 432; ~basefreqmap = Array.fill(32, {x=x/1.0835058821738}).reverse++[432]++Array.fill(25, {y=y*1.0835058821738}); //create basefreqmap array
48 ~base_frequency = ~basefreqmap.at(8); //default 8 (63.027950580203). replace "~basefreqmap.at(#)" for custom value.
51 //starting synthdef setting
53 if((~kws_setting == nil) or: (~ratio_setting == nil), {
55 ~kws_setting = 1; //default type of King Wen sequence interpretation
57 ~ratio_setting = "psine1"; //default ratio setting for synthdef
61 //low-pass filter settings
63 if(~low_pass_filter_on == nil, {~low_pass_filter_on = 1}); //set starting low-pass filter on/off. 1 means on - switch to 0 for off.
65 if(~low_pass_filter_set_value == nil, {~low_pass_filter_freq_limit = 1728; //frequency limit for low-pass filter in synthdefs. default is 1728.
69 //default sendreply toggle
71 if(~sendreplysynthdef_on == nil, {~sendreplysynthdef_on = 0; //switch for mid-timewave sequence events. 0 is off, 1 is on. default is 0
73 if(~sendreplyfunc_choose == nil, {~sendreplyfunc_choose = 0; //switch for specific mid-timewave sequence events function. default is 0
75 if(~sendreplyfuncswitch == nil, {~sendreplyfuncswitch = 1; //1 is random western scale note change per timewave half-cycle, 2 is eastern scale. default is 1
81 ~vol = 0.005; //default 0.005
82 12.do(x = 0; {("vol"++(x=x+1)).asSymbol.envirPut(~vol)});
85 //Key codes for keyboard functions - either unicode or keycode. To find key codes, see below:
87 ~rightarrow_keycode = 65363; //next note change increase
88 ~leftarrow_keycode = 65361; //next note change decrease
89 ~uparrow_keycode = 65362; //change synth up
90 ~downarrow_keycode = 65364; //change synth down
92 ~rightarrow_keycode1 = 114; //next note change increase (old version - may not work)
93 ~leftarrow_keycode1 = 113; //next note change decrease (old version - may not work)
94 ~uparrow_keycode1 = 111; //change synth up (old version - may not work)
95 ~downarrow_keycode1 = 116; //change synth down (old version - may not work)
97 ~enter_unicode = 13; //
98 ~s_unicode = 115; //start synth
99 ~m_unicode = 109; //mute/unmute all synths
100 ~r_unicode = 114; //routine/loop function
102 ~t_unicode = 116; //timer function
103 ~c_unicode = 99; //copy function
104 ~i_unicode = 105; //change synth up
105 ~k_unicode = 107; //change synth down
106 ~j_unicode = 106; //next note change decrease
107 ~l_unicode = 108; //next note change increase
108 ~spacebar_unicode = 32; //pause all synths
109 ~one_unicode = 49; //choose synth 1
110 ~two_unicode = 50; //choose synth 2
111 ~three_unicode = 51; //choose synth 3
112 ~four_unicode = 52; //choose synth 4
113 ~five_unicode = 53; //choose synth 5
114 ~six_unicode = 54; //choose synth 6
115 ~seven_unicode = 55; //choose synth 7
116 ~eight_unicode = 56; //choose synth 8
117 ~nine_unicode = 57; //choose synth 9
118 ~ten_unicode = 48; //choose synth 10
119 ~eleven_unicode = 45; //choose synth 11
120 ~twelve_unicode = 61; //choose synth 12
121 ~escape_unicode = 27; //escape function
124 //To find key codes in post window... Hightlight the function and its parenthesis in red below,
125 //and press "ctrl - enter" or "cmd - return" - then a small window called "test" will pop up...
126 //Press the "type" button inside of the window, then press anywhere on the keyboard to find
127 //the key codes in the right-hand side post window. Layout: [unicode, keycode, modifiers]. It is either a unicode
128 //or a keycode. Do not delete the /* and */ characters, or else the
129 //program will not run.
134 var win = Window(\test, Rect(10, 100, 100, 50)),
135 btn = Button(win, Rect(5, 5, 90, 40)).states_([["type"]]);
137 { arg view, char, modifiers, unicode, keycode;
138 ["unicode:"+unicode, "keycode:"+keycode, "modifiers:"+modifiers].postln;
146 //gui set frequency ranges - currently set at the lowest and highest notes on a 128 key range using 432 hz A tuning
147 //you can change the tuning near top
148 //to insert custom ranges, replace "~freqmap.at()" with a hz frequency
150 ~outmin1 = ~freqmap.at(0); // 8.0271480262684 hz //base frequency of upper set
151 ~outmax1 = ~freqmap.at(127); // 12315.783879572 hz //high frequency of upper set
152 ~outmin2 = ~freqmap.at(0)*8; // (8.0271480262684)*8 hz //base frequency of lower set
153 ~outmax2 = ~freqmap.at(127)/8; // (12315.783879572)/8 hz; //high frequency of lower set
161 //increase or decrease magnitude of second and third harmonics for synthdefs and synth functions (not recommend changing if uncertain of effects)
165 ~first_harmonic = 1; //1
166 ~second_harmonic = 2; //2
167 ~third_harmonic = 6; //6
177 ~fth = 1.4142135623729; //default kws binary interval
178 ~bi = ~fth; //~bi = "binary interval" - intverval of key change to a hexagram line's opposite in King Wen sequence
179 ~stepratio = 1.0594630943593;
180 ~nval = 1.0355417528;
182 ~n9 = 1.080059789899;
183 ~n18 = 1.0392592260319;
184 ~n27 = 1.0260044847071;
185 ~n36 = 1.0194406437022;
186 ~n45 = 1.0155225125043;
187 ~n54 = 1.012918794725;
188 ~n63 = 1.0110630844869;
189 ~n72 = 1.0096735332285;
190 ~gm = 1.6180339887499; //phi (golden mean), scaled on 1 key change per King Wen sequence
191 ~gm2 = 1.2720196495141;
192 ~gm6 = 1.0835058821738;
193 ~ngm1 = 1.0549232131786; //phi (golden mean), scaled on 9 key changes per King Wen sequence
194 ~ngm2 = 1.0270945492887;
195 ~ngm6 = 1.0089511542031;
196 ~nngm1 = 1.0075472729363; //phi (golden mean), scaled on 64 key changes per King Wen sequence
197 ~nngm2 = 1.0037665430449;
198 ~nngm6 = 1.0012539413222;
199 ~h1 = 11.10101010101; //based on 19.47:360, scaled on 1 key change per King Wen sequence
200 ~h2 = 4.2999982083345;
201 ~h6 = 1.6261331058274;
202 ~nh1 = 1.3828361607663; //based on 19.47:360, scaled on 9 key changes per King Wen sequence
203 ~nh2 = 1.1759405430404;
204 ~nh6 = 1.0555086286213;
205 ~nnh1 = 1.0466365180627; //based on 19.47:360, scaled on 64 key changes per King Wen sequence
206 ~nnh2 = 1.0230525490231;
207 ~nnh6 = 1.0076258811195;
210 //edit SAVED s1-s8 frequencies/chords. Replace any "[ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]" with desired frequencies.
211 //Example: [~f1=31.385685128991,~f2=86.222407114322,~f3=229.95963599755,~f4=841.97361403235,~f5=894.01606840275,~f6=38.068730542463,~f7=80.91428965114,~f8=554.92014995488,~f9=267.88136743588,~f10=962.78155194321,~f11=772.35072747751,~f12=1365.644617352]
212 //You can find frequencies in the "copy" section of GUI under "saved open/flow 1-8 frequencies:" or "saved slide 1-8 frequencies:".
213 //Remove both the "/*" and "*/" around the code to make evaluable. Put them back to make it unevaluable.
217 12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});
218 12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});
219 12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});
220 12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});
221 12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});
222 12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});
223 12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});
224 12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});
229 //edit STARTING frequencies/chord (not saved s1-s8 frequencies/chords). Replace "[ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]" with starting frequencies.
230 //Example: [~f1=31.385685128991,~f2=86.222407114322,~f3=229.95963599755,~f4=841.97361403235,~f5=894.01606840275,~f6=38.068730542463,~f7=80.91428965114,~f8=554.92014995488,~f9=267.88136743588,~f10=962.78155194321,~f11=772.35072747751,~f12=1365.644617352]
231 //You can find frequencies in the "copy" section of GUI under "current chord/frequencies".
232 //Remove both the "/*" and "*/" around the code to make evaluable. Put them back to make it unevaluable again.
236 12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut(
238 [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]
244 //^Imoprtant note: "edit STARTING frequencies/chord" must be placed after "edit SAVED frequencies/chords" in code in order for it to work correctly
247 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
250 //default starting notes
252 if(([f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil]), {
253 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [
254 (~freqmap.at(127)/8).rand,
255 (~freqmap.at(127)/8).rand,
256 (~freqmap.at(127)/8).rand,
257 (~freqmap.at(127)/8).rand,
258 (~freqmap.at(127)/8).rand,
259 (~freqmap.at(127)/8).rand,
260 (~freqmap.at(127)/8).rand,
261 (~freqmap.at(127)/8).rand,
262 (~freqmap.at(127)/8).rand,
263 (~freqmap.at(127)/8).rand,
264 (~freqmap.at(127)/8).rand,
265 (~freqmap.at(127)/8).rand,
269 if(([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil]), {12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12].at(x-1))});});
271 if([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});});
272 if([~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});});
273 if([~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});});
274 if([~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});});
275 if([~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});});
276 if([~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});});
277 if([~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});});
278 if([~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))});});
280 12.do(x = 0; {("u"++(x=x+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(x-1))});
281 12.do(x = 0; {("u"++(x=x+1)++"b").asSymbol.envirPut([~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b].at(x-1))});
282 12.do(x = 0; {("u"++(x=x+1)++"c").asSymbol.envirPut([~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c].at(x-1))});
283 12.do(x = 0; {("u"++(x=x+1)++"d").asSymbol.envirPut([~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d].at(x-1))});
284 12.do(x = 0; {("u"++(x=x+1)++"e").asSymbol.envirPut([~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e].at(x-1))});
285 12.do(x = 0; {("u"++(x=x+1)++"f").asSymbol.envirPut([~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f].at(x-1))});
286 12.do(x = 0; {("u"++(x=x+1)++"g").asSymbol.envirPut([~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g].at(x-1))});
287 12.do(x = 0; {("u"++(x=x+1)++"h").asSymbol.envirPut([~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h].at(x-1))});
289 /*if(96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"a"++(z=z+1)).asSymbol.envirGet; if(z>=12, {x= x+1; y = 0; z = 0;});}).collect.every({arg item; item == nil;}), {96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"a"++(z=z+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(y=y+1)); if(z>=12, {x= x+1; y = 0; z = 0;});});});
290 if(96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"b"++(z=z+1)).asSymbol.envirGet; if(z>=12, {x= x+1; y = 0; z = 0;});}).collect.every({arg item; item == nil;}), {96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"a"++(z=z+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(y=y+1)); if(z>=12, {x= x+1; y = 0; z = 0;});});});
291 if(96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"c"++(z=z+1)).asSymbol.envirGet; if(z>=12, {x= x+1; y = 0; z = 0;});}).collect.every({arg item; item == nil;}), {96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"a"++(z=z+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(y=y+1)); if(z>=12, {x= x+1; y = 0; z = 0;});});});
292 if(96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"d"++(z=z+1)).asSymbol.envirGet; if(z>=12, {x= x+1; y = 0; z = 0;});}).collect.every({arg item; item == nil;}), {96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"a"++(z=z+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(y=y+1)); if(z>=12, {x= x+1; y = 0; z = 0;});});});
293 if(96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"e"++(z=z+1)).asSymbol.envirGet; if(z>=12, {x= x+1; y = 0; z = 0;});}).collect.every({arg item; item == nil;}), {96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"a"++(z=z+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(y=y+1)); if(z>=12, {x= x+1; y = 0; z = 0;});});});
294 if(96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"f"++(z=z+1)).asSymbol.envirGet; if(z>=12, {x= x+1; y = 0; z = 0;});}).collect.every({arg item; item == nil;}), {96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"a"++(z=z+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(y=y+1)); if(z>=12, {x= x+1; y = 0; z = 0;});});});
295 if(96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"g"++(z=z+1)).asSymbol.envirGet; if(z>=12, {x= x+1; y = 0; z = 0;});}).collect.every({arg item; item == nil;}), {96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"a"++(z=z+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(y=y+1)); if(z>=12, {x= x+1; y = 0; z = 0;});});});
296 if(96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"h"++(z=z+1)).asSymbol.envirGet; if(z>=12, {x= x+1; y = 0; z = 0;});}).collect.every({arg item; item == nil;}), {96.do(x = 1; y = (-1); z = 0; {("sg"++(x)++"a"++(z=z+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(y=y+1)); if(z>=12, {x= x+1; y = 0; z = 0;});});});
299 //set n1-n9 ratio values
302 {~ratio_setting == "psine1";}{~n_value1 = ~gm; ~n_value2 = ~gm2; ~n_value6 = ~gm6;}
303 {~ratio_setting == "psine2";}{~n_value1 = ~ngm1; ~n_value2 = ~ngm2; ~n_value6 = ~ngm6;}
304 {~ratio_setting == "psine3";}{~n_value1 = ~nngm1; ~n_value2 = ~nngm2; ~n_value6 = ~nngm6;}
305 {~ratio_setting == "hsine1";}{~n_value1 = ~h1; ~n_value2 = ~h2; ~n_value6 = ~h6;}
306 {~ratio_setting == "hsine2";}{~n_value1 = ~nh1; ~n_value2 = ~nh2; ~n_value6 = ~nh6;}
307 {~ratio_setting == "hsine3";}{~n_value1 = ~nnh1; ~n_value2 = ~nnh2; ~n_value6 = ~nnh6;};
310 //King Wen sequence interpretation settings 1-3 for synthdefs
312 ~kws_setting_1_a = {[/*1*/ #a,b,c,d,e,f=[ ~a,~b,~c,~d,~e,~f ],/*2*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d/~bi, e = e/~bi, f = f/~bi ],/*3*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],/*4*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],/*5*/ [ a = a/~bi, b = b*~bi, c = c, d = d*~bi, e = e, f = f*~bi ],/*6*/ [ a = a*~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f/~bi ],/*7*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d, e = e, f = f ],/*8*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*9*/ [ a = a*~bi, b = b, c = c, d = d*~bi, e = e*~bi, f = f*~bi ],/*10*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],/*11*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e, f = f ],/*12*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d/~bi, e = e/~bi, f = f/~bi ],/*13*/ [ a = a, b = b, c = c, d = d*~bi, e = e, f = f*~bi ],/*14*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f],/*15*/ [ a = a/~bi, b = b, c = c/~bi, d = d, e = e/~bi, f = f/~bi ],/*16*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],/*17*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi],/*18*/ [ a = a*~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f/~bi ],/*19*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e, f = f*~bi ],/*20*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f/~bi ],/*21*/ [ a = a, b = b/~bi, c = c*~bi, d = d, e = e, f = f*~bi ],/*22*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],/*23*/ [ a = a, b = b, c = c, d = d/~bi, e = e, f = f/~bi ],/*24*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],/*25*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d, e = e, f = f ],/*26*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],/*27*/ [ a = a, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],/*28*/ [ a = a/~bi, b = b*~bi, c = c*~bi, d = d*~bi, e = e*~bi, f = f/~bi ],/*29*/ [ a = a, b = b, c = c/~bi, d = d/~bi, e = e, f = f ],/*30*/ [ a = a*~bi, b = b/~bi, c = c*~bi, d = d*~bi, e = e/~bi, f = f*~bi ],/*31*/ [ a = a/~bi, b = b*~bi, c = c, d = d, e = e, f = f/~bi ],/*32*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],/*33*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*34*/ [ a = a/~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f*~bi ],/*35*/ [ a = a*~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f/~bi ],/*36*/ [ a = a/~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f*~bi ],/*37*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e, f = f ],/*38*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],/*39*/ [ a = a/~bi, b = b*~bi, c = c/~bi, d = d*~bi, e = e/~bi, f = f/~bi ],/*40*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],/*41*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f*~bi ],/*42*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*43*/ [ a = a/~bi, b = b, c = c*~bi, d = d*~bi, e = e*~bi, f = f ],/*44*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],/*45*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],/*46*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],/*47*/ [ a = a, b = b*~bi, c = c*~bi, d = d/~bi, e = e, f = f ],/*48*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],/*49*/ [ a = a, b = b, c = c*~bi, d = d, e = e/~bi, f = f*~bi ],/*50*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],/*51*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f*~bi ],/*52*/ [ a = a*~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f/~bi ],/*53*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f ],/*54*/ [ a = a/~bi, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f*~bi ],/*55*/ [ a = a, b = b, c = c, d = d*~bi, e = e/~bi, f = f ],/*56*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],/*57*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e*~bi, f = f ],/*58*/ [ a = a/~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f*~bi ],/*59*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f/~bi ],/*60*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],/*61*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f ],/*62*/ [ a = a/~bi, b = b/~bi, c = c*~bi, d = d*~bi, e = e/~bi, f = f/~bi ],/*63*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e, f = f*~bi ],/*64*/ [ a = a*~bi, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f/~bi ]]};
313 ~kws_setting_1_b = {[/*1*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],/*2*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d/~bi, e = e/~bi, f = f/~bi ],/*3*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],/*4*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],/*5*/ [ a = a/~bi, b = b*~bi, c = c, d = d*~bi, e = e, f = f*~bi ],/*6*/ [ a = a*~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f/~bi ],/*7*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d, e = e, f = f ],/*8*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*9*/ [ a = a*~bi, b = b, c = c, d = d*~bi, e = e*~bi, f = f*~bi ],/*10*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],/*11*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e, f = f ],/*12*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d/~bi, e = e/~bi, f = f/~bi ],/*13*/ [ a = a, b = b, c = c, d = d*~bi, e = e, f = f*~bi ],/*14*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f],/*15*/ [ a = a/~bi, b = b, c = c/~bi, d = d, e = e/~bi, f = f/~bi ],/*16*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],/*17*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi],/*18*/ [ a = a*~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f/~bi ],/*19*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e, f = f*~bi ],/*20*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f/~bi ],/*21*/ [ a = a, b = b/~bi, c = c*~bi, d = d, e = e, f = f*~bi ],/*22*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],/*23*/ [ a = a, b = b, c = c, d = d/~bi, e = e, f = f/~bi ],/*24*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],/*25*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d, e = e, f = f ],/*26*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],/*27*/ [ a = a, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],/*28*/ [ a = a/~bi, b = b*~bi, c = c*~bi, d = d*~bi, e = e*~bi, f = f/~bi ],/*29*/ [ a = a, b = b, c = c/~bi, d = d/~bi, e = e, f = f ],/*30*/ [ a = a*~bi, b = b/~bi, c = c*~bi, d = d*~bi, e = e/~bi, f = f*~bi ],/*31*/ [ a = a/~bi, b = b*~bi, c = c, d = d, e = e, f = f/~bi ],/*32*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],/*33*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*34*/ [ a = a/~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f*~bi ],/*35*/ [ a = a*~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f/~bi ],/*36*/ [ a = a/~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f*~bi ],/*37*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e, f = f ],/*38*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],/*39*/ [ a = a/~bi, b = b*~bi, c = c/~bi, d = d*~bi, e = e/~bi, f = f/~bi ],/*40*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],/*41*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f*~bi ],/*42*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*43*/ [ a = a/~bi, b = b, c = c*~bi, d = d*~bi, e = e*~bi, f = f ],/*44*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],/*45*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],/*46*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],/*47*/ [ a = a, b = b*~bi, c = c*~bi, d = d/~bi, e = e, f = f ],/*48*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],/*49*/ [ a = a, b = b, c = c*~bi, d = d, e = e/~bi, f = f*~bi ],/*50*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],/*51*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f*~bi ],/*52*/ [ a = a*~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f/~bi ],/*53*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f ],/*54*/ [ a = a/~bi, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f*~bi ],/*55*/ [ a = a, b = b, c = c, d = d*~bi, e = e/~bi, f = f ],/*56*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],/*57*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e*~bi, f = f ],/*58*/ [ a = a/~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f*~bi ],/*59*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f/~bi ],/*60*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],/*61*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f ],/*62*/ [ a = a/~bi, b = b/~bi, c = c*~bi, d = d*~bi, e = e/~bi, f = f/~bi ],/*63*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e, f = f*~bi ],/*64*/ [ a = a*~bi, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f/~bi ]]};
315 ~kws_setting_2_a = {[/*1*/ #a,b,c,d,e,f=[ ~a,~b,~c,~d,~e,~f ],/*2*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*3*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],/*4*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],/*5*/ [ a = a/~bi, b = b*~bi, c = c, d = d*~bi, e = e, f = f*~bi ],/*6*/ [ a = a*~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f/~bi ],/*7*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d, e = e, f = f ],/*8*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*9*/ [ a = a*~bi, b = b, c = c, d = d*~bi, e = e*~bi, f = f*~bi ],/*10*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],/*11*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e, f = f ],/*12*/ [ a = a*~n2*~bi, b = b*~n2*~bi, c = c*~n2*~bi, d = d*~n2/~bi, e = e*~n2/~bi, f = f*~n2/~bi ],/*13*/ [ a = a, b = b, c = c, d = d*~bi, e = e, f = f*~bi ],/*14*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],/*15*/ [ a = a/~bi, b = b, c = c/~bi, d = d, e = e/~bi, f = f/~bi ],/*16*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],/*17*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],/*18*/ [ a = a*~n3*~bi, b = b*~n3/~bi, c = c*~n3/~bi, d = d*~n3*~bi, e = e*~n3*~bi, f = f*~n3/~bi ],/*19*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e, f = f*~bi ],/*20*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f/~bi ],/*21*/ [ a = a, b = b/~bi, c = c*~bi, d = d, e = e, f = f*~bi ],/*22*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],/*23*/ [ a = a, b = b, c = c, d = d/~bi, e = e, f = f/~bi ],/*24*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],/*25*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d, e = e, f = f ],/*26*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],/*27*/ [ a = a, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],/*28*/ [ a = a*~n4/~bi, b = b*~n4*~bi, c = c*~n4*~bi, d = d*~n4*~bi, e = e*~n4*~bi, f = f*~n4/~bi ],/*29*/ [ a = a, b = b, c = c/~bi, d = d/~bi, e = e, f = f ],/*30*/ [ a = a*~n5*~bi, b = b*~n5/~bi, c = c*~n5*~bi, d = d*~n5*~bi, e = e*~n5/~bi, f = f*~n5*~bi ],/*31*/ [ a = a/~bi, b = b*~bi, c = c, d = d, e = e, f = f/~bi ],/*32*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],/*33*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*34*/ [ a = a/~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f*~bi ],/*35*/ [ a = a*~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f/~bi ],/*36*/ [ a = a/~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f*~bi ],/*37*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e, f = f ],/*38*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],/*39*/ [ a = a*~n6/~bi, b = b*~n6*~bi, c = c*~n6/~bi, d = d*~n6*~bi, e = e*~n6/~bi, f = f*~n6/~bi ],/*40*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],/*41*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f*~bi ],/*42*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*43*/ [ a = a/~bi, b = b, c = c*~bi, d = d*~bi, e = e*~bi, f = f ],/*44*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],/*45*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],/*46*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],/*47*/ [ a = a, b = b*~bi, c = c*~bi, d = d/~bi, e = e, f = f ],/*48*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],/*49*/ [ a = a, b = b, c = c*~bi, d = d, e = e/~bi, f = f*~bi ],/*50*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],/*51*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f*~bi ],/*52*/ [ a = a*~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f/~bi ],/*53*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f ],/*54*/ [ a = a*~n7/~bi, b = b*~n7/~bi, c = c*~n7*~bi, d = d*~n7/~bi, e = e*~n7*~bi, f = f*~n7*~bi ],/*55*/ [ a = a, b = b, c = c, d = d*~bi, e = e/~bi, f = f ],/*56*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],/*57*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e*~bi, f = f ],/*58*/ [ a = a/~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f*~bi ],/*59*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f/~bi ],/*60*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],/*61*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f ],/*62*/ [ a = a*~n8/~bi, b = b*~n8/~bi, c = c*~n8*~bi, d = d*~n8*~bi, e = e*~n8/~bi, f = f*~n8/~bi ],/*63*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e, f = f*~bi ],/*64*/ [ a = a*~n9*~bi, b = b*~n9/~bi, c = c*~n9*~bi, d = d*~n9/~bi, e = e*~n9*~bi, f = f*~n9/~bi ]]};
316 ~kws_setting_2_b = {[/*1*/ [ a = a, b = b*~bi, c = c, d = d*~bi, e = e, f = f*~bi ],/*2*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*3*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],/*4*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],/*5*/ [ a = a/~bi, b = b*~bi, c = c, d = d*~bi, e = e, f = f*~bi ],/*6*/ [ a = a*~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f/~bi ],/*7*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d, e = e, f = f ],/*8*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*9*/ [ a = a*~bi, b = b, c = c, d = d*~bi, e = e*~bi, f = f*~bi ],/*10*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],/*11*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e, f = f ],/*12*/ [ a = a*~n2*~bi, b = b*~n2*~bi, c = c*~n2*~bi, d = d*~n2/~bi, e = e*~n2/~bi, f = f*~n2/~bi ],/*13*/ [ a = a, b = b, c = c, d = d*~bi, e = e, f = f*~bi ],/*14*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],/*15*/ [ a = a/~bi, b = b, c = c/~bi, d = d, e = e/~bi, f = f/~bi ],/*16*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],/*17*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],/*18*/ [ a = a*~n3*~bi, b = b*~n3/~bi, c = c*~n3/~bi, d = d*~n3*~bi, e = e*~n3*~bi, f = f*~n3/~bi ],/*19*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e, f = f*~bi ],/*20*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f/~bi ],/*21*/ [ a = a, b = b/~bi, c = c*~bi, d = d, e = e, f = f*~bi ],/*22*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],/*23*/ [ a = a, b = b, c = c, d = d/~bi, e = e, f = f/~bi ],/*24*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],/*25*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d, e = e, f = f ],/*26*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],/*27*/ [ a = a, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],/*28*/ [ a = a*~n4/~bi, b = b*~n4*~bi, c = c*~n4*~bi, d = d*~n4*~bi, e = e*~n4*~bi, f = f*~n4/~bi ],/*29*/ [ a = a, b = b, c = c/~bi, d = d/~bi, e = e, f = f ],/*30*/ [ a = a*~n5*~bi, b = b*~n5/~bi, c = c*~n5*~bi, d = d*~n5*~bi, e = e*~n5/~bi, f = f*~n5*~bi ],/*31*/ [ a = a/~bi, b = b*~bi, c = c, d = d, e = e, f = f/~bi ],/*32*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],/*33*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*34*/ [ a = a/~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f*~bi ],/*35*/ [ a = a*~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f/~bi ],/*36*/ [ a = a/~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f*~bi ],/*37*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e, f = f ],/*38*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],/*39*/ [ a = a*~n6/~bi, b = b*~n6*~bi, c = c*~n6/~bi, d = d*~n6*~bi, e = e*~n6/~bi, f = f*~n6/~bi ],/*40*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],/*41*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f*~bi ],/*42*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],/*43*/ [ a = a/~bi, b = b, c = c*~bi, d = d*~bi, e = e*~bi, f = f ],/*44*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],/*45*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],/*46*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],/*47*/ [ a = a, b = b*~bi, c = c*~bi, d = d/~bi, e = e, f = f ],/*48*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],/*49*/ [ a = a, b = b, c = c*~bi, d = d, e = e/~bi, f = f*~bi ],/*50*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],/*51*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f*~bi ],/*52*/ [ a = a*~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f/~bi ],/*53*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f ],/*54*/ [ a = a*~n7/~bi, b = b*~n7/~bi, c = c*~n7*~bi, d = d*~n7/~bi, e = e*~n7*~bi, f = f*~n7*~bi ],/*55*/ [ a = a, b = b, c = c, d = d*~bi, e = e/~bi, f = f ],/*56*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],/*57*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e*~bi, f = f ],/*58*/ [ a = a/~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f*~bi ],/*59*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f/~bi ],/*60*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],/*61*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f ],/*62*/ [ a = a*~n8/~bi, b = b*~n8/~bi, c = c*~n8*~bi, d = d*~n8*~bi, e = e*~n8/~bi, f = f*~n8/~bi ],/*63*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e, f = f*~bi ],/*64*/ [ a = a*~n9*~bi, b = b*~n9/~bi, c = c*~n9*~bi, d = d*~n9/~bi, e = e*~n9*~bi, f = f*~n9/~bi ]]};
318 ~kws_setting_3_a = {[/*1*/ #a,b,c,d,e,f=[ ~a,~b,~c,~d,~e,~f ],/*2*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*3*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*4*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1/~bi ],/*5*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],/*6*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1/~bi ],/*7*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1 ],/*8*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],/*9*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1*~bi ],/*10*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],/*11*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],/*12*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*13*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],/*14*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],/*15*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1/~bi, f = f*~n1/~bi ],/*16*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],/*17*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*18*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1/~bi ],/*19*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1, f = f*~n1*~bi ],/*20*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1/~bi ],/*21*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*22*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],/*23*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1, f = f*~n1/~bi ],/*24*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*25*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1, e = e*~n1, f = f*~n1 ],/*26*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],/*27*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1 ],/*28*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1/~bi ],/*29*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],/*30*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1*~bi ],/*31*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],/*32*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],/*33*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],/*34*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1*~bi ],/*35*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*36*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],/*37*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],/*38*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1 ],/*39*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*40*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1 ],/*41*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*42*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],/*43*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],/*44*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],/*45*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1 ],/*46*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],/*47*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],/*48*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],/*49*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1, e = e*~n1/~bi, f = f*~n1*~bi ],/*50*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1/~bi ],/*51*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1*~bi ],/*52*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1/~bi ],/*53*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],/*54*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1*~bi ],/*55*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1 ],/*56*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],/*57*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],/*58*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1*~bi ],/*59*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],/*60*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*61*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],/*62*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*63*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*64*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1/~bi ]]};
319 ~kws_setting_3_b = {[/*1*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],/*2*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*3*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*4*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1/~bi ],/*5*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],/*6*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1/~bi ],/*7*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1 ],/*8*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],/*9*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1*~bi ],/*10*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],/*11*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],/*12*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*13*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],/*14*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],/*15*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1/~bi, f = f*~n1/~bi ],/*16*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],/*17*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*18*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1/~bi ],/*19*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1, f = f*~n1*~bi ],/*20*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1/~bi ],/*21*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*22*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],/*23*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1, f = f*~n1/~bi ],/*24*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*25*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1, e = e*~n1, f = f*~n1 ],/*26*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],/*27*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1 ],/*28*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1/~bi ],/*29*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],/*30*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1*~bi ],/*31*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],/*32*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],/*33*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],/*34*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1*~bi ],/*35*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*36*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],/*37*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],/*38*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1 ],/*39*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*40*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1 ],/*41*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*42*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],/*43*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],/*44*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],/*45*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1 ],/*46*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],/*47*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],/*48*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],/*49*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1, e = e*~n1/~bi, f = f*~n1*~bi ],/*50*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1/~bi ],/*51*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1*~bi ],/*52*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1/~bi ],/*53*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],/*54*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1*~bi ],/*55*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1 ],/*56*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],/*57*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],/*58*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1*~bi ],/*59*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],/*60*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*61*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],/*62*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1/~bi ],/*63*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],/*64*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1/~bi ]]};
326 SynthDef(\gsineicfld1, {arg graindur = 0.04, dur = 2000, atk = 0.007, rel = 0.01, gate = 1, amp = 1, i = 1, vol = ~vol, rate = 20, tune = 0,dseqval,
327 a, b, c, d, e, f, pan=0, fc = 1;
328 var s1, out, env1, s2, dseq;
329 9.do(x = 0; {("n"++(x=x+1)).asSymbol.envirPut(~n_value1)}); //for custom values replace "~n_value1" with "[a, b, c, d, etc...].at(x-1)" with the variable amount the same as the #.do value - for all synthdefs
332 {~kws_setting == 1}{~kws_setting_1_a.value;}
333 {~kws_setting == 2}{~kws_setting_2_a.value;}
334 {~kws_setting == 3}{~kws_setting_3_a.value;} ++ Array.fill((~gsinenum*~first_harmonic -1), {
336 {~kws_setting == 1}{~kws_setting_1_b.value;}
337 {~kws_setting == 2}{~kws_setting_2_b.value;}
338 {~kws_setting == 3}{~kws_setting_3_b.value;}}).flatten, inf);
339 s1 = GrainSin.ar(1, Impulse.ar(dur), 1/(dur),Demand.ar(Impulse.ar(dur), 0, dseq));
340 if(~low_pass_filter_on == 1, {s1 = BLowPass.ar(s1, ~low_pass_filter_freq_limit);}, {s1 = s1});
341 OffsetOut.ar(0, s1.dup*vol);
344 SynthDef(\gsineicrld1, {arg graindur = 0.04, dur = 2000, atk = 0.007, rel = 0.01, gate = 1, amp = 1, i = 1, vol = ~vol, rate = 20, tune = 0,dseqval,
345 a, b, c, d, e, f, pan=0, fc = 1, id = -1;
346 var s1, out, env1, s2, dseq;
347 9.do(x = 0; {("n"++(x=x+1)).asSymbol.envirPut(~n_value1)});
350 {~kws_setting == 1}{~kws_setting_1_a.value;}
351 {~kws_setting == 2}{~kws_setting_2_a.value;}
352 {~kws_setting == 3}{~kws_setting_3_a.value;} ++ Array.fill((~gsinenum*~first_harmonic -1), {
354 {~kws_setting == 1}{~kws_setting_1_b.value;}
355 {~kws_setting == 2}{~kws_setting_2_b.value;}
356 {~kws_setting == 3}{~kws_setting_3_b.value;}}).flatten].flatten.reverse, inf);
357 s1 = GrainSin.ar(1, Impulse.ar(dur), 1/(dur), Demand.ar(Impulse.ar(dur), 0, dseq));
358 if(~low_pass_filter_on == 1, {s1 = BLowPass.ar(s1, ~low_pass_filter_freq_limit);}, {s1 = s1});
359 OffsetOut.ar(0, s1.dup*vol);
362 SynthDef(\gsineicfld2, {arg graindur = 0.04, dur = 2000, atk = 0.007, rel = 0.01, gate = 1, amp = 1, i = 1, vol = ~vol, rate = 20, tune = 0,dseqval,
363 a, b, c, d, e, f, pan=0, fc = 1;
364 var s1, out, env1, s2, dseq;
365 9.do(x = 0; {("n"++(x=x+1)).asSymbol.envirPut(~n_value2)});
368 {~kws_setting == 1}{~kws_setting_1_a.value;}
369 {~kws_setting == 2}{~kws_setting_2_a.value;}
370 {~kws_setting == 3}{~kws_setting_3_a.value;} ++ Array.fill((~gsinenum*~second_harmonic -1), {
372 {~kws_setting == 1}{~kws_setting_1_b.value;}
373 {~kws_setting == 2}{~kws_setting_2_b.value;}
374 {~kws_setting == 3}{~kws_setting_3_b.value;}}).flatten, inf);
375 s1 = GrainSin.ar(1, Impulse.ar(dur), 1/(dur),Demand.ar(Impulse.ar(dur), 0, dseq));
376 if(~low_pass_filter_on == 1, {s1 = BLowPass.ar(s1, ~low_pass_filter_freq_limit);}, {s1 = s1});
377 OffsetOut.ar(0, s1.dup*vol);
380 SynthDef(\gsineicrld2, {arg graindur = 0.04, dur = 2000, atk = 0.007, rel = 0.01, gate = 1, amp = 1, i = 1, vol = ~vol, rate = 20, tune = 0,dseqval,
381 a, b, c, d, e, f, pan=0, fc = 1, id = -1;
382 var s1, out, env1, s2, dseq;
383 9.do(x = 0; {("n"++(x=x+1)).asSymbol.envirPut(~n_value2)});
386 {~kws_setting == 1}{~kws_setting_1_a.value;}
387 {~kws_setting == 2}{~kws_setting_2_a.value;}
388 {~kws_setting == 3}{~kws_setting_3_a.value;} ++ Array.fill((~gsinenum*~second_harmonic -1), {
390 {~kws_setting == 1}{~kws_setting_1_b.value;}
391 {~kws_setting == 2}{~kws_setting_2_b.value;}
392 {~kws_setting == 3}{~kws_setting_3_b.value;}}).flatten].flatten.reverse, inf);
393 s1 = GrainSin.ar(1, Impulse.ar(dur), 1/(dur), Demand.ar(Impulse.ar(dur), 0, dseq));
394 if(~low_pass_filter_on == 1, {s1 = BLowPass.ar(s1, ~low_pass_filter_freq_limit);}, {s1 = s1});
395 OffsetOut.ar(0, s1.dup*vol);
398 SynthDef(\gsineicfld6, {arg graindur = 0.04, dur = 2000, atk = 0.007, rel = 0.01, gate = 1, amp = 1, i = 1, vol = ~vol, rate = 20, tune = 0,dseqval,
399 a, b, c, d, e, f, pan=0, fc = 1;
400 var s1, out, env1, s2, dseq;
401 9.do(x = 0; {("n"++(x=x+1)).asSymbol.envirPut(~n_value6)});
404 {~kws_setting == 1}{~kws_setting_1_a.value;}
405 {~kws_setting == 2}{~kws_setting_2_a.value;}
406 {~kws_setting == 3}{~kws_setting_3_a.value;} ++ Array.fill((~gsinenum*~third_harmonic -1), {
408 {~kws_setting == 1}{~kws_setting_1_b.value;}
409 {~kws_setting == 2}{~kws_setting_2_b.value;}
410 {~kws_setting == 3}{~kws_setting_3_b.value;}}).flatten, inf);
411 s1 = GrainSin.ar(1, Impulse.ar(dur), 1/(dur),Demand.ar(Impulse.ar(dur), 0, dseq));
412 if(~low_pass_filter_on == 1, {s1 = BLowPass.ar(s1, ~low_pass_filter_freq_limit);}, {s1 = s1});
413 OffsetOut.ar(0, s1.dup*vol);
416 SynthDef(\gsineicrld6, {arg graindur = 0.04, dur = 2000, atk = 0.007, rel = 0.01, gate = 1, amp = 1, i = 1, vol = ~vol, rate = 20, tune = 0,dseqval,
417 a, b, c, d, e, f, pan=0, fc = 1;
418 var s1, out, env1, s2, dseq;
419 9.do(x = 0; {("n"++(x=x+1)).asSymbol.envirPut(~n_value6)});
422 {~kws_setting == 1}{~kws_setting_1_a.value;}
423 {~kws_setting == 2}{~kws_setting_2_a.value;}
424 {~kws_setting == 3}{~kws_setting_3_a.value;} ++ Array.fill((~gsinenum*~third_harmonic -1), {
426 {~kws_setting == 1}{~kws_setting_1_b.value;}
427 {~kws_setting == 2}{~kws_setting_2_b.value;}
428 {~kws_setting == 3}{~kws_setting_3_b.value;}}).flatten].flatten.reverse, inf);
429 s1 = GrainSin.ar(1, Impulse.ar(dur), 1/(dur), Demand.ar(Impulse.ar(dur), 0, dseq));
430 if(~low_pass_filter_on == 1, {s1 = BLowPass.ar(s1, ~low_pass_filter_freq_limit);}, {s1 = s1});
431 OffsetOut.ar(0, s1.dup*vol);
434 if(~sendreplysynthdef_on == 1, {
436 12.do(~sendreply_x = 0; {
438 ~sendreply_x=~sendreply_x+1;
440 SynthDef(\gsineicfld1_f++(~sendreply_x), {arg graindur = 0.04, dur = 2000, atk = 0.007, rel = 0.01, gate = 1, amp = 1, i = 1, vol = ~vol, rate = 20, tune = 0,dseqval,
441 a, b, c, d, e, f, pan=0, fc = 1;
442 var s1, out, env1, s2, dseq;
443 9.do(x = 0; {("n"++(x=x+1)).asSymbol.envirPut(~n_value1)});
446 {~kws_setting == 1}{~kws_setting_1_a.value;}
447 {~kws_setting == 2}{~kws_setting_2_a.value;}
448 {~kws_setting == 3}{~kws_setting_3_a.value;} ++ Array.fill((~gsinenum*~first_harmonic -1), {
450 {~kws_setting == 1}{~kws_setting_1_b.value;}
451 {~kws_setting == 2}{~kws_setting_2_b.value;}
452 {~kws_setting == 3}{~kws_setting_3_b.value;}}).flatten, inf);
453 s1 = GrainSin.ar(1, Impulse.ar(dur), 1/(dur),Demand.ar(Impulse.ar(dur), 0, dseq));
454 if(~low_pass_filter_on == 1, {s1 = BLowPass.ar(s1, ~low_pass_filter_freq_limit);}, {s1 = s1});
455 OffsetOut.ar(0, s1.dup*vol);
456 SendReply.ar(PulseDivider.ar(Impulse.ar(dur), (~kws_setting_1_a.value.size*(~gsinenum*~first_harmonic))),
458 {~sendreplyfunc_choose == 0}{("synthflow_gmf_sendreply_answer_f"++(~sendreply_x)).asSymbol.envirGet;}
459 {~sendreplyfunc_choose == 1}{("synthflow_random_sendreply_answer_f"++(~sendreply_x)).asSymbol.envirGet;};
468 //sendreply functions
470 ~sendreplyfunc_choose = 0;
472 ~send_reply_random_func_western = {~freqmap.at(rrand(60, 91));};
473 ~send_reply_random_func_eastern = {(rrand(~freqmap.at(60), ~freqmap.at(91);))};
475 if(~sendreply_gm_fth_y_1 == nil, {12.do(x = 0; {("sendreply_gm_fth_y_"++(x=x+1)).asSymbol.envirPut((-1);)});});
476 ~sendreply_gm_fth_func_1 = {if((x <= 1539.4729849465) and: (x >= 256.86873684059), {
477 x = x*[[a = 1.6842135623729, a = 0.5937489296732].choose, [a = 1.4142135623729, a = 0.70710678118665].choose].at(y=y+1); if(y>=1, {y=(-1)});
480 if(x > 1539.4729849465, {
482 {(a == 1.6842135623729) or: (a == 0.5937489296732)}{x = x/2; x = x*[a = 1.4142135623729, a = 0.70710678118665].choose; y=y+1; if(y>=1, {y=(-1)});}
483 {(a == 1.4142135623729) or: (a == 0.70710678118665)}{x = x/2; x = x*[a = 1.6842135623729, a = 0.5937489296732].choose; y=y+1; if(y>=1, {y=(-1)});};
486 {(a == 1.6842135623729) or: (a == 0.5937489296732)}{x = x*2; x = x*[a = 1.4142135623729, a = 0.70710678118665].choose; y=y+1; if(y>=1, {y=(-1)});}
487 {(a == 1.4142135623729) or: (a == 0.70710678118665)}{x = x*2; x = x*[a = 1.6842135623729, a = 0.5937489296732].choose; y=y+1; if(y>=1, {y=(-1)});};
491 ~sendreply_gm_fth_func_2 = {if((x <= 1539.4729849465) and: (x >= 256.86873684059), {
492 x = x*[a = 1.6842135623729, a = 0.5937489296732].choose;}, {
493 if(x > 1539.4729849465, {x = x/2; x = x*[1.6842135623729, 0.5937489296732].choose;}, {x = x*2; x = x*[1.6842135623729, 0.5937489296732].choose;});
496 if(~sendreply_gm_fth_func == nil, {~sendreply_gm_fth_func = ~sendreply_gm_fth_func_1});
499 {~sendreplyfuncswitch == 1;}{~send_reply_random_func = ~send_reply_random_func_western;}
500 {~sendreplyfuncswitch == 2;}{~send_reply_random_func = ~send_reply_random_func_eastern;};
502 ~synthflow_random_sendreply_answer_f1 = '/synthflow_random_sendreply_answer_f1';
503 ~synthflow_random_sendreply_answer_f2 = '/synthflow_random_sendreply_answer_f2';
504 ~synthflow_random_sendreply_answer_f3 = '/synthflow_random_sendreply_answer_f3';
505 ~synthflow_random_sendreply_answer_f4 = '/synthflow_random_sendreply_answer_f4';
506 ~synthflow_random_sendreply_answer_f5 = '/synthflow_random_sendreply_answer_f5';
507 ~synthflow_random_sendreply_answer_f6 = '/synthflow_random_sendreply_answer_f6';
508 ~synthflow_random_sendreply_answer_f7 = '/synthflow_random_sendreply_answer_f7';
509 ~synthflow_random_sendreply_answer_f8 = '/synthflow_random_sendreply_answer_f8';
510 ~synthflow_random_sendreply_answer_f9 = '/synthflow_random_sendreply_answer_f9';
511 ~synthflow_random_sendreply_answer_f10 = '/synthflow_random_sendreply_answer_f10';
512 ~synthflow_random_sendreply_answer_f11 = '/synthflow_random_sendreply_answer_f11';
513 ~synthflow_random_sendreply_answer_f12 = '/synthflow_random_sendreply_answer_f12';
515 ~synthflow_gmf_sendreply_answer_f1 = '/synthflow_gmf_sendreply_answer_f1';
516 ~synthflow_gmf_sendreply_answer_f2 = '/synthflow_gmf_sendreply_answer_f2';
517 ~synthflow_gmf_sendreply_answer_f3 = '/synthflow_gmf_sendreply_answer_f3';
518 ~synthflow_gmf_sendreply_answer_f4 = '/synthflow_gmf_sendreply_answer_f4';
519 ~synthflow_gmf_sendreply_answer_f5 = '/synthflow_gmf_sendreply_answer_f5';
520 ~synthflow_gmf_sendreply_answer_f6 = '/synthflow_gmf_sendreply_answer_f6';
521 ~synthflow_gmf_sendreply_answer_f7 = '/synthflow_gmf_sendreply_answer_f7';
522 ~synthflow_gmf_sendreply_answer_f8 = '/synthflow_gmf_sendreply_answer_f8';
523 ~synthflow_gmf_sendreply_answer_f9 = '/synthflow_gmf_sendreply_answer_f9';
524 ~synthflow_gmf_sendreply_answer_f10 = '/synthflow_gmf_sendreply_answer_f10';
525 ~synthflow_gmf_sendreply_answer_f11 = '/synthflow_gmf_sendreply_answer_f11';
526 ~synthflow_gmf_sendreply_answer_f12 = '/synthflow_gmf_sendreply_answer_f12';
528 OSCFunc({~f1 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f1');
529 OSCFunc({~f2 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f2');
530 OSCFunc({~f3 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f3');
531 OSCFunc({~f4 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f4');
532 OSCFunc({~f5 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f5');
533 OSCFunc({~f6 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f6');
534 OSCFunc({~f7 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f7');
535 OSCFunc({~f8 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f8');
536 OSCFunc({~f9 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f9');
537 OSCFunc({~f10 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f10');
538 OSCFunc({~f11 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f11');
539 OSCFunc({~f12 = ~send_reply_random_func.value; AppClock.sched(0,{~synthflow.value;});}, '/synthflow_random_sendreply_answer_f12');
541 OSCFunc({x = ~f1; y = ~sendreply_gm_fth_y_1; ~sendreply_gm_fth_func.value; ~f1 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_1 = y;}, '/synthflow_gmf_sendreply_answer_f1');
542 OSCFunc({x = ~f2; y = ~sendreply_gm_fth_y_2; ~sendreply_gm_fth_func.value; ~f2 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_2 = y;}, '/synthflow_gmf_sendreply_answer_f2');
543 OSCFunc({x = ~f3; y = ~sendreply_gm_fth_y_3; ~sendreply_gm_fth_func.value; ~f3 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_3 = y;}, '/synthflow_gmf_sendreply_answer_f3');
544 OSCFunc({x = ~f4; y = ~sendreply_gm_fth_y_4; ~sendreply_gm_fth_func.value; ~f4 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_4 = y;}, '/synthflow_gmf_sendreply_answer_f4');
545 OSCFunc({x = ~f5; y = ~sendreply_gm_fth_y_5; ~sendreply_gm_fth_func.value; ~f5 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_5 = y;}, '/synthflow_gmf_sendreply_answer_f5');
546 OSCFunc({x = ~f6; y = ~sendreply_gm_fth_y_6; ~sendreply_gm_fth_func.value; ~f6 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_6 = y;}, '/synthflow_gmf_sendreply_answer_f6');
547 OSCFunc({x = ~f7; y = ~sendreply_gm_fth_y_7; ~sendreply_gm_fth_func.value; ~f7 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_7 = y;}, '/synthflow_gmf_sendreply_answer_f7');
548 OSCFunc({x = ~f8; y = ~sendreply_gm_fth_y_8; ~sendreply_gm_fth_func.value; ~f8 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_8 = y;}, '/synthflow_gmf_sendreply_answer_f8');
549 OSCFunc({x = ~f9; y = ~sendreply_gm_fth_y_9; ~sendreply_gm_fth_func.value; ~f9 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_9 = y;}, '/synthflow_gmf_sendreply_answer_f9');
550 OSCFunc({x = ~f10; y = ~sendreply_gm_fth_y_10; ~sendreply_gm_fth_func.value; ~f10 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_10 = y;}, '/synthflow_gmf_sendreply_answer_f10');
551 OSCFunc({x = ~f11; y = ~sendreply_gm_fth_y_11; ~sendreply_gm_fth_func.value; ~f11 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_11 = y;}, '/synthflow_gmf_sendreply_answer_f11');
552 OSCFunc({x = ~f12; y = ~sendreply_gm_fth_y_12; ~sendreply_gm_fth_func.value; ~f12 = x; AppClock.sched(0,{~synthflow.value;}); ~sendreply_gm_fth_y_12 = y;}, '/synthflow_gmf_sendreply_answer_f12');
555 //set base (lowest) frequencies, set starting values for synthdef, and load synthdef on server boot
557 if((~gsinenum == nil) or: (~synthdef != "gsineicld"), {
559 if(~basefreq == nil, {~basefreq = ~base_frequency});
561 (#a,b,c,d,e,f = [ ~basefreq,~basefreq,~basefreq,~basefreq,~basefreq,~basefreq ];
562 ~a = a; ~b = b; ~c =c; ~d = d; ~e = e;~f=f;);
564 ~synthdef = "gsineicld"; ~gsinenum = ~synthdefnum;
571 //generate GUI window
573 w = Window("Timewave Synth", Rect(0,0,Window.screenBounds.width,Window.screenBounds.height), border:true);
575 view = UserView(w, Window.screenBounds);
576 view.clearOnRefresh = false;
577 view.background = Color.black;
579 //vertical grid (inactive)
581 /*~b1 = Window.screenBounds.width/(12*4) /*25.462962962963*/; ~btu = 31; ~btd = 375; ~bw = 0.5; ~bh = 120; ~bcolor = Color.grey;
582 View(w, Rect(~b1, ~btu, ~bw, ~bh)).background = ~bcolor;
583 View(w, Rect(~b1, ~btd, ~bw, ~bh)).background = ~bcolor;
584 54.do({View(w, Rect(~b1 = ~b1+(Window.screenBounds.width/(12*4)), ~btu, ~bw, ~bh)).background = ~bcolor;});
585 ~b1 = Window.screenBounds.width/(12*4);
586 54.do({View(w, Rect(~b1 = ~b1+(Window.screenBounds.width/(12*4)), ~btd, ~bw, ~bh)).background = ~bcolor;});*/
592 ~nw = ~nh*1.6180339887499;
595 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
597 ~dc1 = ~tgrid-5; ~dc2 = ~bgrid-5; ~dca = 10;
599 13.do(x=~tgrid-10; {View(w, Rect(1, x=x+10, Window.screenBounds.width, 0.5)).background = Color.new255(51, 51, 51)});
600 13.do(x=~bgrid-10; {View(w, Rect(1, x=x+10, Window.screenBounds.width, 0.5)).background = Color.new255(51, 51, 51)});
602 ~z1 = (View(w, Rect((if(~f1 == nil, {f1.value},{~f1.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
603 ~z2 = (View(w, Rect((if(~f2 == nil, {f2.value},{~f2.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
604 ~z3 = (View(w, Rect((if(~f3 == nil, {f3.value},{~f3.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
605 ~z4 = (View(w, Rect((if(~f4 == nil, {f4.value},{~f4.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
606 ~z5 = (View(w, Rect((if(~f5 == nil, {f5.value},{~f5.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
607 ~z6 = (View(w, Rect((if(~f6 == nil, {f6.value},{~f6.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
608 ~z7 = (View(w, Rect((if(~f7 == nil, {f7.value},{~f7.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
609 ~z8 = (View(w, Rect((if(~f8 == nil, {f8.value},{~f8.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
610 ~z9 = (View(w, Rect((if(~f9 == nil, {f9.value},{~f9.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
611 ~z10 = (View(w, Rect((if(~f10 == nil, {f10.value},{~f10.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
612 ~z11 = (View(w, Rect((if(~f11 == nil, {f11.value},{~f11.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
613 ~z12 = (View(w, Rect((if(~f12 == nil, {f12.value},{~f12.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
614 ~zmid = (View(w, Rect(x, 280, ~nw, 2)).background = Color.clear;);
615 ~z25 = (View(w, Rect((if(~f1 == nil, {f1.value},{~f1.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
616 ~z26 = (View(w, Rect((if(~f2 == nil, {f2.value},{~f2.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
617 ~z27 = (View(w, Rect((if(~f3 == nil, {f3.value},{~f3.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
618 ~z28 = (View(w, Rect((if(~f4 == nil, {f4.value},{~f4.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
619 ~z29 = (View(w, Rect((if(~f5 == nil, {f5.value},{~f5.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
620 ~z30 = (View(w, Rect((if(~f6 == nil, {f6.value},{~f6.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
621 ~z31 = (View(w, Rect((if(~f7 == nil, {f7.value},{~f7.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
622 ~z32 = (View(w, Rect((if(~f8 == nil, {f8.value},{~f8.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
623 ~z33 = (View(w, Rect((if(~f9 == nil, {f9.value},{~f9.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
624 ~z34 = (View(w, Rect((if(~f10 == nil, {f10.value},{~f10.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
625 ~z35 = (View(w, Rect((if(~f11 == nil, {f11.value},{~f11.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
626 ~z36 = (View(w, Rect((if(~f12 == nil, {f12.value},{~f12.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
629 ~dc1 = ~tgrid-5; ~dc2 = ~bgrid-5; ~dca = 10;
632 //synth functions (open, flow, slide, pause, free)
636 {((~l1a.isRunning == false) and: (~l1a1.isRunning == false)) or: ~l1a1.isRunning == true}{
637 if(~l1a1.isRunning == true, {
638 (1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12;
639 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
640 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
642 ~l1a1.set(\dur, f1, \vol, vol1); ~l1b1.set(\dur, f1, \vol, vol1);
643 ~l1c1.set(\dur, f1/~icd3, \vol, vol1); ~l1d1.set(\dur, f1/~icd3, \vol, vol1);
644 ~l1e1.set(\dur, f1/~icd6, \vol, vol1); ~l1f1.set(\dur, f1/~icd6, \vol, vol1);
645 ~l2a1.set(\dur, f2, \vol, vol2); ~l2b1.set(\dur, f2, \vol, vol2);
646 ~l2c1.set(\dur, f2/~icd3, \vol, vol2); ~l2d1.set(\dur, f2/~icd3, \vol, vol2);
647 ~l2e1.set(\dur, f2/~icd6, \vol, vol2); ~l2f1.set(\dur, f2/~icd6, \vol, vol2);
648 ~l3a1.set(\dur, f3, \vol, vol3); ~l3b1.set(\dur, f3, \vol, vol3);
649 ~l3c1.set(\dur, f3/~icd3, \vol, vol3); ~l3d1.set(\dur, f3/~icd3, \vol, vol3);
650 ~l3e1.set(\dur, f3/~icd6, \vol, vol3); ~l3f1.set(\dur, f3/~icd6, \vol, vol3);
651 ~l4a1.set(\dur, f4, \vol, vol4); ~l4b1.set(\dur, f4, \vol, vol4);
652 ~l4c1.set(\dur, f4/~icd3, \vol, vol4); ~l4d1.set(\dur, f4/~icd3, \vol, vol4);
653 ~l4e1.set(\dur, f4/~icd6, \vol, vol4); ~l4f1.set(\dur, f4/~icd6, \vol, vol4);
654 ~l5a1.set(\dur, f5, \vol, vol5); ~l5b1.set(\dur, f5, \vol, vol5);
655 ~l5c1.set(\dur, f5/~icd3, \vol, vol5); ~l5d1.set(\dur, f5/~icd3, \vol, vol5);
656 ~l5e1.set(\dur, f5/~icd6, \vol, vol5); ~l5f1.set(\dur, f5/~icd6, \vol, vol5);
657 ~l6a1.set(\dur, f6, \vol, vol6); ~l6b1.set(\dur, f6, \vol, vol6);
658 ~l6c1.set(\dur, f6/~icd3, \vol, vol6); ~l6d1.set(\dur, f6/~icd3, \vol, vol6);
659 ~l6e1.set(\dur, f6/~icd6, \vol, vol6); ~l6f1.set(\dur, f6/~icd6, \vol, vol6);
660 ~l7a1.set(\dur, f7, \vol, vol7); ~l7b1.set(\dur, f7, \vol, vol7);
661 ~l7c1.set(\dur, f7/~icd3, \vol, vol7); ~l7d1.set(\dur, f7/~icd3, \vol, vol7);
662 ~l7e1.set(\dur, f7/~icd6, \vol, vol7); ~l7f1.set(\dur, f7/~icd6, \vol, vol7);
663 ~l8a1.set(\dur, f8, \vol, vol8); ~l8b1.set(\dur, f8, \vol, vol8);
664 ~l8c1.set(\dur, f8/~icd3, \vol, vol8); ~l8d1.set(\dur, f8/~icd3, \vol, vol8);
665 ~l8e1.set(\dur, f8/~icd6, \vol, vol8); ~l8f1.set(\dur, f8/~icd6, \vol, vol8);
666 ~l9a1.set(\dur, f9, \vol, vol9); ~l9b1.set(\dur, f9, \vol, vol9);
667 ~l9c1.set(\dur, f9/~icd3, \vol, vol9); ~l9d1.set(\dur, f9/~icd3, \vol, vol9);
668 ~l9e1.set(\dur, f9/~icd6, \vol, vol9); ~l9f1.set(\dur, f9/~icd6, \vol, vol9);
669 ~l10a1.set(\dur, f10, \vol, vol10); ~l10b1.set(\dur, f10, \vol, vol10);
670 ~l10c1.set(\dur, f10/~icd3, \vol, vol10);~l10d1.set(\dur, f10/~icd3, \vol, vol10);
671 ~l10e1.set(\dur, f10/~icd6, \vol, vol10);~l10f1.set(\dur, f10/~icd6, \vol, vol10);
672 ~l11a1.set(\dur, f11, \vol, vol11); ~l11b1.set(\dur, f11, \vol, vol11);
673 ~l11c1.set(\dur, f11/~icd3, \vol, vol11);~l11d1.set(\dur, f11/~icd3, \vol, vol11);
674 ~l11e1.set(\dur, f11/~icd6, \vol, vol11);~l11f1.set(\dur, f11/~icd6, \vol, vol11);
675 ~l12a1.set(\dur, f12, \vol, vol12); ~l12b1.set(\dur, f12, \vol, vol12);
676 ~l12c1.set(\dur, f12/~icd3, \vol, vol12);~l12d1.set(\dur, f12/~icd3, \vol, vol12);
677 ~l12e1.set(\dur, f12/~icd6, \vol, vol12);~l12f1.set(\dur, f12/~icd6, \vol, vol12);
683 1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6,s5_1,s5_2,s5_3,s5_4,s5_5,s5_6,s5_7,s5_8,s5_9,s5_10,s5_11,s5_12;
684 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
685 #s1,s2,s3,s4,s5,s6 = [\gsineicfld6, \gsineicrld6, \gsineicfld2, \gsineicrld2, \gsineicfld1, \gsineicrld1];
687 {~sendreplysynthdef_on == 0}{#s5_1,s5_2,s5_3,s5_4,s5_5,s5_6,s5_7,s5_8,s5_9,s5_10,s5_11,s5_12 = \gsineicfld1!12;}
688 {~sendreplysynthdef_on == 1}{#s5_1,s5_2,s5_3,s5_4,s5_5,s5_6,s5_7,s5_8,s5_9,s5_10,s5_11,s5_12 =
689 [\gsineicfld1_f1, \gsineicfld1_f2, \gsineicfld1_f3, \gsineicfld1_f4, \gsineicfld1_f5, \gsineicfld1_f6, \gsineicfld1_f7, \gsineicfld1_f8, \gsineicfld1_f9, \gsineicfld1_f10, \gsineicfld1_f11, \gsineicfld1_f12];};
691 ~l1a = Synth(s1, [\dur, ~f1, \vol, vol1]).register; ~l1b = Synth(s2, [\dur, ~f1, \vol, vol1]);
692 ~l1c = Synth(s3, [\dur, ~f1/~icd3, \vol, vol1]); ~l1d = Synth(s4, [\dur, ~f1/~icd3, \vol, vol1]);
693 ~l1e = Synth(s5_1, [\dur, ~f1/~icd6, \vol, vol1]); ~l1f = Synth(s6, [\dur, ~f1/~icd6, \vol, vol1]);
694 ~l2a = Synth(s1, [\dur, ~f2, \vol, vol2]); ~l2b = Synth(s2, [\dur, ~f2, \vol, vol2]);
695 ~l2c = Synth(s3, [\dur, ~f2/~icd3, \vol, vol2]); ~l2d = Synth(s4, [\dur, ~f2/~icd3, \vol, vol2]);
696 ~l2e = Synth(s5_2, [\dur, ~f2/~icd6, \vol, vol2]); ~l2f = Synth(s6, [\dur, ~f2/~icd6, \vol, vol2]);
697 ~l3a = Synth(s1, [\dur, ~f3, \vol, vol3]); ~l3b = Synth(s2, [\dur, ~f3, \vol, vol3]);
698 ~l3c = Synth(s3, [\dur, ~f3/~icd3, \vol, vol3]); ~l3d = Synth(s4, [\dur, ~f3/~icd3, \vol, vol3]);
699 ~l3e = Synth(s5_3, [\dur, ~f3/~icd6, \vol, vol3]); ~l3f = Synth(s6, [\dur, ~f3/~icd6, \vol, vol3]);
700 ~l4a = Synth(s1, [\dur, ~f4, \vol, vol4]); ~l4b = Synth(s2, [\dur, ~f4, \vol, vol4]);
701 ~l4c = Synth(s3, [\dur, ~f4/~icd3, \vol, vol4]); ~l4d = Synth(s4, [\dur, ~f4/~icd3, \vol, vol4]);
702 ~l4e = Synth(s5_4, [\dur, ~f4/~icd6, \vol, vol4]); ~l4f = Synth(s6, [\dur, ~f4/~icd6, \vol, vol4]);
703 ~l5a = Synth(s1, [\dur, ~f5, \vol, vol5]); ~l5b = Synth(s2, [\dur, ~f5, \vol, vol5]);
704 ~l5c = Synth(s3, [\dur, ~f5/~icd3, \vol, vol5]); ~l5d = Synth(s4, [\dur, ~f5/~icd3, \vol, vol5]);
705 ~l5e = Synth(s5_5, [\dur, ~f5/~icd6, \vol, vol5]); ~l5f = Synth(s6, [\dur, ~f5/~icd6, \vol, vol5]);
706 ~l6a = Synth(s1, [\dur, ~f6, \vol, vol6]); ~l6b = Synth(s2, [\dur, ~f6, \vol, vol6]);
707 ~l6c = Synth(s3, [\dur, ~f6/~icd3, \vol, vol6]); ~l6d = Synth(s4, [\dur, ~f6/~icd3, \vol, vol6]);
708 ~l6e = Synth(s5_6, [\dur, ~f6/~icd6, \vol, vol6]); ~l6f = Synth(s6, [\dur, ~f6/~icd6, \vol, vol6]);
709 ~l7a = Synth(s1, [\dur, ~f7, \vol, vol7]); ~l7b = Synth(s2, [\dur, ~f7, \vol, vol7]);
710 ~l7c = Synth(s3, [\dur, ~f7/~icd3, \vol, vol7]); ~l7d = Synth(s4, [\dur, ~f7/~icd3, \vol, vol7]);
711 ~l7e = Synth(s5_7, [\dur, ~f7/~icd6, \vol, vol7]); ~l7f = Synth(s6, [\dur, ~f7/~icd6, \vol, vol7]);
712 ~l8a = Synth(s1, [\dur, ~f8, \vol, vol8]); ~l8b = Synth(s2, [\dur, ~f8, \vol, vol8]);
713 ~l8c = Synth(s3, [\dur, ~f8/~icd3, \vol, vol8]); ~l8d = Synth(s4, [\dur, ~f8/~icd3, \vol, vol8]);
714 ~l8e = Synth(s5_8, [\dur, ~f8/~icd6, \vol, vol8]); ~l8f = Synth(s6, [\dur, ~f8/~icd6, \vol, vol8]);
715 ~l9a = Synth(s1, [\dur, ~f9, \vol, vol9]); ~l9b = Synth(s2, [\dur, ~f9, \vol, vol9]);
716 ~l9c = Synth(s3, [\dur, ~f9/~icd3, \vol, vol9]); ~l9d = Synth(s4, [\dur, ~f9/~icd3, \vol, vol9]);
717 ~l9e = Synth(s5_9, [\dur, ~f9/~icd6, \vol, vol9]); ~l9f = Synth(s6, [\dur, ~f9/~icd6, \vol, vol9]);
718 ~l10a = Synth(s1, [\dur,~f10, \vol, vol10]); ~l10b = Synth(s2, [\dur, ~f10, \vol, vol10]);
719 ~l10c = Synth(s3, [\dur, ~f10/~icd3, \vol, vol10]);~l10d = Synth(s4, [\dur, ~f10/~icd3, \vol, vol10]);
720 ~l10e = Synth(s5_10, [\dur, ~f10/~icd6, \vol, vol10]);~l10f = Synth(s6, [\dur, ~f10/~icd6, \vol, vol10]);
721 ~l11a = Synth(s1, [\dur,~f11, \vol, vol11]); ~l11b = Synth(s2, [\dur, ~f11, \vol, vol11]);
722 ~l11c = Synth(s3, [\dur, ~f11/~icd3, \vol, vol11]);~l11d = Synth(s4, [\dur, ~f11/~icd3, \vol, vol11]);
723 ~l11e = Synth(s5_11, [\dur, ~f11/~icd6, \vol, vol11]);~l11f = Synth(s6, [\dur, ~f11/~icd6, \vol, vol11]);
724 ~l12a = Synth(s1, [\dur,~f12, \vol, vol12]); ~l12b = Synth(s2, [\dur, ~f12, \vol, vol12]);
725 ~l12c = Synth(s3, [\dur, ~f12/~icd3, \vol, vol12]);~l12d = Synth(s4, [\dur, ~f12/~icd3, \vol, vol12]);
726 ~l12e = Synth(s5_12, [\dur, ~f12/~icd6, \vol, vol12]);~l12f = Synth(s6, [\dur, ~f12/~icd6, \vol, vol12]);
730 if(~l1a1.isRunning == true, {
731 AppClock.sched(0.161803398875,{
732 ([~l1a1,~l1b1,~l1c1,~l1d1,~l1e1,~l1f1,~l2a1,~l2b1,~l2c1,~l2d1,~l2e1,~l2f1,~l3a1,~l3b1,~l3c1,~l3d1,~l3e1,~l3f1,~l4a1,~l4b1,~l4c1,~l4d1,~l4e1,~l4f1,~l5a1,~l5b1,~l5c1,~l5d1,~l5e1,~l5f1,~l6a1,~l6b1,~l6c1,~l6d1,~l6e1,~l6f1,~l7a1,~l7b1,~l7c1,~l7d1,~l7e1,~l7f1,~l8a1,~l8b1,~l8c1,~l8d1,~l8e1,~l8f1,~l9a1,~l9b1,~l9c1,~l9d1,~l9e1,~l9f1,~l10a1,~l10b1,~l10c1,~l10d1,~l10e1,~l10f1,~l11a1,~l11b1,~l11c1,~l11d1,~l11e1,~l11f1,~l12a1,~l12b1,~l12c1,~l12d1,~l12e1,~l12f1 ].do(_.free)); ~slideroutine.stop;
736 {~l1a.isRunning == true}{
737 (1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12;
738 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
739 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
741 ~l1a.set(\dur, f1, \vol, vol1); ~l1b.set(\dur, f1, \vol, vol1);
742 ~l1c.set(\dur, f1/~icd3, \vol, vol1); ~l1d.set(\dur, f1/~icd3, \vol, vol1);
743 ~l1e.set(\dur, f1/~icd6, \vol, vol1); ~l1f.set(\dur, f1/~icd6, \vol, vol1);
744 ~l2a.set(\dur, f2, \vol, vol2); ~l2b.set(\dur, f2, \vol, vol2);
745 ~l2c.set(\dur, f2/~icd3, \vol, vol2); ~l2d.set(\dur, f2/~icd3, \vol, vol2);
746 ~l2e.set(\dur, f2/~icd6, \vol, vol2); ~l2f.set(\dur, f2/~icd6, \vol, vol2);
747 ~l3a.set(\dur, f3, \vol, vol3); ~l3b.set(\dur, f3, \vol, vol3);
748 ~l3c.set(\dur, f3/~icd3, \vol, vol3); ~l3d.set(\dur, f3/~icd3, \vol, vol3);
749 ~l3e.set(\dur, f3/~icd6, \vol, vol3); ~l3f.set(\dur, f3/~icd6, \vol, vol3);
750 ~l4a.set(\dur, f4, \vol, vol4); ~l4b.set(\dur, f4, \vol, vol4);
751 ~l4c.set(\dur, f4/~icd3, \vol, vol4); ~l4d.set(\dur, f4/~icd3, \vol, vol4);
752 ~l4e.set(\dur, f4/~icd6, \vol, vol4); ~l4f.set(\dur, f4/~icd6, \vol, vol4);
753 ~l5a.set(\dur, f5, \vol, vol5); ~l5b.set(\dur, f5, \vol, vol5);
754 ~l5c.set(\dur, f5/~icd3, \vol, vol5); ~l5d.set(\dur, f5/~icd3, \vol, vol5);
755 ~l5e.set(\dur, f5/~icd6, \vol, vol5); ~l5f.set(\dur, f5/~icd6, \vol, vol5);
756 ~l6a.set(\dur, f6, \vol, vol6); ~l6b.set(\dur, f6, \vol, vol6);
757 ~l6c.set(\dur, f6/~icd3, \vol, vol6); ~l6d.set(\dur, f6/~icd3, \vol, vol6);
758 ~l6e.set(\dur, f6/~icd6, \vol, vol6); ~l6f.set(\dur, f6/~icd6, \vol, vol6);
759 ~l7a.set(\dur, f7, \vol, vol7); ~l7b.set(\dur, f7, \vol, vol7);
760 ~l7c.set(\dur, f7/~icd3, \vol, vol7); ~l7d.set(\dur, f7/~icd3, \vol, vol7);
761 ~l7e.set(\dur, f7/~icd6, \vol, vol7); ~l7f.set(\dur, f7/~icd6, \vol, vol7);
762 ~l8a.set(\dur, f8, \vol, vol8); ~l8b.set(\dur, f8, \vol, vol8);
763 ~l8c.set(\dur, f8/~icd3, \vol, vol8); ~l8d.set(\dur, f8/~icd3, \vol, vol8);
764 ~l8e.set(\dur, f8/~icd6, \vol, vol8); ~l8f.set(\dur, f8/~icd6, \vol, vol8);
765 ~l9a.set(\dur, f9, \vol, vol9); ~l9b.set(\dur, f9, \vol, vol9);
766 ~l9c.set(\dur, f9/~icd3, \vol, vol9); ~l9d.set(\dur, f9/~icd3, \vol, vol9);
767 ~l9e.set(\dur, f9/~icd6, \vol, vol9); ~l9f.set(\dur, f9/~icd6, \vol, vol9);
768 ~l10a.set(\dur, f10, \vol, vol10); ~l10b.set(\dur, f10, \vol, vol10);
769 ~l10c.set(\dur, f10/~icd3, \vol, vol10);~l10d.set(\dur, f10/~icd3, \vol, vol10);
770 ~l10e.set(\dur, f10/~icd6, \vol, vol10);~l10f.set(\dur, f10/~icd6, \vol, vol10);
771 ~l11a.set(\dur, f11, \vol, vol11); ~l11b.set(\dur, f11, \vol, vol11);
772 ~l11c.set(\dur, f11/~icd3, \vol, vol11,);~l11d.set(\dur, f11/~icd3, \vol, vol11);
773 ~l11e.set(\dur, f11/~icd6, \vol, vol11);~l11f.set(\dur, f11/~icd6, \vol, vol11);
774 ~l12a.set(\dur, f12, \vol, vol12); ~l12b.set(\dur, f12, \vol, vol12);
775 ~l12c.set(\dur, f12/~icd3, \vol, vol12,);~l12d.set(\dur, f12/~icd3, \vol, vol12);
776 ~l12e.set(\dur, f12/~icd6, \vol, vol12);~l12f.set(\dur, f12/~icd6, \vol, vol12);
781 1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6,s5_1,s5_2,s5_3,s5_4,s5_5,s5_6,s5_7,s5_8,s5_9,s5_10,s5_11,s5_12;
782 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
783 #s1,s2,s3,s4,s5,s6 = [\gsineicfld6, \gsineicrld6, \gsineicfld2, \gsineicrld2, \gsineicfld1, \gsineicrld1];
785 {~sendreplysynthdef_on == 0}{#s5_1,s5_2,s5_3,s5_4,s5_5,s5_6,s5_7,s5_8,s5_9,s5_10,s5_11,s5_12 = \gsineicfld1!12;}
786 {~sendreplysynthdef_on == 1}{#s5_1,s5_2,s5_3,s5_4,s5_5,s5_6,s5_7,s5_8,s5_9,s5_10,s5_11,s5_12 =
787 [\gsineicfld1_f1, \gsineicfld1_f2, \gsineicfld1_f3, \gsineicfld1_f4, \gsineicfld1_f5, \gsineicfld1_f6, \gsineicfld1_f7, \gsineicfld1_f8, \gsineicfld1_f9, \gsineicfld1_f10, \gsineicfld1_f11, \gsineicfld1_f12];};
789 ~l1a1 = Synth(s1, [\dur, ~f1, \vol, vol1]).register; ~l1b1 = Synth(s2, [\dur, ~f1, \vol, vol1]);
790 ~l1c1 = Synth(s3, [\dur, ~f1/~icd3, \vol, vol1]); ~l1d1 = Synth(s4, [\dur, ~f1/~icd3, \vol, vol1]);
791 ~l1e1 = Synth(s5_1, [\dur, ~f1/~icd6, \vol, vol1]); ~l1f1 = Synth(s6, [\dur, ~f1/~icd6, \vol, vol1]);
792 ~l2a1 = Synth(s1, [\dur, ~f2, \vol, vol2]); ~l2b1 = Synth(s2, [\dur, ~f2, \vol, vol2]);
793 ~l2c1 = Synth(s3, [\dur, ~f2/~icd3, \vol, vol2]); ~l2d1 = Synth(s4, [\dur, ~f2/~icd3, \vol, vol2]);
794 ~l2e1 = Synth(s5_2, [\dur, ~f2/~icd6, \vol, vol2]); ~l2f1 = Synth(s6, [\dur, ~f2/~icd6, \vol, vol2]);
795 ~l3a1 = Synth(s1, [\dur, ~f3, \vol, vol3]); ~l3b1 = Synth(s2, [\dur, ~f3, \vol, vol3]);
796 ~l3c1 = Synth(s3, [\dur, ~f3/~icd3, \vol, vol3]); ~l3d1 = Synth(s4, [\dur, ~f3/~icd3, \vol, vol3]);
797 ~l3e1 = Synth(s5_3, [\dur, ~f3/~icd6, \vol, vol3]); ~l3f1 = Synth(s6, [\dur, ~f3/~icd6, \vol, vol3]);
798 ~l4a1 = Synth(s1, [\dur, ~f4, \vol, vol4]); ~l4b1 = Synth(s2, [\dur, ~f4, \vol, vol4]);
799 ~l4c1 = Synth(s3, [\dur, ~f4/~icd3, \vol, vol4]); ~l4d1 = Synth(s4, [\dur, ~f4/~icd3, \vol, vol4]);
800 ~l4e1 = Synth(s5_4, [\dur, ~f4/~icd6, \vol, vol4]); ~l4f1 = Synth(s6, [\dur, ~f4/~icd6, \vol, vol4]);
801 ~l5a1 = Synth(s1, [\dur, ~f5, \vol, vol5]); ~l5b1 = Synth(s2, [\dur, ~f5, \vol, vol5]);
802 ~l5c1 = Synth(s3, [\dur, ~f5/~icd3, \vol, vol5]); ~l5d1 = Synth(s4, [\dur, ~f5/~icd3, \vol, vol5]);
803 ~l5e1 = Synth(s5_5, [\dur, ~f5/~icd6, \vol, vol5]); ~l5f1 = Synth(s6, [\dur, ~f5/~icd6, \vol, vol5]);
804 ~l6a1 = Synth(s1, [\dur, ~f6, \vol, vol6]); ~l6b1 = Synth(s2, [\dur, ~f6, \vol, vol6]);
805 ~l6c1 = Synth(s3, [\dur, ~f6/~icd3, \vol, vol6]); ~l6d1 = Synth(s4, [\dur, ~f6/~icd3, \vol, vol6]);
806 ~l6e1 = Synth(s5_6, [\dur, ~f6/~icd6, \vol, vol6]); ~l6f1 = Synth(s6, [\dur, ~f6/~icd6, \vol, vol6]);
807 ~l7a1 = Synth(s1, [\dur, ~f7, \vol, vol7]); ~l7b1 = Synth(s2, [\dur, ~f7, \vol, vol7]);
808 ~l7c1 = Synth(s3, [\dur, ~f7/~icd3, \vol, vol7]); ~l7d1 = Synth(s4, [\dur, ~f7/~icd3, \vol, vol7]);
809 ~l7e1 = Synth(s5_7, [\dur, ~f7/~icd6, \vol, vol7]); ~l7f1 = Synth(s6, [\dur, ~f7/~icd6, \vol, vol7]);
810 ~l8a1 = Synth(s1, [\dur, ~f8, \vol, vol8]); ~l8b1 = Synth(s2, [\dur, ~f8, \vol, vol8]);
811 ~l8c1 = Synth(s3, [\dur, ~f8/~icd3, \vol, vol8]); ~l8d1 = Synth(s4, [\dur, ~f8/~icd3, \vol, vol8]);
812 ~l8e1 = Synth(s5_8, [\dur, ~f8/~icd6, \vol, vol8]); ~l8f1 = Synth(s6, [\dur, ~f8/~icd6, \vol, vol8]);
813 ~l9a1 = Synth(s1, [\dur, ~f9, \vol, vol9]); ~l9b1 = Synth(s2, [\dur, ~f9, \vol, vol9]);
814 ~l9c1 = Synth(s3, [\dur, ~f9/~icd3, \vol, vol9]); ~l9d1 = Synth(s4, [\dur, ~f9/~icd3, \vol, vol9]);
815 ~l9e1 = Synth(s5_9, [\dur, ~f9/~icd6, \vol, vol9]); ~l9f1 = Synth(s6, [\dur, ~f9/~icd6, \vol, vol9]);
816 ~l10a1 = Synth(s1, [\dur,~f10, \vol, vol10]); ~l10b1 = Synth(s2, [\dur, ~f10, \vol, vol10]);
817 ~l10c1 = Synth(s3, [\dur, ~f10/~icd3, \vol, vol10]);~l10d1 = Synth(s4, [\dur, ~f10/~icd3, \vol, vol10]);
818 ~l10e1 = Synth(s5_10, [\dur, ~f10/~icd6, \vol, vol10]);~l10f1 = Synth(s6, [\dur, ~f10/~icd6, \vol, vol10]);
819 ~l11a1 = Synth(s1, [\dur,~f11, \vol, vol11]); ~l11b1 = Synth(s2, [\dur, ~f11, \vol, vol11]);
820 ~l11c1 = Synth(s3, [\dur, ~f11/~icd3, \vol, vol11]);~l11d1 = Synth(s4, [\dur, ~f11/~icd3, \vol, vol11]);
821 ~l11e1 = Synth(s5_11, [\dur, ~f11/~icd6, \vol, vol11]);~l11f1 = Synth(s6, [\dur, ~f11/~icd6, \vol, vol11]);
822 ~l12a1 = Synth(s1, [\dur,~f12, \vol, vol12]); ~l12b1 = Synth(s2, [\dur, ~f12, \vol, vol12]);
823 ~l12c1 = Synth(s3, [\dur, ~f12/~icd3, \vol, vol12]);~l12d1 = Synth(s4, [\dur, ~f12/~icd3, \vol, vol12]);
824 ~l12e1 = Synth(s5_12, [\dur, ~f12/~icd6, \vol, vol12]);~l12f1 = Synth(s6, [\dur, ~f12/~icd6, \vol, vol12]);
828 AppClock.sched(0.161803398875,{
829 ([~l1a,~l1b,~l1c,~l1d,~l1e,~l1f,~l2a,~l2b,~l2c,~l2d,~l2e,~l2f,~l3a,~l3b,~l3c,~l3d,~l3e,~l3f,~l4a,~l4b,~l4c,~l4d,~l4e,~l4f,~l5a,~l5b,~l5c,~l5d,~l5e,~l5f,~l6a,~l6b,~l6c,~l6d,~l6e,~l6f,~l7a,~l7b,~l7c,~l7d,~l7e,~l7f,~l8a,~l8b,~l8c,~l8d,~l8e,~l8f,~l9a,~l9b,~l9c,~l9d,~l9e,~l9f,~l10a,~l10b,~l10c,~l10d,~l10e,~l10f,~l11a,~l11b,~l11c,~l11d,~l11e,~l11f,~l12a,~l12b,~l12c,~l12d,~l12e,~l12f].do(_.free)); ~slideroutine.stop;
833 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (View(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (View(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
834 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (View(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (View(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
835 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (View(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (View(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
836 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (View(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (View(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
837 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (View(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (View(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
838 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (View(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (View(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
839 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (View(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (View(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
840 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (View(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (View(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
841 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (View(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (View(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
842 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (View(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (View(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
843 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (View(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (View(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
844 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (View(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (View(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
851 {~l1a1.isRunning == true}{
852 (1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6;
853 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
855 ~l1a1.set(\dur, ~f1, \vol, vol1); ~l1b1.set(\dur, ~f1, \vol, vol1);
856 ~l1c1.set(\dur, ~f1/~icd3, \vol, vol1); ~l1d1.set(\dur, ~f1/~icd3, \vol, vol1);
857 ~l1e1.set(\dur, ~f1/~icd6, \vol, vol1); ~l1f1.set(\dur, ~f1/~icd6, \vol, vol1);
858 ~l2a1.set(\dur, ~f2, \vol, vol2); ~l2b1.set(\dur, ~f2, \vol, vol2);
859 ~l2c1.set(\dur, ~f2/~icd3, \vol, vol2); ~l2d1.set(\dur, ~f2/~icd3, \vol, vol2);
860 ~l2e1.set(\dur, ~f2/~icd6, \vol, vol2); ~l2f1.set(\dur, ~f2/~icd6, \vol, vol2);
861 ~l3a1.set(\dur, ~f3, \vol, vol3); ~l3b1.set(\dur, ~f3, \vol, vol3);
862 ~l3c1.set(\dur, ~f3/~icd3, \vol, vol3); ~l3d1.set(\dur, ~f3/~icd3, \vol, vol3);
863 ~l3e1.set(\dur, ~f3/~icd6, \vol, vol3); ~l3f1.set(\dur, ~f3/~icd6, \vol, vol3);
864 ~l4a1.set(\dur, ~f4, \vol, vol4); ~l4b1.set(\dur, ~f4, \vol, vol4);
865 ~l4c1.set(\dur, ~f4/~icd3, \vol, vol4); ~l4d1.set(\dur, ~f4/~icd3, \vol, vol4);
866 ~l4e1.set(\dur, ~f4/~icd6, \vol, vol4); ~l4f1.set(\dur, ~f4/~icd6, \vol, vol4);
867 ~l5a1.set(\dur, ~f5, \vol, vol5); ~l5b1.set(\dur, ~f5, \vol, vol5);
868 ~l5c1.set(\dur, ~f5/~icd3, \vol, vol5); ~l5d1.set(\dur, ~f5/~icd3, \vol, vol5);
869 ~l5e1.set(\dur, ~f5/~icd6, \vol, vol5); ~l5f1.set(\dur, ~f5/~icd6, \vol, vol5);
870 ~l6a1.set(\dur, ~f6, \vol, vol6); ~l6b1.set(\dur, ~f6, \vol, vol6);
871 ~l6c1.set(\dur, ~f6/~icd3, \vol, vol6); ~l6d1.set(\dur, ~f6/~icd3, \vol, vol6);
872 ~l6e1.set(\dur, ~f6/~icd6, \vol, vol6); ~l6f1.set(\dur, ~f6/~icd6, \vol, vol6);
873 ~l7a1.set(\dur, ~f7, \vol, vol7); ~l7b1.set(\dur, ~f7, \vol, vol7);
874 ~l7c1.set(\dur, ~f7/~icd3, \vol, vol7); ~l7d1.set(\dur, ~f7/~icd3, \vol, vol7);
875 ~l7e1.set(\dur, ~f7/~icd6, \vol, vol7); ~l7f1.set(\dur, ~f7/~icd6, \vol, vol7);
876 ~l8a1.set(\dur, ~f8, \vol, vol8); ~l8b1.set(\dur, ~f8, \vol, vol8);
877 ~l8c1.set(\dur, ~f8/~icd3, \vol, vol8); ~l8d1.set(\dur, ~f8/~icd3, \vol, vol8);
878 ~l8e1.set(\dur, ~f8/~icd6, \vol, vol8); ~l8f1.set(\dur, ~f8/~icd6, \vol, vol8);
879 ~l9a1.set(\dur, ~f9, \vol, vol9); ~l9b1.set(\dur, ~f9, \vol, vol9);
880 ~l9c1.set(\dur, ~f9/~icd3, \vol, vol9); ~l9d1.set(\dur, ~f9/~icd3, \vol, vol9);
881 ~l9e1.set(\dur, ~f9/~icd6, \vol, vol9); ~l9f1.set(\dur, ~f9/~icd6, \vol, vol9);
882 ~l10a1.set(\dur, ~f10, \vol, vol10); ~l10b1.set(\dur, ~f10, \vol, vol10);
883 ~l10c1.set(\dur, ~f10/~icd3, \vol, vol10);~l10d1.set(\dur, ~f10/~icd3, \vol, vol10);
884 ~l10e1.set(\dur, ~f10/~icd6, \vol, vol10);~l10f1.set(\dur, ~f10/~icd6, \vol, vol10);
885 ~l11a1.set(\dur, ~f11, \vol, vol11); ~l11b1.set(\dur, ~f11, \vol, vol11);
886 ~l11c1.set(\dur, ~f11/~icd3, \vol, vol11);~l11d1.set(\dur, ~f11/~icd3, \vol, vol11);
887 ~l11e1.set(\dur, ~f11/~icd6, \vol, vol11);~l11f1.set(\dur, ~f11/~icd6, \vol, vol11);
888 ~l12a1.set(\dur, ~f12, \vol, vol12); ~l12b1.set(\dur, ~f12, \vol, vol12);
889 ~l12c1.set(\dur, ~f12/~icd3, \vol, vol12);~l12d1.set(\dur, ~f12/~icd3, \vol, vol12);
890 ~l12e1.set(\dur, ~f12/~icd6, \vol, vol12);~l12f1.set(\dur, ~f12/~icd6, \vol, vol12);
894 {~l1a.isRunning == true} {
895 (1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6;
896 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
898 ~l1a.set(\dur, ~f1, \vol, vol1); ~l1b.set(\dur, ~f1, \vol, vol1);
899 ~l1c.set(\dur, ~f1/~icd3, \vol, vol1); ~l1d.set(\dur, ~f1/~icd3, \vol, vol1);
900 ~l1e.set(\dur, ~f1/~icd6, \vol, vol1); ~l1f.set(\dur, ~f1/~icd6, \vol, vol1);
901 ~l2a.set(\dur, ~f2, \vol, vol2); ~l2b.set(\dur, ~f2, \vol, vol2);
902 ~l2c.set(\dur, ~f2/~icd3, \vol, vol2); ~l2d.set(\dur, ~f2/~icd3, \vol, vol2);
903 ~l2e.set(\dur, ~f2/~icd6, \vol, vol2); ~l2f.set(\dur, ~f2/~icd6, \vol, vol2);
904 ~l3a.set(\dur, ~f3, \vol, vol3); ~l3b.set(\dur, ~f3, \vol, vol3);
905 ~l3c.set(\dur, ~f3/~icd3, \vol, vol3); ~l3d.set(\dur, ~f3/~icd3, \vol, vol3);
906 ~l3e.set(\dur, ~f3/~icd6, \vol, vol3); ~l3f.set(\dur, ~f3/~icd6, \vol, vol3);
907 ~l4a.set(\dur, ~f4, \vol, vol4); ~l4b.set(\dur, ~f4, \vol, vol4);
908 ~l4c.set(\dur, ~f4/~icd3, \vol, vol4); ~l4d.set(\dur, ~f4/~icd3, \vol, vol4);
909 ~l4e.set(\dur, ~f4/~icd6, \vol, vol4); ~l4f.set(\dur, ~f4/~icd6, \vol, vol4);
910 ~l5a.set(\dur, ~f5, \vol, vol5); ~l5b.set(\dur, ~f5, \vol, vol5);
911 ~l5c.set(\dur, ~f5/~icd3, \vol, vol5); ~l5d.set(\dur, ~f5/~icd3, \vol, vol5);
912 ~l5e.set(\dur, ~f5/~icd6, \vol, vol5); ~l5f.set(\dur, ~f5/~icd6, \vol, vol5);
913 ~l6a.set(\dur, ~f6, \vol, vol6); ~l6b.set(\dur, ~f6, \vol, vol6);
914 ~l6c.set(\dur, ~f6/~icd3, \vol, vol6); ~l6d.set(\dur, ~f6/~icd3, \vol, vol6);
915 ~l6e.set(\dur, ~f6/~icd6, \vol, vol6); ~l6f.set(\dur, ~f6/~icd6, \vol, vol6);
916 ~l7a.set(\dur, ~f7, \vol, vol7); ~l7b.set(\dur, ~f7, \vol, vol7);
917 ~l7c.set(\dur, ~f7/~icd3, \vol, vol7); ~l7d.set(\dur, ~f7/~icd3, \vol, vol7);
918 ~l7e.set(\dur, ~f7/~icd6, \vol, vol7); ~l7f.set(\dur, ~f7/~icd6, \vol, vol7);
919 ~l8a.set(\dur, ~f8, \vol, vol8); ~l8b.set(\dur, ~f8, \vol, vol8);
920 ~l8c.set(\dur, ~f8/~icd3, \vol, vol8); ~l8d.set(\dur, ~f8/~icd3, \vol, vol8);
921 ~l8e.set(\dur, ~f8/~icd6, \vol, vol8); ~l8f.set(\dur, ~f8/~icd6, \vol, vol8);
922 ~l9a.set(\dur, ~f9, \vol, vol9); ~l9b.set(\dur, ~f9, \vol, vol9);
923 ~l9c.set(\dur, ~f9/~icd3, \vol, vol9); ~l9d.set(\dur, ~f9/~icd3, \vol, vol9);
924 ~l9e.set(\dur, ~f9/~icd6, \vol, vol9); ~l9f.set(\dur, ~f9/~icd6, \vol, vol9);
925 ~l10a.set(\dur, ~f10, \vol, vol10); ~l10b.set(\dur, ~f10, \vol, vol10);
926 ~l10c.set(\dur, ~f10/~icd3, \vol, vol10);~l10d.set(\dur, ~f10/~icd3, \vol, vol10);
927 ~l10e.set(\dur, ~f10/~icd6, \vol, vol10);~l10f.set(\dur, ~f10/~icd6, \vol, vol10);
928 ~l11a.set(\dur, ~f11, \vol, vol11); ~l11b.set(\dur, ~f11, \vol, vol11);
929 ~l11c.set(\dur, ~f11/~icd3, \vol, vol11);~l11d.set(\dur, ~f11/~icd3, \vol, vol11);
930 ~l11e.set(\dur, ~f11/~icd6, \vol, vol11);~l11f.set(\dur, ~f11/~icd6, \vol, vol11);
931 ~l12a.set(\dur, ~f12, \vol, vol12); ~l12b.set(\dur, ~f12, \vol, vol12);
932 ~l12c.set(\dur, ~f12/~icd3, \vol, vol12);~l12d.set(\dur, ~f12/~icd3, \vol, vol12);
933 ~l12e.set(\dur, ~f12/~icd6, \vol, vol12);~l12f.set(\dur, ~f12/~icd6, \vol, vol12);
938 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (View(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (View(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
939 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (View(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (View(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
940 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (View(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (View(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
941 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (View(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (View(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
942 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (View(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (View(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
943 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (View(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (View(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
944 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (View(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (View(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
945 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (View(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (View(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
946 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (View(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (View(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
947 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (View(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (View(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
948 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (View(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (View(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
949 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (View(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (View(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
955 {~l1a1.isRunning == true}{(//fprog
956 ~slideroutine = Routine({1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6;
957 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
958 ~slidedo.do({~slidecount=~slidecount-1;
960 [ ~f1=~f1+g,~f2=~f2+h,~f3=~f3+i,~f4=~f4+j,~f5=~f5+k,~f6=~f6+l,~f7=~f7+m,~f8=~f8+n,~f9=~f9+o,~f10=~f10+p,~f11=~f11+q,~f12=~f12+r ];
962 ~l1a1.set(\dur, ~f1, \vol, vol1); ~l1b1.set(\dur, ~f1, \vol, vol1);
963 ~l1c1.set(\dur, ~f1/~icd3, \vol, vol1); ~l1d1.set(\dur, ~f1/~icd3, \vol, vol1);
964 ~l1e1.set(\dur, ~f1/~icd6, \vol, vol1); ~l1f1.set(\dur, ~f1/~icd6, \vol, vol1);
965 ~l2a1.set(\dur, ~f2, \vol, vol2); ~l2b1.set(\dur, ~f2, \vol, vol2);
966 ~l2c1.set(\dur, ~f2/~icd3, \vol, vol2); ~l2d1.set(\dur, ~f2/~icd3, \vol, vol2);
967 ~l2e1.set(\dur, ~f2/~icd6, \vol, vol2); ~l2f1.set(\dur, ~f2/~icd6, \vol, vol2);
968 ~l3a1.set(\dur, ~f3, \vol, vol3); ~l3b1.set(\dur, ~f3, \vol, vol3);
969 ~l3c1.set(\dur, ~f3/~icd3, \vol, vol3); ~l3d1.set(\dur, ~f3/~icd3, \vol, vol3);
970 ~l3e1.set(\dur, ~f3/~icd6, \vol, vol3); ~l3f1.set(\dur, ~f3/~icd6, \vol, vol3);
971 ~l4a1.set(\dur, ~f4, \vol, vol4); ~l4b1.set(\dur, ~f4, \vol, vol4);
972 ~l4c1.set(\dur, ~f4/~icd3, \vol, vol4); ~l4d1.set(\dur, ~f4/~icd3, \vol, vol4);
973 ~l4e1.set(\dur, ~f4/~icd6, \vol, vol4); ~l4f1.set(\dur, ~f4/~icd6, \vol, vol4);
974 ~l5a1.set(\dur, ~f5, \vol, vol5); ~l5b1.set(\dur, ~f5, \vol, vol5);
975 ~l5c1.set(\dur, ~f5/~icd3, \vol, vol5); ~l5d1.set(\dur, ~f5/~icd3, \vol, vol5);
976 ~l5e1.set(\dur, ~f5/~icd6, \vol, vol5); ~l5f1.set(\dur, ~f5/~icd6, \vol, vol5);
977 ~l6a1.set(\dur, ~f6, \vol, vol6); ~l6b1.set(\dur, ~f6, \vol, vol6);
978 ~l6c1.set(\dur, ~f6/~icd3, \vol, vol6); ~l6d1.set(\dur, ~f6/~icd3, \vol, vol6);
979 ~l6e1.set(\dur, ~f6/~icd6, \vol, vol6); ~l6f1.set(\dur, ~f6/~icd6, \vol, vol6);
980 ~l7a1.set(\dur, ~f7, \vol, vol7); ~l7b1.set(\dur, ~f7, \vol, vol7);
981 ~l7c1.set(\dur, ~f7/~icd3, \vol, vol7); ~l7d1.set(\dur, ~f7/~icd3, \vol, vol7);
982 ~l7e1.set(\dur, ~f7/~icd6, \vol, vol7); ~l7f1.set(\dur, ~f7/~icd6, \vol, vol7);
983 ~l8a1.set(\dur, ~f8, \vol, vol8); ~l8b1.set(\dur, ~f8, \vol, vol8);
984 ~l8c1.set(\dur, ~f8/~icd3, \vol, vol8); ~l8d1.set(\dur, ~f8/~icd3, \vol, vol8);
985 ~l8e1.set(\dur, ~f8/~icd6, \vol, vol8); ~l8f1.set(\dur, ~f8/~icd6, \vol, vol8);
986 ~l9a1.set(\dur, ~f9, \vol, vol9); ~l9b1.set(\dur, ~f9, \vol, vol9);
987 ~l9c1.set(\dur, ~f9/~icd3, \vol, vol9); ~l9d1.set(\dur, ~f9/~icd3, \vol, vol9);
988 ~l9e1.set(\dur, ~f9/~icd6, \vol, vol9); ~l9f1.set(\dur, ~f9/~icd6, \vol, vol9);
989 ~l10a1.set(\dur, ~f10, \vol, vol10); ~l10b1.set(\dur, ~f10, \vol, vol10);
990 ~l10c1.set(\dur, ~f10/~icd3, \vol, vol10);~l10d1.set(\dur, ~f10/~icd3, \vol, vol10);
991 ~l10e1.set(\dur, ~f10/~icd6, \vol, vol10);~l10f1.set(\dur, ~f10/~icd6, \vol, vol10);
992 ~l11a1.set(\dur, ~f11, \vol, vol11); ~l11b1.set(\dur, ~f11, \vol, vol11);
993 ~l11c1.set(\dur, ~f11/~icd3, \vol, vol11);~l11d1.set(\dur, ~f11/~icd3, \vol, vol11);
994 ~l11e1.set(\dur, ~f11/~icd6, \vol, vol11);~l11f1.set(\dur, ~f11/~icd6, \vol, vol11);
995 ~l12a1.set(\dur, ~f12, \vol, vol12); ~l12b1.set(\dur, ~f12, \vol, vol12);
996 ~l12c1.set(\dur, ~f12/~icd3, \vol, vol12);~l12d1.set(\dur, ~f12/~icd3, \vol, vol12);
997 ~l12e1.set(\dur, ~f12/~icd6, \vol, vol12);~l12f1.set(\dur, ~f12/~icd6, \vol, vol12);
1001 {if(~slidecount==0,{
1002 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (View(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (View(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
1003 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (View(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (View(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
1004 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (View(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (View(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
1005 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (View(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (View(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
1006 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (View(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (View(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
1007 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (View(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (View(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
1008 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (View(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (View(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
1009 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (View(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (View(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
1010 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (View(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (View(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
1011 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (View(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (View(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
1012 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (View(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (View(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
1013 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (View(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (View(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
1016 (~slidetime/~slidedo).wait;});});}).play;);}
1017 {~l1a.isRunning == true} {(//fprog
1018 ~slideroutine = Routine({1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6;
1019 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
1020 ~slidedo.do({~slidecount=~slidecount-1;
1022 [ ~f1=~f1+g,~f2=~f2+h,~f3=~f3+i,~f4=~f4+j,~f5=~f5+k,~f6=~f6+l,~f7=~f7+m,~f8=~f8+n,~f9=~f9+o,~f10=~f10+p,~f11=~f11+q,~f12=~f12+r ];
1024 ~l1a.set(\dur, ~f1, \vol, vol1); ~l1b.set(\dur, ~f1, \vol, vol1);
1025 ~l1c.set(\dur, ~f1/~icd3, \vol, vol1); ~l1d.set(\dur, ~f1/~icd3, \vol, vol1);
1026 ~l1e.set(\dur, ~f1/~icd6, \vol, vol1); ~l1f.set(\dur, ~f1/~icd6, \vol, vol1);
1027 ~l2a.set(\dur, ~f2, \vol, vol2); ~l2b.set(\dur, ~f2, \vol, vol2);
1028 ~l2c.set(\dur, ~f2/~icd3, \vol, vol2); ~l2d.set(\dur, ~f2/~icd3, \vol, vol2);
1029 ~l2e.set(\dur, ~f2/~icd6, \vol, vol2); ~l2f.set(\dur, ~f2/~icd6, \vol, vol2);
1030 ~l3a.set(\dur, ~f3, \vol, vol3); ~l3b.set(\dur, ~f3, \vol, vol3);
1031 ~l3c.set(\dur, ~f3/~icd3, \vol, vol3); ~l3d.set(\dur, ~f3/~icd3, \vol, vol3);
1032 ~l3e.set(\dur, ~f3/~icd6, \vol, vol3); ~l3f.set(\dur, ~f3/~icd6, \vol, vol3);
1033 ~l4a.set(\dur, ~f4, \vol, vol4); ~l4b.set(\dur, ~f4, \vol, vol4);
1034 ~l4c.set(\dur, ~f4/~icd3, \vol, vol4); ~l4d.set(\dur, ~f4/~icd3, \vol, vol4);
1035 ~l4e.set(\dur, ~f4/~icd6, \vol, vol4); ~l4f.set(\dur, ~f4/~icd6, \vol, vol4);
1036 ~l5a.set(\dur, ~f5, \vol, vol5); ~l5b.set(\dur, ~f5, \vol, vol5);
1037 ~l5c.set(\dur, ~f5/~icd3, \vol, vol5); ~l5d.set(\dur, ~f5/~icd3, \vol, vol5);
1038 ~l5e.set(\dur, ~f5/~icd6, \vol, vol5); ~l5f.set(\dur, ~f5/~icd6, \vol, vol5);
1039 ~l6a.set(\dur, ~f6, \vol, vol6); ~l6b.set(\dur, ~f6, \vol, vol6);
1040 ~l6c.set(\dur, ~f6/~icd3, \vol, vol6); ~l6d.set(\dur, ~f6/~icd3, \vol, vol6);
1041 ~l6e.set(\dur, ~f6/~icd6, \vol, vol6); ~l6f.set(\dur, ~f6/~icd6, \vol, vol6);
1042 ~l7a.set(\dur, ~f7, \vol, vol7); ~l7b.set(\dur, ~f7, \vol, vol7);
1043 ~l7c.set(\dur, ~f7/~icd3, \vol, vol7); ~l7d.set(\dur, ~f7/~icd3, \vol, vol7);
1044 ~l7e.set(\dur, ~f7/~icd6, \vol, vol7); ~l7f.set(\dur, ~f7/~icd6, \vol, vol7);
1045 ~l8a.set(\dur, ~f8, \vol, vol8); ~l8b.set(\dur, ~f8, \vol, vol8);
1046 ~l8c.set(\dur, ~f8/~icd3, \vol, vol8); ~l8d.set(\dur, ~f8/~icd3, \vol, vol8);
1047 ~l8e.set(\dur, ~f8/~icd6, \vol, vol8); ~l8f.set(\dur, ~f8/~icd6, \vol, vol8);
1048 ~l9a.set(\dur, ~f9, \vol, vol9); ~l9b.set(\dur, ~f9, \vol, vol9);
1049 ~l9c.set(\dur, ~f9/~icd3, \vol, vol9); ~l9d.set(\dur, ~f9/~icd3, \vol, vol9);
1050 ~l9e.set(\dur, ~f9/~icd6, \vol, vol9); ~l9f.set(\dur, ~f9/~icd6, \vol, vol9);
1051 ~l10a.set(\dur, ~f10, \vol, vol10); ~l10b.set(\dur, ~f10, \vol, vol10);
1052 ~l10c.set(\dur, ~f10/~icd3, \vol, vol10);~l10d.set(\dur, ~f10/~icd3, \vol, vol10);
1053 ~l10e.set(\dur, ~f10/~icd6, \vol, vol10);~l10f.set(\dur, ~f10/~icd6, \vol, vol10);
1054 ~l11a.set(\dur, ~f11, \vol, vol11); ~l11b.set(\dur, ~f11, \vol, vol11);
1055 ~l11c.set(\dur, ~f11/~icd3, \vol, vol11);~l11d.set(\dur, ~f11/~icd3, \vol, vol11);
1056 ~l11e.set(\dur, ~f11/~icd6, \vol, vol11);~l11f.set(\dur, ~f11/~icd6, \vol, vol11);
1057 ~l12a.set(\dur, ~f12, \vol, vol12); ~l12b.set(\dur, ~f12, \vol, vol12);
1058 ~l12c.set(\dur, ~f12/~icd3, \vol, vol12);~l12d.set(\dur, ~f12/~icd3, \vol, vol12);
1059 ~l12e.set(\dur, ~f12/~icd6, \vol, vol12);~l12f.set(\dur, ~f12/~icd6, \vol, vol12);
1064 {if(~slidecount==0,{
1065 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (View(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (View(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
1066 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (View(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (View(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
1067 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (View(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (View(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
1068 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (View(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (View(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
1069 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (View(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (View(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
1070 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (View(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (View(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
1071 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (View(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (View(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
1072 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (View(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (View(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
1073 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (View(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (View(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
1074 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (View(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (View(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
1075 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (View(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (View(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
1076 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (View(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (View(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
1079 (~slidetime/~slidedo).wait;});});}).play;);};
1084 {~l1a1.isRunning == true}{
1085 (1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12;
1086 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
1087 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
1089 ~l1a1.set(\dur, f1, \vol, vol1); ~l1b1.set(\dur, f1, \vol, vol1);
1090 ~l1c1.set(\dur, f1/~icd3, \vol, vol1); ~l1d1.set(\dur, f1/~icd3, \vol, vol1);
1091 ~l1e1.set(\dur, f1/~icd6, \vol, vol1); ~l1f1.set(\dur, f1/~icd6, \vol, vol1);
1092 ~l2a1.set(\dur, f2, \vol, vol2); ~l2b1.set(\dur, f2, \vol, vol2);
1093 ~l2c1.set(\dur, f2/~icd3, \vol, vol2); ~l2d1.set(\dur, f2/~icd3, \vol, vol2);
1094 ~l2e1.set(\dur, f2/~icd6, \vol, vol2); ~l2f1.set(\dur, f2/~icd6, \vol, vol2);
1095 ~l3a1.set(\dur, f3, \vol, vol3); ~l3b1.set(\dur, f3, \vol, vol3);
1096 ~l3c1.set(\dur, f3/~icd3, \vol, vol3); ~l3d1.set(\dur, f3/~icd3, \vol, vol3);
1097 ~l3e1.set(\dur, f3/~icd6, \vol, vol3); ~l3f1.set(\dur, f3/~icd6, \vol, vol3);
1098 ~l4a1.set(\dur, f4, \vol, vol4); ~l4b1.set(\dur, f4, \vol, vol4);
1099 ~l4c1.set(\dur, f4/~icd3, \vol, vol4); ~l4d1.set(\dur, f4/~icd3, \vol, vol4);
1100 ~l4e1.set(\dur, f4/~icd6, \vol, vol4); ~l4f1.set(\dur, f4/~icd6, \vol, vol4);
1101 ~l5a1.set(\dur, f5, \vol, vol5); ~l5b1.set(\dur, f5, \vol, vol5);
1102 ~l5c1.set(\dur, f5/~icd3, \vol, vol5); ~l5d1.set(\dur, f5/~icd3, \vol, vol5);
1103 ~l5e1.set(\dur, f5/~icd6, \vol, vol5); ~l5f1.set(\dur, f5/~icd6, \vol, vol5);
1104 ~l6a1.set(\dur, f6, \vol, vol6); ~l6b1.set(\dur, f6, \vol, vol6);
1105 ~l6c1.set(\dur, f6/~icd3, \vol, vol6); ~l6d1.set(\dur, f6/~icd3, \vol, vol6);
1106 ~l6e1.set(\dur, f6/~icd6, \vol, vol6); ~l6f1.set(\dur, f6/~icd6, \vol, vol6);
1107 ~l7a1.set(\dur, f7, \vol, vol7); ~l7b1.set(\dur, f7, \vol, vol7);
1108 ~l7c1.set(\dur, f7/~icd3, \vol, vol7); ~l7d1.set(\dur, f7/~icd3, \vol, vol7);
1109 ~l7e1.set(\dur, f7/~icd6, \vol, vol7); ~l7f1.set(\dur, f7/~icd6, \vol, vol7);
1110 ~l8a1.set(\dur, f8, \vol, vol8); ~l8b1.set(\dur, f8, \vol, vol8);
1111 ~l8c1.set(\dur, f8/~icd3, \vol, vol8); ~l8d1.set(\dur, f8/~icd3, \vol, vol8);
1112 ~l8e1.set(\dur, f8/~icd6, \vol, vol8); ~l8f1.set(\dur, f8/~icd6, \vol, vol8);
1113 ~l9a1.set(\dur, f9, \vol, vol9); ~l9b1.set(\dur, f9, \vol, vol9);
1114 ~l9c1.set(\dur, f9/~icd3, \vol, vol9); ~l9d1.set(\dur, f9/~icd3, \vol, vol9);
1115 ~l9e1.set(\dur, f9/~icd6, \vol, vol9); ~l9f1.set(\dur, f9/~icd6, \vol, vol9);
1116 ~l10a1.set(\dur, f10, \vol, vol10); ~l10b1.set(\dur, f10, \vol, vol10);
1117 ~l10c1.set(\dur, f10/~icd3, \vol, vol10);~l10d1.set(\dur, f10/~icd3, \vol, vol10);
1118 ~l10e1.set(\dur, f10/~icd6, \vol, vol10);~l10f1.set(\dur, f10/~icd6, \vol, vol10);
1119 ~l11a1.set(\dur, f11, \vol, vol11); ~l11b1.set(\dur, f11, \vol, vol11);
1120 ~l11c1.set(\dur, f11/~icd3, \vol, vol11);~l11d1.set(\dur, f11/~icd3, \vol, vol11);
1121 ~l11e1.set(\dur, f11/~icd6, \vol, vol11);~l11f1.set(\dur, f11/~icd6, \vol, vol11);
1122 ~l12a1.set(\dur, f12, \vol, vol12); ~l12b1.set(\dur, f12, \vol, vol12);
1123 ~l12c1.set(\dur, f12/~icd3, \vol, vol12);~l12d1.set(\dur, f12/~icd3, \vol, vol12);
1124 ~l12e1.set(\dur, f12/~icd6, \vol, vol12);~l12f1.set(\dur, f12/~icd6, \vol, vol12);
1128 {~l1a.isRunning == true} {
1129 (1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12;
1130 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
1131 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
1133 ~l1a.set(\dur, f1, \vol, vol1); ~l1b.set(\dur, f1, \vol, vol1);
1134 ~l1c.set(\dur, f1/~icd3, \vol, vol1); ~l1d.set(\dur, f1/~icd3, \vol, vol1);
1135 ~l1e.set(\dur, f1/~icd6, \vol, vol1); ~l1f.set(\dur, f1/~icd6, \vol, vol1);
1136 ~l2a.set(\dur, f2, \vol, vol2); ~l2b.set(\dur, f2, \vol, vol2);
1137 ~l2c.set(\dur, f2/~icd3, \vol, vol2); ~l2d.set(\dur, f2/~icd3, \vol, vol2);
1138 ~l2e.set(\dur, f2/~icd6, \vol, vol2); ~l2f.set(\dur, f2/~icd6, \vol, vol2);
1139 ~l3a.set(\dur, f3, \vol, vol3); ~l3b.set(\dur, f3, \vol, vol3);
1140 ~l3c.set(\dur, f3/~icd3, \vol, vol3); ~l3d.set(\dur, f3/~icd3, \vol, vol3);
1141 ~l3e.set(\dur, f3/~icd6, \vol, vol3); ~l3f.set(\dur, f3/~icd6, \vol, vol3);
1142 ~l4a.set(\dur, f4, \vol, vol4); ~l4b.set(\dur, f4, \vol, vol4);
1143 ~l4c.set(\dur, f4/~icd3, \vol, vol4); ~l4d.set(\dur, f4/~icd3, \vol, vol4);
1144 ~l4e.set(\dur, f4/~icd6, \vol, vol4); ~l4f.set(\dur, f4/~icd6, \vol, vol4);
1145 ~l5a.set(\dur, f5, \vol, vol5); ~l5b.set(\dur, f5, \vol, vol5);
1146 ~l5c.set(\dur, f5/~icd3, \vol, vol5); ~l5d.set(\dur, f5/~icd3, \vol, vol5);
1147 ~l5e.set(\dur, f5/~icd6, \vol, vol5); ~l5f.set(\dur, f5/~icd6, \vol, vol5);
1148 ~l6a.set(\dur, f6, \vol, vol6); ~l6b.set(\dur, f6, \vol, vol6);
1149 ~l6c.set(\dur, f6/~icd3, \vol, vol6); ~l6d.set(\dur, f6/~icd3, \vol, vol6);
1150 ~l6e.set(\dur, f6/~icd6, \vol, vol6); ~l6f.set(\dur, f6/~icd6, \vol, vol6);
1151 ~l7a.set(\dur, f7, \vol, vol7); ~l7b.set(\dur, f7, \vol, vol7);
1152 ~l7c.set(\dur, f7/~icd3, \vol, vol7); ~l7d.set(\dur, f7/~icd3, \vol, vol7);
1153 ~l7e.set(\dur, f7/~icd6, \vol, vol7); ~l7f.set(\dur, f7/~icd6, \vol, vol7);
1154 ~l8a.set(\dur, f8, \vol, vol8); ~l8b.set(\dur, f8, \vol, vol8);
1155 ~l8c.set(\dur, f8/~icd3, \vol, vol8); ~l8d.set(\dur, f8/~icd3, \vol, vol8);
1156 ~l8e.set(\dur, f8/~icd6, \vol, vol8); ~l8f.set(\dur, f8/~icd6, \vol, vol8);
1157 ~l9a.set(\dur, f9, \vol, vol9); ~l9b.set(\dur, f9, \vol, vol9);
1158 ~l9c.set(\dur, f9/~icd3, \vol, vol9); ~l9d.set(\dur, f9/~icd3, \vol, vol9);
1159 ~l9e.set(\dur, f9/~icd6, \vol, vol9); ~l9f.set(\dur, f9/~icd6, \vol, vol9);
1160 ~l10a.set(\dur, f10, \vol, vol10); ~l10b.set(\dur, f10, \vol, vol10);
1161 ~l10c.set(\dur, f10/~icd3, \vol, vol10);~l10d.set(\dur, f10/~icd3, \vol, vol10);
1162 ~l10e.set(\dur, f10/~icd6, \vol, vol10);~l10f.set(\dur, f10/~icd6, \vol, vol10);
1163 ~l11a.set(\dur, f11, \vol, vol11); ~l11b.set(\dur, f11, \vol, vol11);
1164 ~l11c.set(\dur, f11/~icd3, \vol, vol11);~l11d.set(\dur, f11/~icd3, \vol, vol11);
1165 ~l11e.set(\dur, f11/~icd6, \vol, vol11);~l11f.set(\dur, f11/~icd6, \vol, vol11);
1166 ~l12a.set(\dur, f12, \vol, vol12); ~l12b.set(\dur, f12, \vol, vol12);
1167 ~l12c.set(\dur, f12/~icd3, \vol, vol12);~l12d.set(\dur, f12/~icd3, \vol, vol12);
1168 ~l12e.set(\dur, f12/~icd6, \vol, vol12);~l12f.set(\dur, f12/~icd6, \vol, vol12);
1178 {~l1a1.isRunning == true}{
1179 (1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12;
1180 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
1181 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
1183 ~l1a1.set(\dur, f1, \vol, vol1); ~l1b1.set(\dur, f1, \vol, vol1);
1184 ~l1c1.set(\dur, f1/~icd3, \vol, vol1); ~l1d1.set(\dur, f1/~icd3, \vol, vol1);
1185 ~l1e1.set(\dur, f1/~icd6, \vol, vol1); ~l1f1.set(\dur, f1/~icd6, \vol, vol1);
1186 ~l2a1.set(\dur, f2, \vol, vol2); ~l2b1.set(\dur, f2, \vol, vol2);
1187 ~l2c1.set(\dur, f2/~icd3, \vol, vol2); ~l2d1.set(\dur, f2/~icd3, \vol, vol2);
1188 ~l2e1.set(\dur, f2/~icd6, \vol, vol2); ~l2f1.set(\dur, f2/~icd6, \vol, vol2);
1189 ~l3a1.set(\dur, f3, \vol, vol3); ~l3b1.set(\dur, f3, \vol, vol3);
1190 ~l3c1.set(\dur, f3/~icd3, \vol, vol3); ~l3d1.set(\dur, f3/~icd3, \vol, vol3);
1191 ~l3e1.set(\dur, f3/~icd6, \vol, vol3); ~l3f1.set(\dur, f3/~icd6, \vol, vol3);
1192 ~l4a1.set(\dur, f4, \vol, vol4); ~l4b1.set(\dur, f4, \vol, vol4);
1193 ~l4c1.set(\dur, f4/~icd3, \vol, vol4); ~l4d1.set(\dur, f4/~icd3, \vol, vol4);
1194 ~l4e1.set(\dur, f4/~icd6, \vol, vol4); ~l4f1.set(\dur, f4/~icd6, \vol, vol4);
1195 ~l5a1.set(\dur, f5, \vol, vol5); ~l5b1.set(\dur, f5, \vol, vol5);
1196 ~l5c1.set(\dur, f5/~icd3, \vol, vol5); ~l5d1.set(\dur, f5/~icd3, \vol, vol5);
1197 ~l5e1.set(\dur, f5/~icd6, \vol, vol5); ~l5f1.set(\dur, f5/~icd6, \vol, vol5);
1198 ~l6a1.set(\dur, f6, \vol, vol6); ~l6b1.set(\dur, f6, \vol, vol6);
1199 ~l6c1.set(\dur, f6/~icd3, \vol, vol6); ~l6d1.set(\dur, f6/~icd3, \vol, vol6);
1200 ~l6e1.set(\dur, f6/~icd6, \vol, vol6); ~l6f1.set(\dur, f6/~icd6, \vol, vol6);
1201 ~l7a1.set(\dur, f7, \vol, vol7); ~l7b1.set(\dur, f7, \vol, vol7);
1202 ~l7c1.set(\dur, f7/~icd3, \vol, vol7); ~l7d1.set(\dur, f7/~icd3, \vol, vol7);
1203 ~l7e1.set(\dur, f7/~icd6, \vol, vol7); ~l7f1.set(\dur, f7/~icd6, \vol, vol7);
1204 ~l8a1.set(\dur, f8, \vol, vol8); ~l8b1.set(\dur, f8, \vol, vol8);
1205 ~l8c1.set(\dur, f8/~icd3, \vol, vol8); ~l8d1.set(\dur, f8/~icd3, \vol, vol8);
1206 ~l8e1.set(\dur, f8/~icd6, \vol, vol8); ~l8f1.set(\dur, f8/~icd6, \vol, vol8);
1207 ~l9a1.set(\dur, f9, \vol, vol9); ~l9b1.set(\dur, f9, \vol, vol9);
1208 ~l9c1.set(\dur, f9/~icd3, \vol, vol9); ~l9d1.set(\dur, f9/~icd3, \vol, vol9);
1209 ~l9e1.set(\dur, f9/~icd6, \vol, vol9); ~l9f1.set(\dur, f9/~icd6, \vol, vol9);
1210 ~l10a1.set(\dur, f10, \vol, vol10); ~l10b1.set(\dur, f10, \vol, vol10);
1211 ~l10c1.set(\dur, f10/~icd3, \vol, vol10);~l10d1.set(\dur, f10/~icd3, \vol, vol10);
1212 ~l10e1.set(\dur, f10/~icd6, \vol, vol10);~l10f1.set(\dur, f10/~icd6, \vol, vol10);
1213 ~l11a1.set(\dur, f11, \vol, vol11); ~l11b1.set(\dur, f11, \vol, vol11);
1214 ~l11c1.set(\dur, f11/~icd3, \vol, vol11);~l11d1.set(\dur, f11/~icd3, \vol, vol11);
1215 ~l11e1.set(\dur, f11/~icd6, \vol, vol11);~l11f1.set(\dur, f11/~icd6, \vol, vol11);
1216 ~l12a1.set(\dur, f12, \vol, vol12); ~l12b1.set(\dur, f12, \vol, vol12);
1217 ~l12c1.set(\dur, f12/~icd3, \vol, vol12);~l12d1.set(\dur, f12/~icd3, \vol, vol12);
1218 ~l12e1.set(\dur, f12/~icd6, \vol, vol12);~l12f1.set(\dur, f12/~icd6, \vol, vol12);
1221 AppClock.sched(0.161803398875,{
1222 ([~l1a1,~l1b1,~l1c1,~l1d1,~l1e1,~l1f1,~l2a1,~l2b1,~l2c1,~l2d1,~l2e1,~l2f1,~l3a1,~l3b1,~l3c1,~l3d1,~l3e1,~l3f1,~l4a1,~l4b1,~l4c1,~l4d1,~l4e1,~l4f1,~l5a1,~l5b1,~l5c1,~l5d1,~l5e1,~l5f1,~l6a1,~l6b1,~l6c1,~l6d1,~l6e1,~l6f1,~l7a1,~l7b1,~l7c1,~l7d1,~l7e1,~l7f1,~l8a1,~l8b1,~l8c1,~l8d1,~l8e1,~l8f1,~l9a1,~l9b1,~l9c1,~l9d1,~l9e1,~l9f1,~l10a1,~l10b1,~l10c1,~l10d1,~l10e1,~l10f1,~l11a1,~l11b1,~l11c1,~l11d1,~l11e1,~l11f1,~l12a1,~l12b1,~l12c1,~l12d1,~l12e1,~l12f1 ].do(_.free)); ~slideroutine.stop;
1225 {~l1a.isRunning == true}{
1226 (1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6,f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12;
1227 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
1228 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
1230 ~l1a.set(\dur, f1, \vol, vol1); ~l1b.set(\dur, f1, \vol, vol1);
1231 ~l1c.set(\dur, f1/~icd3, \vol, vol1); ~l1d.set(\dur, f1/~icd3, \vol, vol1);
1232 ~l1e.set(\dur, f1/~icd6, \vol, vol1); ~l1f.set(\dur, f1/~icd6, \vol, vol1);
1233 ~l2a.set(\dur, f2, \vol, vol2); ~l2b.set(\dur, f2, \vol, vol2);
1234 ~l2c.set(\dur, f2/~icd3, \vol, vol2); ~l2d.set(\dur, f2/~icd3, \vol, vol2);
1235 ~l2e.set(\dur, f2/~icd6, \vol, vol2); ~l2f.set(\dur, f2/~icd6, \vol, vol2);
1236 ~l3a.set(\dur, f3, \vol, vol3); ~l3b.set(\dur, f3, \vol, vol3);
1237 ~l3c.set(\dur, f3/~icd3, \vol, vol3); ~l3d.set(\dur, f3/~icd3, \vol, vol3);
1238 ~l3e.set(\dur, f3/~icd6, \vol, vol3); ~l3f.set(\dur, f3/~icd6, \vol, vol3);
1239 ~l4a.set(\dur, f4, \vol, vol4); ~l4b.set(\dur, f4, \vol, vol4);
1240 ~l4c.set(\dur, f4/~icd3, \vol, vol4); ~l4d.set(\dur, f4/~icd3, \vol, vol4);
1241 ~l4e.set(\dur, f4/~icd6, \vol, vol4); ~l4f.set(\dur, f4/~icd6, \vol, vol4);
1242 ~l5a.set(\dur, f5, \vol, vol5); ~l5b.set(\dur, f5, \vol, vol5);
1243 ~l5c.set(\dur, f5/~icd3, \vol, vol5); ~l5d.set(\dur, f5/~icd3, \vol, vol5);
1244 ~l5e.set(\dur, f5/~icd6, \vol, vol5); ~l5f.set(\dur, f5/~icd6, \vol, vol5);
1245 ~l6a.set(\dur, f6, \vol, vol6); ~l6b.set(\dur, f6, \vol, vol6);
1246 ~l6c.set(\dur, f6/~icd3, \vol, vol6); ~l6d.set(\dur, f6/~icd3, \vol, vol6);
1247 ~l6e.set(\dur, f6/~icd6, \vol, vol6); ~l6f.set(\dur, f6/~icd6, \vol, vol6);
1248 ~l7a.set(\dur, f7, \vol, vol7); ~l7b.set(\dur, f7, \vol, vol7);
1249 ~l7c.set(\dur, f7/~icd3, \vol, vol7); ~l7d.set(\dur, f7/~icd3, \vol, vol7);
1250 ~l7e.set(\dur, f7/~icd6, \vol, vol7); ~l7f.set(\dur, f7/~icd6, \vol, vol7);
1251 ~l8a.set(\dur, f8, \vol, vol8); ~l8b.set(\dur, f8, \vol, vol8);
1252 ~l8c.set(\dur, f8/~icd3, \vol, vol8); ~l8d.set(\dur, f8/~icd3, \vol, vol8);
1253 ~l8e.set(\dur, f8/~icd6, \vol, vol8); ~l8f.set(\dur, f8/~icd6, \vol, vol8);
1254 ~l9a.set(\dur, f9, \vol, vol9); ~l9b.set(\dur, f9, \vol, vol9);
1255 ~l9c.set(\dur, f9/~icd3, \vol, vol9); ~l9d.set(\dur, f9/~icd3, \vol, vol9);
1256 ~l9e.set(\dur, f9/~icd6, \vol, vol9); ~l9f.set(\dur, f9/~icd6, \vol, vol9);
1257 ~l10a.set(\dur, f10, \vol, vol10); ~l10b.set(\dur, f10, \vol, vol10);
1258 ~l10c.set(\dur, f10/~icd3, \vol, vol10);~l10d.set(\dur, f10/~icd3, \vol, vol10);
1259 ~l10e.set(\dur, f10/~icd6, \vol, vol10);~l10f.set(\dur, f10/~icd6, \vol, vol10);
1260 ~l11a.set(\dur, f11, \vol, vol11); ~l11b.set(\dur, f11, \vol, vol11);
1261 ~l11c.set(\dur, f11/~icd3, \vol, vol11);~l11d.set(\dur, f11/~icd3, \vol, vol11);
1262 ~l11e.set(\dur, f11/~icd6, \vol, vol11);~l11f.set(\dur, f11/~icd6, \vol, vol11);
1263 ~l12a.set(\dur, f12, \vol, vol12); ~l12b.set(\dur, f12, \vol, vol12);
1264 ~l12c.set(\dur, f12/~icd3, \vol, vol12);~l12d.set(\dur, f12/~icd3, \vol, vol12);
1265 ~l12e.set(\dur, f12/~icd6, \vol, vol12);~l12f.set(\dur, f12/~icd6, \vol, vol12);
1268 AppClock.sched(0.161803398875,{
1269 ([~l1a,~l1b,~l1c,~l1d,~l1e,~l1f,~l2a,~l2b,~l2c,~l2d,~l2e,~l2f,~l3a,~l3b,~l3c,~l3d,~l3e,~l3f,~l4a,~l4b,~l4c,~l4d,~l4e,~l4f,~l5a,~l5b,~l5c,~l5d,~l5e,~l5f,~l6a,~l6b,~l6c,~l6d,~l6e,~l6f,~l7a,~l7b,~l7c,~l7d,~l7e,~l7f,~l8a,~l8b,~l8c,~l8d,~l8e,~l8f,~l9a,~l9b,~l9c,~l9d,~l9e,~l9f,~l10a,~l10b,~l10c,~l10d,~l10e,~l10f,~l11a,~l11b,~l11c,~l11d,~l11e,~l11f,~l12a,~l12b,~l12c,~l12d,~l12e,~l12f].do(_.free)); ~slideroutine.stop;
1286 {~slot8 == nil}{""};
1288 ~timevals = {(~tst = TextView(w, Rect(~tspl,~tspt, ~tspw, ~tsph)).background_(Color.black);
1290 "o1:_"++~time1o.value.asString++"_f1:_"++~time1f.value.asString++"_s1:_"++~time1s.value.asString++"\n" ++
1291 "o2:_"++~time2o.value.asString++"_f2:_"++~time2f.value.asString++"_s2:_"++~time2s.value.asString++"\n" ++
1292 "o3:_"++~time3o.value.asString++"_f3:_"++~time3f.value.asString++"_s3:_"++~time3s.value.asString++"\n" ++
1293 "o4:_"++~time4o.value.asString++"_f4:_"++~time4f.value.asString++"_s4:_"++~time4s.value.asString++"\n" ++
1294 "o5:_"++~time5o.value.asString++"_f5:_"++~time5f.value.asString++"_s5:_"++~time5s.value.asString++"\n" ++
1295 "o6:_"++~time6o.value.asString++"_f6:_"++~time6f.value.asString++"_s6:_"++~time6s.value.asString++"\n" ++
1296 "o7:_"++~time7o.value.asString++"_f7:_"++~time7f.value.asString++"_s7:_"++~time7s.value.asString++"\n" ++
1297 "o8:_"++~time8o.value.asString++"_f8:_"++~time8f.value.asString++"_s8:_"++~time8s.value.asString++"\n" ++"\n" ++
1298 if(~slot8 != ~slot, {
1299 (~slot1 = ~slot2).asString++"\n" ++
1300 (~slot2 = ~slot3).asString++"\n" ++
1301 (~slot3 = ~slot4).asString++"\n" ++
1302 (~slot4 = ~slot5).asString++"\n" ++
1303 (~slot5 = ~slot6).asString++"\n" ++
1304 (~slot6 = ~slot7).asString++"\n" ++
1305 (~slot7 = ~slot8).asString++"\n" ++
1306 (~slot8 = ~slot).asString;
1308 (~slot1).asString++"\n" ++
1309 (~slot2).asString++"\n" ++
1310 (~slot3).asString++"\n" ++
1311 (~slot4).asString++"\n" ++
1312 (~slot5).asString++"\n" ++
1313 (~slot6).asString++"\n" ++
1314 (~slot7).asString++"\n" ++
1319 ~tst.stringColor = Color.white;
1323 //monitoring number of synths function
1326 if((~numsynths != nil) or: (~numsynths.isPlaying == true), {~numsynths.stop;});
1327 ~numsynths = Routine({inf.do({if((s.numSynths > 73) and: (3.wait; s.numSynths > 73) and: (6.wait; s.numSynths > 73), {
1330 if(~numsynthmessage != nil, {~numsynthmessage.close;});
1331 ~numsynthmessage = View(w, Rect(Window.screenBounds.width-(340+46),Window.screenBounds.height-(340+46/1.6180339887499)-110,340+46,340+46/1.6180339887499)).background_(Color.black).front;
1332 ~numsynthmessagestring = StaticText(~numsynthmessage, Rect(0,0,340+46,340+46/1.6180339887499)).background_(Color.black);
1333 ~numsynthmessagestring.align = \topLeft;
1334 ~numsynthmessagestring.string ="Warning:"++"\n"++"\n"++"More than the normal amount of synths are currently running. It is recommended to free the server by pressing "+"ctrl/cmd - period".quote+" and then pressing the "+"ok".quote+" button. Otherwise, you can press the "+"cancel".quote+" button to allow the synths to keep running. If you press the "+"cancel".quote+" button this message will not show again unless "+"synth0".quote+" has been pressed.";
1335 ~numsynthmessagestring.stringColor = Color.white;
1336 ~numsynthmessagebutton1 = Button.new(~numsynthmessage,Rect(120-46,340/1.6180339887499-30,46,46/1.6180339887499)).states_([["ok",Color.white,Color.black]]).action_({AppClock.sched(0, {~numsynthmessage.close; ~numsynths.play; ~midifunc.value;});});
1337 ~numsynthmessagebutton2 = Button.new(~numsynthmessage,Rect(320+46-100,340/1.6180339887499-30,46,46/1.6180339887499)).states_([["cancel",Color.white,Color.black]]).action_({AppClock.sched(0, {~numsynths.stop; ~numsynthmessage.close;});});
1338 ~numsynthmessage.front;
1340 }); 1.wait;});}).play;
1343 ~numsynthsfunc.value;
1348 view.mouseDownAction = {
1349 |v, x, y, mod, butNum|
1351 if(butNum == 0, { v.refresh;
1353 //generate dots on mouse down action
1356 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
1360 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z1.close;~z1 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1361 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z2.close;~z2 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1362 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z3.close;~z3 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1363 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z4.close;~z4 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1364 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z5.close;~z5 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1365 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z6.close;~z6 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1366 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z7.close;~z7 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1367 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z8.close;~z8 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1368 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z9.close;~z9 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1369 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z10.close;~z10 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1370 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z11.close;~z11 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1371 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z12.close;~z12 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1372 {y>~tgrid and: y<~bgrid} {nil}
1373 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z1.close;~z1 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1374 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z2.close;~z2 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1375 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z3.close;~z3 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1376 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z4.close;~z4 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1377 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z5.close;~z5 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1378 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z6.close;~z6 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1379 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z7.close;~z7 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1380 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z8.close;~z8 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1381 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z9.close;~z9 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1382 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z10.close;~z10 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1383 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z11.close;~z11 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1384 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z12.close;~z12 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1388 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
1390 //set synth values on mouse down action
1393 {~l1a.isRunning == true}{
1396 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1397 ~l1a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1398 ~l1b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f1=q.value; ~undof1=~f1;
1399 ~l1c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1400 ~l1d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1401 ~l1e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1402 ~l1f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1403 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1404 ~l2a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1405 ~l2b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f2=q.value; ~undof2=~f2;
1406 ~l2c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1407 ~l2d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1408 ~l2e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1409 ~l2f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1410 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1411 ~l3a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1412 ~l3b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f3=q.value; ~undof3=~f3;
1413 ~l3c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1414 ~l3d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1415 ~l3e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1416 ~l3f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1417 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1418 ~l4a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1419 ~l4b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f4=q.value; ~undof4=~f4;
1420 ~l4c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1421 ~l4d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1422 ~l4e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1423 ~l4f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1424 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1425 ~l5a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1426 ~l5b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f5=q.value; ~undof5=~f5;
1427 ~l5c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1428 ~l5d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1429 ~l5e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1430 ~l5f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1431 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1432 ~l6a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1433 ~l6b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f6=q.value; ~undof6=~f6;
1434 ~l6c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1435 ~l6d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1436 ~l6e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1437 ~l6f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1438 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1439 ~l7a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1440 ~l7b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f7=q.value; ~undof7=~f7;
1441 ~l7c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1442 ~l7d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1443 ~l7e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1444 ~l7f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1445 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1446 ~l8a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1447 ~l8b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f8=q.value; ~undof8=~f8;
1448 ~l8c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1449 ~l8d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1450 ~l8e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1451 ~l8f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1452 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1453 ~l9a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1454 ~l9b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f9=q.value; ~undof9=~f9;
1455 ~l9c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1456 ~l9d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1457 ~l9e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1458 ~l9f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1459 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1460 ~l10a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1461 ~l10b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f10=q.value; ~undof10=~f10;
1462 ~l10c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1463 ~l10d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1464 ~l10e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1465 ~l10f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1466 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1467 ~l11a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1468 ~l11b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f11=q.value; ~undof11=~f11;
1469 ~l11c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1470 ~l11d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1471 ~l11e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1472 ~l11f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1473 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1474 ~l12a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1475 ~l12b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f12=q.value; ~undof12=~f12;
1476 ~l12c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1477 ~l12d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1478 ~l12e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1479 ~l12f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1480 {y>~tgrid and: y<~bgrid} {nil}
1481 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1482 ~l1a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1483 ~l1b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f1=q.value; ~undof1=~f1;
1484 ~l1c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1485 ~l1d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1486 ~l1e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1487 ~l1f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1488 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1489 ~l2a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1490 ~l2b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f2=q.value; ~undof2=~f2;
1491 ~l2c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1492 ~l2d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1493 ~l2e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1494 ~l2f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1495 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1496 ~l3a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1497 ~l3b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f3=q.value; ~undof3=~f3;
1498 ~l3c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1499 ~l3d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1500 ~l3e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1501 ~l3f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1502 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1503 ~l4a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1504 ~l4b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f4=q.value; ~undof4=~f4;
1505 ~l4c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1506 ~l4d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1507 ~l4e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1508 ~l4f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1509 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1510 ~l5a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1511 ~l5b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f5=q.value; ~undof5=~f5;
1512 ~l5c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1513 ~l5d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1514 ~l5e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1515 ~l5f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1516 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1517 ~l6a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1518 ~l6b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f6=q.value; ~undof6=~f6;
1519 ~l6c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1520 ~l6d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1521 ~l6e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1522 ~l6f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1523 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1524 ~l7a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1525 ~l7b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f7=q.value; ~undof7=~f7;
1526 ~l7c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1527 ~l7d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1528 ~l7e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1529 ~l7f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1530 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1531 ~l8a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1532 ~l8b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f8=q.value; ~undof8=~f8;
1533 ~l8c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1534 ~l8d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1535 ~l8e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1536 ~l8f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1537 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1538 ~l9a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1539 ~l9b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f9=q.value; ~undof9=~f9;
1540 ~l9c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1541 ~l9d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1542 ~l9e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1543 ~l9f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1544 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1545 ~l10a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1546 ~l10b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f10=q.value; ~undof10=~f10;
1547 ~l10c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1548 ~l10d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1549 ~l10e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1550 ~l10f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1551 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1552 ~l11a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1553 ~l11b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f11=q.value; ~undof11=~f11;
1554 ~l11c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1555 ~l11d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1556 ~l11e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1557 ~l11f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1558 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1559 ~l12a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1560 ~l12b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f12=q.value; ~undof12=~f12;
1561 ~l12c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1562 ~l12d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1563 ~l12e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1564 ~l12f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);};
1566 {~l1a1.isRunning == true}{
1569 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1570 ~l1a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1571 ~l1b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f1=q.value; ~undof1=~f1;
1572 ~l1c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1573 ~l1d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1574 ~l1e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1575 ~l1f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1576 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1577 ~l2a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1578 ~l2b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f2=q.value; ~undof2=~f2;
1579 ~l2c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1580 ~l2d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1581 ~l2e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1582 ~l2f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1583 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1584 ~l3a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1585 ~l3b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f3=q.value; ~undof3=~f3;
1586 ~l3c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1587 ~l3d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1588 ~l3e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1589 ~l3f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1590 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1591 ~l4a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1592 ~l4b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f4=q.value; ~undof4=~f4;
1593 ~l4c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1594 ~l4d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1595 ~l4e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1596 ~l4f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1597 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1598 ~l5a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1599 ~l5b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f5=q.value; ~undof5=~f5;
1600 ~l5c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1601 ~l5d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1602 ~l5e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1603 ~l5f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1604 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1605 ~l6a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1606 ~l6b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f6=q.value; ~undof6=~f6;
1607 ~l6c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1608 ~l6d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1609 ~l6e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1610 ~l6f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1611 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1612 ~l7a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1613 ~l7b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f7=q.value; ~undof7=~f7;
1614 ~l7c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1615 ~l7d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1616 ~l7e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1617 ~l7f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1618 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1619 ~l8a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1620 ~l8b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f8=q.value; ~undof8=~f8;
1621 ~l8c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1622 ~l8d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1623 ~l8e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1624 ~l8f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1625 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1626 ~l9a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1627 ~l9b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f9=q.value; ~undof9=~f9;
1628 ~l9c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1629 ~l9d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1630 ~l9e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1631 ~l9f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1632 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1633 ~l10a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1634 ~l10b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f10=q.value; ~undof10=~f10;
1635 ~l10c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1636 ~l10d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1637 ~l10e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1638 ~l10f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1639 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1640 ~l11a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1641 ~l11b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f11=q.value; ~undof11=~f11;
1642 ~l11c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1643 ~l11d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1644 ~l11e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1645 ~l11f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1646 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1647 ~l12a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1648 ~l12b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f12=q.value; ~undof12=~f12;
1649 ~l12c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1650 ~l12d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1651 ~l12e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1652 ~l12f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1653 {y>~tgrid and: y<~bgrid} {nil}
1654 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1655 ~l1a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1656 ~l1b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f1=q.value; ~undof1=~f1;
1657 ~l1c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1658 ~l1d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1659 ~l1e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1660 ~l1f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1661 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1662 ~l2a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1663 ~l2b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f2=q.value; ~undof2=~f2;
1664 ~l2c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1665 ~l2d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1666 ~l2e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1667 ~l2f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1668 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1669 ~l3a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1670 ~l3b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f3=q.value; ~undof3=~f3;
1671 ~l3c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1672 ~l3d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1673 ~l3e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1674 ~l3f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1675 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1676 ~l4a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1677 ~l4b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f4=q.value; ~undof4=~f4;
1678 ~l4c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1679 ~l4d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1680 ~l4e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1681 ~l4f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1682 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1683 ~l5a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1684 ~l5b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f5=q.value; ~undof5=~f5;
1685 ~l5c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1686 ~l5d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1687 ~l5e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1688 ~l5f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1689 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1690 ~l6a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1691 ~l6b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f6=q.value; ~undof6=~f6;
1692 ~l6c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1693 ~l6d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1694 ~l6e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1695 ~l6f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1696 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1697 ~l7a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1698 ~l7b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f7=q.value; ~undof7=~f7;
1699 ~l7c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1700 ~l7d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1701 ~l7e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1702 ~l7f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1703 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1704 ~l8a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1705 ~l8b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f8=q.value; ~undof8=~f8;
1706 ~l8c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1707 ~l8d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1708 ~l8e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1709 ~l8f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1710 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1711 ~l9a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1712 ~l9b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f9=q.value; ~undof9=~f9;
1713 ~l9c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1714 ~l9d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1715 ~l9e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1716 ~l9f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1717 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1718 ~l10a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1719 ~l10b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f10=q.value; ~undof10=~f10;
1720 ~l10c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1721 ~l10d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1722 ~l10e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1723 ~l10f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1724 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1725 ~l11a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1726 ~l11b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f11=q.value; ~undof11=~f11;
1727 ~l11c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1728 ~l11d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1729 ~l11e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1730 ~l11f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1731 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1732 ~l12a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1733 ~l12b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f12=q.value; ~undof12=~f12;
1734 ~l12c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1735 ~l12d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1736 ~l12e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1737 ~l12f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);};
1744 view.mouseMoveAction = {
1748 ~nw = ~nh*1.6180339887499;
1750 //generate dots on mouse move action
1753 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
1757 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z1.close;~z25.close;~z1 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1758 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z2.close;~z26.close;~z2 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1759 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z3.close;~z27.close;~z3 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1760 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z4.close;~z28.close;~z4 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1761 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z5.close;~z29.close;~z5 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1762 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z6.close;~z30.close;~z6 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1763 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z7.close;~z31.close;~z7 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1764 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z8.close;~z32.close;~z8 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1765 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z9.close;~z33.close;~z9 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1766 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z10.close;~z34.close;~z10 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1767 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z11.close;~z35.close;~z11 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1768 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z12.close;~z36.close;~z12 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1769 {y>~tgrid and: y<~bgrid} {nil}
1770 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z1.close;~z25.close;~z1 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1771 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z2.close;~z26.close;~z2 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1772 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z3.close;~z27.close;~z3 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1773 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z4.close;~z28.close;~z4 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1774 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z5.close;~z29.close;~z5 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1775 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z6.close;~z30.close;~z6 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1776 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z7.close;~z31.close;~z7 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1777 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z8.close;~z32.close;~z8 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1778 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z9.close;~z33.close;~z9 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1779 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z10.close;~z34.close;~z10 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1780 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z11.close;~z35.close;~z11 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1781 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z12.close;~z36.close;~z12 = (View(w, Rect(x, y, ~nw, 2)).background = Color.white;)};
1785 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
1787 //set synth values on mouse move action
1790 {~l1a.isRunning == true}{
1793 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1794 ~l1a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1795 ~l1b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f1=q.value; ~undof1=~f1;
1796 ~l1c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1797 ~l1d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1798 ~l1e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1799 ~l1f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1800 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1801 ~l2a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1802 ~l2b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f2=q.value; ~undof2=~f2;
1803 ~l2c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1804 ~l2d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1805 ~l2e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1806 ~l2f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1807 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1808 ~l3a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1809 ~l3b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f3=q.value; ~undof3=~f3;
1810 ~l3c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1811 ~l3d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1812 ~l3e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1813 ~l3f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1814 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1815 ~l4a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1816 ~l4b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f4=q.value; ~undof4=~f4;
1817 ~l4c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1818 ~l4d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1819 ~l4e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1820 ~l4f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1821 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1822 ~l5a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1823 ~l5b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f5=q.value; ~undof5=~f5;
1824 ~l5c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1825 ~l5d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1826 ~l5e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1827 ~l5f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1828 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1829 ~l6a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1830 ~l6b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f6=q.value; ~undof6=~f6;
1831 ~l6c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1832 ~l6d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1833 ~l6e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1834 ~l6f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1835 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1836 ~l7a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1837 ~l7b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f7=q.value; ~undof7=~f7;
1838 ~l7c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1839 ~l7d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1840 ~l7e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1841 ~l7f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1842 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1843 ~l8a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1844 ~l8b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f8=q.value; ~undof8=~f8;
1845 ~l8c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1846 ~l8d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1847 ~l8e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1848 ~l8f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1849 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1850 ~l9a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1851 ~l9b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f9=q.value; ~undof9=~f9;
1852 ~l9c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1853 ~l9d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1854 ~l9e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1855 ~l9f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1856 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1857 ~l10a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1858 ~l10b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f10=q.value; ~undof10=~f10;
1859 ~l10c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1860 ~l10d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1861 ~l10e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1862 ~l10f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1863 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1864 ~l11a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1865 ~l11b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f11=q.value; ~undof11=~f11;
1866 ~l11c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1867 ~l11d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1868 ~l11e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1869 ~l11f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1870 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1871 ~l12a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1872 ~l12b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f12=q.value; ~undof12=~f12;
1873 ~l12c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1874 ~l12d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1875 ~l12e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1876 ~l12f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1877 {y>~tgrid and: y<~bgrid} {nil}
1878 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1879 ~l1a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1880 ~l1b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f1=q.value; ~undof1=~f1;
1881 ~l1c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1882 ~l1d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1883 ~l1e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1884 ~l1f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1885 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1886 ~l2a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1887 ~l2b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f2=q.value; ~undof2=~f2;
1888 ~l2c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1889 ~l2d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1890 ~l2e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1891 ~l2f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1892 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1893 ~l3a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1894 ~l3b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f3=q.value; ~undof3=~f3;
1895 ~l3c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1896 ~l3d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1897 ~l3e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1898 ~l3f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1899 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1900 ~l4a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1901 ~l4b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f4=q.value; ~undof4=~f4;
1902 ~l4c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1903 ~l4d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1904 ~l4e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1905 ~l4f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1906 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1907 ~l5a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1908 ~l5b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f5=q.value; ~undof5=~f5;
1909 ~l5c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1910 ~l5d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1911 ~l5e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1912 ~l5f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1913 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1914 ~l6a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1915 ~l6b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f6=q.value; ~undof6=~f6;
1916 ~l6c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1917 ~l6d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1918 ~l6e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1919 ~l6f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1920 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1921 ~l7a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1922 ~l7b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f7=q.value; ~undof7=~f7;
1923 ~l7c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1924 ~l7d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1925 ~l7e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1926 ~l7f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1927 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1928 ~l8a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1929 ~l8b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f8=q.value; ~undof8=~f8;
1930 ~l8c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1931 ~l8d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1932 ~l8e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1933 ~l8f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1934 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1935 ~l9a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1936 ~l9b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f9=q.value; ~undof9=~f9;
1937 ~l9c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1938 ~l9d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1939 ~l9e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1940 ~l9f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1941 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1942 ~l10a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1943 ~l10b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f10=q.value; ~undof10=~f10;
1944 ~l10c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1945 ~l10d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1946 ~l10e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1947 ~l10f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1948 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1949 ~l11a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1950 ~l11b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f11=q.value; ~undof11=~f11;
1951 ~l11c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1952 ~l11d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1953 ~l11e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1954 ~l11f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1955 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1956 ~l12a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1957 ~l12b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f12=q.value; ~undof12=~f12;
1958 ~l12c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1959 ~l12d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1960 ~l12e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1961 ~l12f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);};
1963 {~l1a1.isRunning == true}{
1966 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1967 ~l1a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1968 ~l1b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f1=q.value; ~undof1=~f1;
1969 ~l1c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1970 ~l1d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1971 ~l1e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1972 ~l1f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1973 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1974 ~l2a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1975 ~l2b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f2=q.value; ~undof2=~f2;
1976 ~l2c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1977 ~l2d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1978 ~l2e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1979 ~l2f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1980 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1981 ~l3a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1982 ~l3b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f3=q.value; ~undof3=~f3;
1983 ~l3c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1984 ~l3d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1985 ~l3e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1986 ~l3f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1987 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1988 ~l4a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1989 ~l4b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f4=q.value; ~undof4=~f4;
1990 ~l4c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1991 ~l4d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1992 ~l4e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1993 ~l4f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1994 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1995 ~l5a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1996 ~l5b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f5=q.value; ~undof5=~f5;
1997 ~l5c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1998 ~l5d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1999 ~l5e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
2000 ~l5f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
2001 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
2002 ~l6a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
2003 ~l6b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f6=q.value; ~undof6=~f6;
2004 ~l6c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
2005 ~l6d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
2006 ~l6e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
2007 ~l6f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
2008 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
2009 ~l7a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
2010 ~l7b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f7=q.value; ~undof7=~f7;
2011 ~l7c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
2012 ~l7d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
2013 ~l7e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
2014 ~l7f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
2015 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
2016 ~l8a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
2017 ~l8b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f8=q.value; ~undof8=~f8;
2018 ~l8c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
2019 ~l8d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
2020 ~l8e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
2021 ~l8f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
2022 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
2023 ~l9a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
2024 ~l9b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f9=q.value; ~undof9=~f9;
2025 ~l9c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
2026 ~l9d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
2027 ~l9e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
2028 ~l9f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
2029 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
2030 ~l10a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
2031 ~l10b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f10=q.value; ~undof10=~f10;
2032 ~l10c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
2033 ~l10d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
2034 ~l10e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
2035 ~l10f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
2036 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
2037 ~l11a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
2038 ~l11b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f11=q.value; ~undof11=~f11;
2039 ~l11c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
2040 ~l11d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
2041 ~l11e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
2042 ~l11f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
2043 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
2044 ~l12a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
2045 ~l12b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f12=q.value; ~undof12=~f12;
2046 ~l12c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
2047 ~l12d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
2048 ~l12e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
2049 ~l12f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
2050 {y>~tgrid and: y<~bgrid} {nil}
2051 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2052 ~l1a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2053 ~l1b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f1=q.value; ~undof1=~f1;
2054 ~l1c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2055 ~l1d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2056 ~l1e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2057 ~l1f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2058 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2059 ~l2a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2060 ~l2b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f2=q.value; ~undof2=~f2;
2061 ~l2c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2062 ~l2d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2063 ~l2e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2064 ~l2f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2065 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2066 ~l3a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2067 ~l3b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f3=q.value; ~undof3=~f3;
2068 ~l3c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2069 ~l3d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2070 ~l3e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2071 ~l3f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2072 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2073 ~l4a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2074 ~l4b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f4=q.value; ~undof4=~f4;
2075 ~l4c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2076 ~l4d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2077 ~l4e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2078 ~l4f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2079 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2080 ~l5a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2081 ~l5b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f5=q.value; ~undof5=~f5;
2082 ~l5c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2083 ~l5d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2084 ~l5e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2085 ~l5f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2086 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2087 ~l6a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2088 ~l6b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f6=q.value; ~undof6=~f6;
2089 ~l6c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2090 ~l6d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2091 ~l6e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2092 ~l6f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2093 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2094 ~l7a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2095 ~l7b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f7=q.value; ~undof7=~f7;
2096 ~l7c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2097 ~l7d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2098 ~l7e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2099 ~l7f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2100 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2101 ~l8a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2102 ~l8b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f8=q.value; ~undof8=~f8;
2103 ~l8c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2104 ~l8d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2105 ~l8e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2106 ~l8f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2107 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2108 ~l9a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2109 ~l9b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f9=q.value; ~undof9=~f9;
2110 ~l9c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2111 ~l9d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2112 ~l9e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2113 ~l9f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2114 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2115 ~l10a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2116 ~l10b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f10=q.value; ~undof10=~f10;
2117 ~l10c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2118 ~l10d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2119 ~l10e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2120 ~l10f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2121 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2122 ~l11a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2123 ~l11b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f11=q.value; ~undof11=~f11;
2124 ~l11c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2125 ~l11d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2126 ~l11e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2127 ~l11f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2128 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2129 ~l12a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2130 ~l12b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f12=q.value; ~undof12=~f12;
2131 ~l12c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2132 ~l12d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2133 ~l12e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2134 ~l12f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);};
2139 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
2140 ~dc1 = ~tgrid-5; ~dc2 = ~bgrid-5; ~dca = 10;
2142 ~bpl = Window.screenBounds.width-340;
2143 ~bpt = Window.screenBounds.height-88;
2145 ~bpw = 40/1.6180339887499;
2150 b = Button.new(w,Rect(Window.screenBounds.width*0+80,Window.screenBounds.height-52,60,60/1.6180339887499)).states_([["copy",Color.white,Color.black],["copy",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2151 if(button.value == 1, {
2153 ~tsc = TextView(w, Rect(0,5, Window.screenBounds.width, 354)).background_(Color.black);
2156 "current chord/frequencies: "++"\n"++"\n"++
2158 "[~f1="++~f1.asString++",~f2="++~f2.asString++",~f3="++~f3.asString++",~f4="++~f4.asString++",~f5="++~f5.asString++",~f6="++~f6.asString++",~f7="++~f7.asString++",~f8="++~f8.asString++",~f9="++~f9.asString++",~f10="++~f10.asString++",~f11="++~f11.asString++",~f12="++~f12.asString++"]"++"\n"++"\n"++
2160 "saved open/flow 1-8 frequencies (in script format): "++"\n"++"\n"++
2162 "[~f1="++~fp1.asString++",~f2="++~fp2.asString++",~f3="++~fp3.asString++",~f4="++~fp4.asString++",~f5="++~fp5.asString++",~f6="++~fp6.asString++",~f7="++~fp7.asString++",~f8="++~fp8.asString++",~f9="++~fp9.asString++",~f10="++~fp10.asString++",~f11="++~fp11.asString++",~f12="++~fp12.asString++"];"++" "++"~synthopen.value; ~trace.value; (a).wait;"++"\n"++
2163 "[~f1="++~fp1b.asString++",~f2="++~fp2b.asString++",~f3="++~fp3b.asString++",~f4="++~fp4b.asString++",~f5="++~fp5b.asString++",~f6="++~fp6b.asString++",~f7="++~fp7b.asString++",~f8="++~fp8b.asString++",~f9="++~fp9b.asString++",~f10="++~fp10b.asString++",~f11="++~fp11b.asString++",~f12="++~fp12b.asString++"];"++" "++"~synthflow.value; ~trace.value; (a).wait;"++"\n"++
2164 "[~f1="++~fp1c.asString++",~f2="++~fp2c.asString++",~f3="++~fp3c.asString++",~f4="++~fp4c.asString++",~f5="++~fp5c.asString++",~f6="++~fp6c.asString++",~f7="++~fp7c.asString++",~f8="++~fp8c.asString++",~f9="++~fp9c.asString++",~f10="++~fp10c.asString++",~f11="++~fp11c.asString++",~f12="++~fp12c.asString++"];"++" "++"~synthflow.value; ~trace.value; (a).wait;"++"\n"++
2165 "[~f1="++~fp1d.asString++",~f2="++~fp2d.asString++",~f3="++~fp3d.asString++",~f4="++~fp4d.asString++",~f5="++~fp5d.asString++",~f6="++~fp6d.asString++",~f7="++~fp7d.asString++",~f8="++~fp8d.asString++",~f9="++~fp9d.asString++",~f10="++~fp10d.asString++",~f11="++~fp11d.asString++",~f12="++~fp12d.asString++"];"++" "++"~synthflow.value; ~trace.value; (a).wait;"++"\n"++
2166 "[~f1="++~fp1e.asString++",~f2="++~fp2e.asString++",~f3="++~fp3e.asString++",~f4="++~fp4e.asString++",~f5="++~fp5e.asString++",~f6="++~fp6e.asString++",~f7="++~fp7e.asString++",~f8="++~fp8e.asString++",~f9="++~fp9e.asString++",~f10="++~fp10e.asString++",~f11="++~fp11e.asString++",~f12="++~fp12e.asString++"];"++" "++"~synthflow.value; ~trace.value; (a).wait;"++"\n"++
2167 "[~f1="++~fp1f.asString++",~f2="++~fp2f.asString++",~f3="++~fp3f.asString++",~f4="++~fp4f.asString++",~f5="++~fp5f.asString++",~f6="++~fp6f.asString++",~f7="++~fp7f.asString++",~f8="++~fp8f.asString++",~f9="++~fp9f.asString++",~f10="++~fp10f.asString++",~f11="++~fp11f.asString++",~f12="++~fp12f.asString++"];"++" "++"~synthflow.value; ~trace.value; (a).wait;"++"\n"++
2168 "[~f1="++~fp1g.asString++",~f2="++~fp2g.asString++",~f3="++~fp3g.asString++",~f4="++~fp4g.asString++",~f5="++~fp5g.asString++",~f6="++~fp6g.asString++",~f7="++~fp7g.asString++",~f8="++~fp8g.asString++",~f9="++~fp9g.asString++",~f10="++~fp10g.asString++",~f11="++~fp11g.asString++",~f12="++~fp12g.asString++"];"++" "++"~synthflow.value; ~trace.value; (a).wait;"++"\n"++
2169 "[~f1="++~fp1h.asString++",~f2="++~fp2h.asString++",~f3="++~fp3h.asString++",~f4="++~fp4h.asString++",~f5="++~fp5h.asString++",~f6="++~fp6h.asString++",~f7="++~fp7h.asString++",~f8="++~fp8h.asString++",~f9="++~fp9h.asString++",~f10="++~fp10h.asString++",~f11="++~fp11h.asString++",~f12="++~fp12h.asString++"];"++" "++"~synthflow.value; ~trace.value; (a).wait;"++"\n"++"\n"++
2171 "saved slide 1-8 frequencies (in script format): "++"\n"++"\n"++
2173 "#o,p,q,r,s,t,u,v,w,x,y,z = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]; [~f1="++~fp1.asString++",~f2="++~fp2.asString++",~f3="++~fp3.asString++",~f4="++~fp4.asString++",~f5="++~fp5.asString++",~f6="++~fp6.asString++",~f7="++~fp7.asString++",~f8="++~fp8.asString++",~f9="++~fp9.asString++",~f10="++~fp10.asString++",~f11="++~fp11.asString++",~f12="++~fp12.asString++"];"++" "++"~slidetime = 1; ~slidedo = 432; ~synthslide.value; ~trace.value; (a).wait;"++"\n"++
2174 "#o,p,q,r,s,t,u,v,w,x,y,z = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]; [~f1="++~fp1b.asString++",~f2="++~fp2b.asString++",~f3="++~fp3b.asString++",~f4="++~fp4b.asString++",~f5="++~fp5b.asString++",~f6="++~fp6b.asString++",~f7="++~fp7b.asString++",~f8="++~fp8b.asString++",~f9="++~fp9b.asString++",~f10="++~fp10b.asString++",~f11="++~fp11b.asString++",~f12="++~fp12b.asString++"];"++" "++"~slidetime = 1; ~slidedo = 432; ~synthslide.value; ~trace.value; (a).wait;"++"\n"++
2175 "#o,p,q,r,s,t,u,v,w,x,y,z = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]; [~f1="++~fp1c.asString++",~f2="++~fp2c.asString++",~f3="++~fp3c.asString++",~f4="++~fp4c.asString++",~f5="++~fp5c.asString++",~f6="++~fp6c.asString++",~f7="++~fp7c.asString++",~f8="++~fp8c.asString++",~f9="++~fp9c.asString++",~f10="++~fp10c.asString++",~f11="++~fp11c.asString++",~f12="++~fp12c.asString++"];"++" "++"~slidetime = 1; ~slidedo = 432; ~synthslide.value; ~trace.value; (a).wait;"++"\n"++
2176 "#o,p,q,r,s,t,u,v,w,x,y,z = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]; [~f1="++~fp1d.asString++",~f2="++~fp2d.asString++",~f3="++~fp3d.asString++",~f4="++~fp4d.asString++",~f5="++~fp5d.asString++",~f6="++~fp6d.asString++",~f7="++~fp7d.asString++",~f8="++~fp8d.asString++",~f9="++~fp9d.asString++",~f10="++~fp10d.asString++",~f11="++~fp11d.asString++",~f12="++~fp12d.asString++"];"++" "++"~slidetime = 1; ~slidedo = 432; ~synthslide.value; ~trace.value; (a).wait;"++"\n"++
2177 "#o,p,q,r,s,t,u,v,w,x,y,z = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]; [~f1="++~fp1e.asString++",~f2="++~fp2e.asString++",~f3="++~fp3e.asString++",~f4="++~fp4e.asString++",~f5="++~fp5e.asString++",~f6="++~fp6e.asString++",~f7="++~fp7e.asString++",~f8="++~fp8e.asString++",~f9="++~fp9e.asString++",~f10="++~fp10e.asString++",~f11="++~fp11e.asString++",~f12="++~fp12e.asString++"];"++" "++"~slidetime = 1; ~slidedo = 432; ~synthslide.value; ~trace.value; (a).wait;"++"\n"++
2178 "#o,p,q,r,s,t,u,v,w,x,y,z = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]; [~f1="++~fp1f.asString++",~f2="++~fp2f.asString++",~f3="++~fp3f.asString++",~f4="++~fp4f.asString++",~f5="++~fp5f.asString++",~f6="++~fp6f.asString++",~f7="++~fp7f.asString++",~f8="++~fp8f.asString++",~f9="++~fp9f.asString++",~f10="++~fp10f.asString++",~f11="++~fp11f.asString++",~f12="++~fp12f.asString++"];"++" "++"~slidetime = 1; ~slidedo = 432; ~synthslide.value; ~trace.value; (a).wait;"++"\n"++
2179 "#o,p,q,r,s,t,u,v,w,x,y,z = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]; [~f1="++~fp1g.asString++",~f2="++~fp2g.asString++",~f3="++~fp3g.asString++",~f4="++~fp4g.asString++",~f5="++~fp5g.asString++",~f6="++~fp6g.asString++",~f7="++~fp7g.asString++",~f8="++~fp8g.asString++",~f9="++~fp9g.asString++",~f10="++~fp10g.asString++",~f11="++~fp11g.asString++",~f12="++~fp12g.asString++"];"++" "++"~slidetime = 1; ~slidedo = 432; ~synthslide.value; ~trace.value; (a).wait;"++"\n"++
2180 "#o,p,q,r,s,t,u,v,w,x,y,z = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]; [~f1="++~fp1h.asString++",~f2="++~fp2h.asString++",~f3="++~fp3h.asString++",~f4="++~fp4h.asString++",~f5="++~fp5h.asString++",~f6="++~fp6h.asString++",~f7="++~fp7h.asString++",~f8="++~fp8h.asString++",~f9="++~fp9h.asString++",~f10="++~fp10h.asString++",~f11="++~fp11h.asString++",~f12="++~fp12h.asString++"];"++" "++"~slidetime = 1; ~slidedo = 432; ~synthslide.value; ~trace.value; (a).wait;"
2182 ~tsc.stringColor = Color.white;
2183 [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].postln;},
2188 /*//stop timer button
2190 sts = Button.new(w,Rect(Window.screenBounds.width-20-20-20-20,~bpt+69+5,20,20/1.6180339887499)).states_([["st",Color.white,Color.black],["st",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2191 if(~timer.isPlaying == true, {
2192 if(~tst.value == nil, {~timer.stop; ~systemclock.stop; ~systemclock.clear;},{~tst.close;
2194 ~timer.stop; ~systemclock.stop; ~systemclock.clear;});
2201 ~ts = Button.new(w,Rect(Window.screenBounds.width*0+20,Window.screenBounds.height-52,60,60/1.6180339887499)).states_([["tsynth0",Color.white,Color.black],["tsynth1",Color.white,Color.black]]).action_({arg synthbutton; synthbutton.value.postln}).action_({arg synthbutton; if(synthbutton.value == 1, {
2203 ~sts = Button.new(w,Rect(~bp01l-90,~bp01t,80,20)).states_([["stop timer",Color.white,Color.black],["stop timer",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2204 if(~timer.isPlaying == true, {
2205 if(~tst.value == nil, {~timer.stop; ~systemclock.stop; ~systemclock.clear;},{~tst.close;
2207 ~timer.stop; ~systemclock.stop; ~systemclock.clear;});
2211 if(~tst != nil, {~tst.close});
2213 ~timer.stop; ~systemclock.stop; ~systemclock.clear;},{if(~tst.value == nil, {~timer.stop; ~systemclock.stop; ~systemclock.clear;},{~timer.stop; ~systemclock.stop; ~systemclock.clear; ~tst.close; ~sts.close;})});
2218 //start/stop synth button
2220 b3 = Button.new(w,Rect(Window.screenBounds.width*0+20,Window.screenBounds.height-88,60,60/1.6180339887499)).states_([["synth0",Color.white,Color.black],["synth1",Color.white,Color.black]]).action_({arg synthbutton; synthbutton.value.postln}).action_({
2221 arg synthbutton; if(synthbutton.value == 1, {
2222 ~l1a = Synth(\gsineicfld, [\dur, 432]).register;~l1a1 = Synth(\gsineicfld, [\dur, 432]).register;[~l1a, ~l1a1].do(_.free);~l1a = Synth(\gsineicfld, [\dur, 432]).register;~l1a1 = Synth(\gsineicfld, [\dur, 432]).register;[~l1a, ~l1a1].do(_.free);
2224 ~numsynths.stop; ~numsynthsfunc.value;
2225 if(~midifunc != nil, {~midifunc.value});
2227 {~synthfree.value; b4.value = 0;})
2231 //pause/unpause button
2233 b4 = Button.new(w,Rect(Window.screenBounds.width*0+80,Window.screenBounds.height-88,60,60/1.6180339887499)).states_([["pause0",Color.white,Color.black],["pause1",Color.white,Color.black]]).action_({arg synthbutton; synthbutton.value.postln}).action_({
2234 arg synthbutton; if(synthbutton.value == 1, {~synthpause.value; if(~ts.value == 1, {~timer.stop;});},
2235 {~synthflow.value; if(~ts.value != 1, {nil}, {SystemClock.play(~timer);})})
2239 //generate values for number of KW(King Wen) sequences in a timewave half-cycle (or amplitude x2) pop-up menu
2241 if(~low_pass_filter_set_value == nil, {~low_pass_filter_set_value = ~low_pass_filter_freq_limit});
2242 if(~low_pass_filter_set_value != ~low_pass_filter_freq_limit, {~low_pass_filter_set_value = ~low_pass_filter_freq_limit});
2247 ~settingsbutton = Button.new(w,Rect(20+60*2+15+25,Window.screenBounds.height-88+(30/1.6180339887499*0),60,60/1.6180339887499)).states_([["settings",Color.white,Color.black],["settings",Color.white,Color.black]]).action_({arg button;
2249 if(button.value == 1, {
2252 arg top = 0,width=150, revertwidth=75, height = 25, heightbox = 25, lefttime = 0 , lefttimebox = width+5, widthbox=165, leftdo = lefttimebox+widthbox+5, leftdobox = leftdo+57, inc=0, lw = 0, uw = 0, numw = 40;
2253 var tall, stall, iall, siall, st1, st2, st3, st4, st5, st6, st7, st8, st9, st10, st11, st12, si1, si2, si3, si4, si5, si6, si7, si8, t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11,i12;
2254 ~settingsview = View(w, Rect(20+60*2+15+25,Window.screenBounds.height-340,340,340/1.6180339887499)).front;
2255 /*w.view.decorator=FlowLayout(w.view.bounds);
2256 w.view.decorator.gap=2@2;*/
2260 t1 = StaticText(~settingsview, Rect(lefttime , top=top, width, height)).background_(Color.black).string_("KWS number").stringColor_(Color.white);
2261 t2 = StaticText(~settingsview, Rect(lefttime , top=top+height+5, width, height)).background_(Color.black).string_("base(lowest) freq(hz)").stringColor_(Color.white);
2262 t3 = StaticText(~settingsview, Rect(lefttime , top=top+height+5, width, height)).background_(Color.black).string_("synthdef type").stringColor_(Color.white);
2263 t4 = StaticText(~settingsview, Rect(lefttime , top=top+height+5, width, height)).background_(Color.black).string_("lp filter limit(hz)").stringColor_(Color.white);
2264 t5 = StaticText(~settingsview, Rect(lefttime , top=top+height+5, width, height)).background_(Color.black).string_("automate").stringColor_(Color.white);
2270 //number of KW(King Wen) sequences in a timewave half-cycle (or amplitude x2) pop-up menu
2272 ~menu2 = PopUpMenu(~settingsview,Rect(lefttimebox , top=top, widthbox, heightbox)).items_(x = 0; Array.fill(24, {(x=x+1).asString++" kws"});).background_(Color.black).stringColor_(Color.white).action_({arg button;
2274 if(~st != nil, {~st.close});
2275 ~st = StaticText(~settingsview, Rect(lefttime, top, 200, 20)).background_(Color.black);
2276 ~st.stringColor = Color.white;
2277 ~st.string = "# of kws in halfcycle selected";
2278 AppClock.sched(~gm,{~st.close;});
2281 ~menu2.value = ~gsinenum-1;
2284 //pop-menu for timewave base(lowest) frequency
2286 ~bfreq = PopUpMenu(~settingsview, Rect(lefttimebox , top=top+heightbox+5, widthbox, heightbox)).items_(~bfreqv = (-1); Array.fill(~basefreqmap.size, {~basefreqmap.at(~bfreqv=~bfreqv+1).asString})).background_(Color.black).stringColor_(Color.white).action_({arg button;
2288 if(~st != nil, {~st.close});
2289 ~st = StaticText(~settingsview, Rect(lefttime, top, 200, 20)).background_(Color.black);
2290 ~st.stringColor = Color.white;
2291 ~st.string = "basefreq selected";
2292 AppClock.sched(~gm,{~st.close;});
2295 if(~bfreqval != nil, {~bfreq.value = ~bfreqval}, {~bfreq.value = ~basefreqmap.indexOf(~base_frequency);});
2298 //synthdef pop-up menu
2300 ~gsinemenu = PopUpMenu(~settingsview, Rect(lefttimebox , top=top+heightbox+5, widthbox, heightbox)).items_(["psine1","psine2","psine3","hsine1","hsine2","hsine3","psineuf1","psineuf2","psineuf3","hsineuf1","hsineuf2","hsineuf3"]).background_(Color.black).stringColor_(Color.white).action_({arg button;
2302 if(~gsinemenu.value == 0, {~kws_setting = 1; ~ratio_setting = "psine1"; ~low_pass_filter_on = 1; ~gs = 0;});
2303 if(~gsinemenu.value == 1, {~kws_setting = 2; ~ratio_setting = "psine2"; ~low_pass_filter_on = 1; ~gs = 1;});
2304 if(~gsinemenu.value == 2, {~kws_setting = 3; ~ratio_setting = "psine3"; ~low_pass_filter_on = 1; ~gs = 2;});
2305 if(~gsinemenu.value == 3, {~kws_setting = 1; ~ratio_setting = "hsine1"; ~low_pass_filter_on = 1; ~gs = 3;});
2306 if(~gsinemenu.value == 4, {~kws_setting = 2; ~ratio_setting = "hsine2"; ~low_pass_filter_on = 1; ~gs = 4;});
2307 if(~gsinemenu.value == 5, {~kws_setting = 3; ~ratio_setting = "hsine3"; ~low_pass_filter_on = 1; ~gs = 5;});
2308 if(~gsinemenu.value == 6, {~kws_setting = 1; ~ratio_setting = "psine1"; ~low_pass_filter_on = 0; ~gs = 6;});
2309 if(~gsinemenu.value == 7, {~kws_setting = 2; ~ratio_setting = "psine2"; ~low_pass_filter_on = 0; ~gs = 7;});
2310 if(~gsinemenu.value == 8, {~kws_setting = 3; ~ratio_setting = "psine3"; ~low_pass_filter_on = 0; ~gs = 8;});
2311 if(~gsinemenu.value == 9, {~kws_setting = 1; ~ratio_setting = "hsine1"; ~low_pass_filter_on = 0; ~gs = 9;});
2312 if(~gsinemenu.value == 10, {~kws_setting = 2; ~ratio_setting = "hsine2"; ~low_pass_filter_on = 0; ~gs = 10;});
2313 if(~gsinemenu.value == 11, {~kws_setting = 3; ~ratio_setting = "hsine3"; ~low_pass_filter_on = 0; ~gs = 11;});
2315 if(~st != nil, {~st.close});
2316 ~st = StaticText(~settingsview, Rect(lefttime, top, 200, 20)).background_(Color.black);
2317 ~st.stringColor = Color.white;
2318 ~st.string = "synthdef setting selected";
2319 AppClock.sched(~gm,{~st.close;});
2322 if(~gs == nil, {~gs = 0;});
2325 {~gs == 0}{~gsinemenu.value = 0;}
2326 {~gs == 1}{~gsinemenu.value = 1;}
2327 {~gs == 2}{~gsinemenu.value = 2;}
2328 {~gs == 3}{~gsinemenu.value = 3;}
2329 {~gs == 4}{~gsinemenu.value = 4;}
2330 {~gs == 5}{~gsinemenu.value = 5;}
2331 {~gs == 0}{~gsinemenu.value = 6;}
2332 {~gs == 1}{~gsinemenu.value = 7;}
2333 {~gs == 2}{~gsinemenu.value = 8;}
2334 {~gs == 3}{~gsinemenu.value = 9;}
2335 {~gs == 4}{~gsinemenu.value = 10;}
2336 {~gs == 5}{~gsinemenu.value = 11;};
2339 //set low-pass filter frequency limit
2341 ~low_pass_filter_textfield = TextField(~settingsview, Rect(lefttimebox , top=top+heightbox+5, widthbox, heightbox));
2342 ~low_pass_filter_textfield.string = ~low_pass_filter_set_value.asString;
2343 ~low_pass_filter_textfield.background_(Color.black);
2344 ~low_pass_filter_textfield.stringColor_(Color.white);
2345 ~low_pass_filter_textfield.action = {arg value; ~freqsetvalue = value.value;
2347 ~freqset_textfield_func.value; //this function is found after line 2900
2349 ~low_pass_filter_set_value = ~freqsetvalue.value;
2351 ~low_pass_filter_textfield.string = ~low_pass_filter_set_value.asString;
2353 if(~low_pass_filter_set_value != 0, {
2354 if(~st != nil, {~st.close});
2355 ~st = StaticText(~settingsview, Rect(lefttime, top, 240, 20)).background_(Color.black);
2356 ~st.stringColor = Color.white;
2357 ~st.string = "low-pass filter freq limit selected";
2358 AppClock.sched(~gm,{~st.close;});
2359 }, {~low_pass_filter_set_value = ~low_pass_filter_freq_limit; ~low_pass_filter_textfield.string = ~low_pass_filter_set_value.asString;});
2363 //switch to sendreply functions
2365 ~sendreplymenu = PopUpMenu(~settingsview,Rect(lefttimebox , top=top+heightbox+5, widthbox, heightbox)).items_(["off","phi/fth trans","phi trans","western scale","eastern scale"]).background_(Color.black).stringColor_(Color.white).action_({arg button;
2368 {button.value == 0;}{~sendreplymenu_value = 0;}
2369 {button.value == 1;}{~sendreplymenu_value = 1;}
2370 {button.value == 2;}{~sendreplymenu_value = 2;}
2371 {button.value == 3;}{~sendreplymenu_value = 3;}
2372 {button.value == 4;}{~sendreplymenu_value = 4;};
2374 if(~st != nil, {~st.close});
2375 ~st = StaticText(~settingsview, Rect(lefttime, top, 200, 20)).background_(Color.black);
2376 ~st.stringColor = Color.white;
2377 ~st.string = "automate setting selected";
2378 AppClock.sched(~gm,{~st.close;});
2381 if(~sendreplymenu_value == nil, {~sendreplymenu_value = 0;});
2384 {~sendreplymenu_value == 0}{~sendreplymenu.value = 0;}
2385 {~sendreplymenu_value == 1}{~sendreplymenu.value = 1;}
2386 {~sendreplymenu_value == 2}{~sendreplymenu.value = 2;}
2387 {~sendreplymenu_value == 3}{~sendreplymenu.value = 3;}
2388 {~sendreplymenu_value == 4}{~sendreplymenu.value = 4;};
2391 //set button for all settings
2393 ~set1=Button(~settingsview,Rect(lefttimebox+widthbox-60, top=top+height+20, 60, 60/~gm)).states_([["set",Color.white,Color.black]]).mouseDownAction_({
2395 ~basefreq = ~basefreqmap.at(~bfreq.value;); ~bfreqval = ~bfreq.value;
2397 (#a,b,c,d,e,f = [ ~basefreq,~basefreq,~basefreq,~basefreq,~basefreq,~basefreq ]; ~a = a; ~b = b; ~c =c; ~d = d; ~e = e;~f=f;);
2399 ~low_pass_filter_freq_limit = ~low_pass_filter_set_value;
2405 {~ratio_setting == "psine1";}{~n_value1 = ~gm; ~n_value2 = ~gm2; ~n_value6 = ~gm6;}
2406 {~ratio_setting == "psine2";}{~n_value1 = ~ngm1; ~n_value2 = ~ngm2; ~n_value6 = ~ngm6;}
2407 {~ratio_setting == "psine3";}{~n_value1 = ~nngm1; ~n_value2 = ~nngm2; ~n_value6 = ~nngm6;}
2408 {~ratio_setting == "hsine1";}{~n_value1 = ~h1; ~n_value2 = ~h2; ~n_value6 = ~h6;}
2409 {~ratio_setting == "hsine2";}{~n_value1 = ~nh1; ~n_value2 = ~nh2; ~n_value6 = ~nh6;}
2410 {~ratio_setting == "hsine3";}{~n_value1 = ~nnh1; ~n_value2 = ~nnh2; ~n_value6 = ~nnh6;};
2416 {~sendreplymenu.value == 0}{~sendreplysynthdef_on = 0;}
2417 {~sendreplymenu.value == 1}{~sendreplysynthdef_on = 1; ~sendreplyfunc_choose = 0; ~sendreply_gm_fth_func = ~sendreply_gm_fth_func_1}
2418 {~sendreplymenu.value == 2}{~sendreplysynthdef_on = 1; ~sendreplyfunc_choose = 0; ~sendreply_gm_fth_func = ~sendreply_gm_fth_func_2}
2419 {~sendreplymenu.value == 3}{~sendreplysynthdef_on = 1; ~sendreplyfunc_choose = 1; ~send_reply_random_func = ~send_reply_random_func_western; ~sendreplyfuncswitch = 1;}
2420 {~sendreplymenu.value == 4}{~sendreplysynthdef_on = 1; ~sendreplyfunc_choose = 1; ~send_reply_random_func = ~send_reply_random_func_eastern; ~sendreplyfuncswitch = 2;};
2423 //evaluate synthdefs(gsine)
2426 {~menu2.value == 0}{~gsinenum = 1; ~gsine.value;}
2427 {~menu2.value == 1}{~gsinenum = 2; ~gsine.value;}
2428 {~menu2.value == 2}{~gsinenum = 3; ~gsine.value;}
2429 {~menu2.value == 3}{~gsinenum = 4; ~gsine.value;}
2430 {~menu2.value == 4}{~gsinenum = 5; ~gsine.value;}
2431 {~menu2.value == 5}{~gsinenum = 6; ~gsine.value;}
2432 {~menu2.value == 6}{~gsinenum = 7; ~gsine.value;}
2433 {~menu2.value == 7}{~gsinenum = 8; ~gsine.value;}
2434 {~menu2.value == 8}{~gsinenum = 9; ~gsine.value;}
2435 {~menu2.value == 9}{~gsinenum = 10; ~gsine.value;}
2436 {~menu2.value == 10}{~gsinenum = 11; ~gsine.value;}
2437 {~menu2.value == 11}{~gsinenum = 12; ~gsine.value;}
2438 {~menu2.value == 12}{~gsinenum = 13; ~gsine.value;}
2439 {~menu2.value == 13}{~gsinenum = 14; ~gsine.value;}
2440 {~menu2.value == 14}{~gsinenum = 15; ~gsine.value;}
2441 {~menu2.value == 15}{~gsinenum = 16; ~gsine.value;}
2442 {~menu2.value == 16}{~gsinenum = 17; ~gsine.value;}
2443 {~menu2.value == 17}{~gsinenum = 18; ~gsine.value;}
2444 {~menu2.value == 18}{~gsinenum = 19; ~gsine.value;}
2445 {~menu2.value == 19}{~gsinenum = 20; ~gsine.value;}
2446 {~menu2.value == 20}{~gsinenum = 21; ~gsine.value;}
2447 {~menu2.value == 21}{~gsinenum = 22; ~gsine.value;}
2448 {~menu2.value == 22}{~gsinenum = 23; ~gsine.value;}
2449 {~menu2.value == 23}{~gsinenum = 24; ~gsine.value;};
2451 ~st_load = StaticText(~settingsview, Rect(lefttime, top, 200, 20)).background_(Color.black);
2452 ~st_load.stringColor = Color.white;
2453 ~st_load.string = "loaded.";
2454 AppClock.sched(~gm,{if(~st != nil, {~st.close}); ~st_load.close;});
2458 ~settingsview.background_(Color.black);
2460 /*~closessettingsbutton = Button.new(~settingsview,Rect(lefttimebox+widthbox-40, top, 40, 40/~gm)).states_([["close",Color.white,Color.black]]).action_({arg button;
2462 ~settingsview.close; ~settingsbutton.value = 0;
2468 ~settingsview.front;
2469 }, {~settingsview.close});
2473 //open/flow/slide buttons coordinate values
2476 ~bpw = 26/1.6180339887499;
2477 ~bpl = Window.screenBounds.width-(~bph*8)-20;
2478 ~bpt = Window.screenBounds.height-88;
2481 ~bp02l = ~bpl+(~bph*1);
2482 ~bp03l = ~bpl+(~bph*2);
2483 ~bp04l = ~bpl+(~bph*3);
2484 ~bp05l = ~bpl+(~bph*4);
2485 ~bp06l = ~bpl+(~bph*5);
2486 ~bp07l = ~bpl+(~bph*6);
2487 ~bp08l = ~bpl+(~bph*7);
2489 ~bpf2l = ~bpl+(~bph*1);
2490 ~bpf3l = ~bpl+(~bph*2);
2491 ~bpf4l = ~bpl+(~bph*3);
2492 ~bpf5l = ~bpl+(~bph*4);
2493 ~bpf6l = ~bpl+(~bph*5);
2494 ~bpf7l = ~bpl+(~bph*6);
2495 ~bpf8l = ~bpl+(~bph*7);
2550 ~tspl=Window.screenBounds.width-~tspw;
2554 //synthopen 1-8 buttons
2556 ~bplaceo1 = Button.new(w,Rect(~bp01l,~bp01t,~bp01h,~bp01w)).states_([["o1",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2558 [~f1=~fp1,~f2=~fp2,~f3=~fp3,~f4=~fp4,~f5=~fp5,~f6=~fp6,~f7=~fp7,~f8=~fp8,~f9=~fp9,~f10=~fp10,~f11=~fp11,~f12=~fp12];
2561 ~currentsynth = "o1"; ~synthmonitorfunc.value;
2564 {if(~tst == nil, {nil}, {~tst.close;});
2566 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time1o = 0;
2567 ~timer = Routine({inf.do({
2569 ~time1o+0.01; ~slot = "o1_"+~time1o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2573 ~bplaceo2 = Button.new(w,Rect(~bp02l,~bp02t,~bp02h,~bp02w)).states_([["o2",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2575 [~f1=~fp1b,~f2=~fp2b,~f3=~fp3b,~f4=~fp4b,~f5=~fp5b,~f6=~fp6b,~f7=~fp7b,~f8=~fp8b,~f9=~fp9b,~f10=~fp10b,~f11=~fp11b,~f12=~fp12b];
2578 ~currentsynth = "o2"; ~synthmonitorfunc.value;
2581 {if(~tst == nil, {nil}, {~tst.close;});
2583 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time2o = 0;
2584 ~timer = Routine({inf.do({
2586 ~time2o+0.01; ~slot = "o2_"+~time2o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2589 ~bplaceo3 = Button.new(w,Rect(~bp03l,~bp03t,~bp03h,~bp03w)).states_([["o3",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2591 [~f1=~fp1c,~f2=~fp2c,~f3=~fp3c,~f4=~fp4c,~f5=~fp5c,~f6=~fp6c,~f7=~fp7c,~f8=~fp8c,~f9=~fp9c,~f10=~fp10c,~f11=~fp11c,~f12=~fp12c];
2594 ~currentsynth = "o3"; ~synthmonitorfunc.value;
2597 {if(~tst == nil, {nil}, {~tst.close;});
2599 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time3o = 0;
2600 ~timer = Routine({inf.do({
2602 ~time3o+0.01; ~slot = "o3_"+~time3o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2605 ~bplaceo4 = Button.new(w,Rect(~bp04l,~bp04t,~bp04h,~bp04w)).states_([["o4",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2607 [~f1=~fp1d,~f2=~fp2d,~f3=~fp3d,~f4=~fp4d,~f5=~fp5d,~f6=~fp6d,~f7=~fp7d,~f8=~fp8d,~f9=~fp9d,~f10=~fp10d,~f11=~fp11d,~f12=~fp12d];
2610 ~currentsynth = "o4"; ~synthmonitorfunc.value;
2613 {if(~tst == nil, {nil}, {~tst.close;});
2615 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time4o = 0;
2616 ~timer = Routine({inf.do({
2618 ~time4o+0.01; ~slot = "o4_"+~time4o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2623 ~bplaceo5 = Button.new(w,Rect(~bp05l,~bp05t,~bp05h,~bp05w)).states_([["o5",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2625 [~f1=~fp1e,~f2=~fp2e,~f3=~fp3e,~f4=~fp4e,~f5=~fp5e,~f6=~fp6e,~f7=~fp7e,~f8=~fp8e,~f9=~fp9e,~f10=~fp10e,~f11=~fp11e,~f12=~fp12e];
2628 ~currentsynth = "o5"; ~synthmonitorfunc.value;
2631 {if(~tst == nil, {nil}, {~tst.close;});
2633 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time5o = 0;
2634 ~timer = Routine({inf.do({
2636 ~time5o+0.01; ~slot = "o5_"+~time5o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2640 ~bplaceo6 = Button.new(w,Rect(~bp06l,~bp06t,~bp06h,~bp06w)).states_([["o6",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2642 [~f1=~fp1f,~f2=~fp2f,~f3=~fp3f,~f4=~fp4f,~f5=~fp5f,~f6=~fp6f,~f7=~fp7f,~f8=~fp8f,~f9=~fp9f,~f10=~fp10f,~f11=~fp11f,~f12=~fp12f];
2645 ~currentsynth = "o6"; ~synthmonitorfunc.value;
2648 {if(~tst == nil, {nil}, {~tst.close;});
2650 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time6o = 0;
2651 ~timer = Routine({inf.do({
2653 ~time6o+0.01; ~slot = "o6_"+~time6o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2656 ~bplaceo7 = Button.new(w,Rect(~bp07l,~bp07t,~bp07h,~bp07w)).states_([["o7",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2658 [~f1=~fp1g,~f2=~fp2g,~f3=~fp3g,~f4=~fp4g,~f5=~fp5g,~f6=~fp6g,~f7=~fp7g,~f8=~fp8g,~f9=~fp9g,~f10=~fp10g,~f11=~fp11g,~f12=~fp12g];
2661 ~currentsynth = "o7"; ~synthmonitorfunc.value;
2664 {if(~tst == nil, {nil}, {~tst.close;});
2666 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time7o = 0;
2667 ~timer = Routine({inf.do({
2669 ~time7o+0.01; ~slot = "o7_"+~time7o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2672 ~bplaceo8 = Button.new(w,Rect(~bp08l,~bp08t,~bp08h,~bp08w)).states_([["o8",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2674 [~f1=~fp1h,~f2=~fp2h,~f3=~fp3h,~f4=~fp4h,~f5=~fp5h,~f6=~fp6h,~f7=~fp7h,~f8=~fp8h,~f9=~fp9h,~f10=~fp10h,~f11=~fp11h,~f12=~fp12h];
2677 ~currentsynth = "o8"; ~synthmonitorfunc.value;
2680 {if(~tst == nil, {nil}, {~tst.close;});
2682 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time8o = 0;
2683 ~timer = Routine({inf.do({
2685 ~time8o+0.01; ~slot = "o8_"+~time8o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2690 //synthflow 1-8 buttons
2692 ~bplacef1 = Button.new(w,Rect(~bpf1l,~bpf1t,~bpf1h,~bpf1w)).states_([["f1",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2694 [~f1=~fp1,~f2=~fp2,~f3=~fp3,~f4=~fp4,~f5=~fp5,~f6=~fp6,~f7=~fp7,~f8=~fp8,~f9=~fp9,~f10=~fp10,~f11=~fp11,~f12=~fp12];
2697 ~currentsynth = "f1"; ~synthmonitorfunc.value;
2700 {if(~tst == nil, {nil}, {~tst.close;});
2702 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time1f = 0;
2703 ~timer = Routine({inf.do({
2705 ~time1f+0.01; ~slot = "f1_"+~time1f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2708 ~bplacef2 = Button.new(w,Rect(~bpf2l,~bpf2t,~bpf2h,~bpf2w)).states_([["f2",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2710 [~f1=~fp1b,~f2=~fp2b,~f3=~fp3b,~f4=~fp4b,~f5=~fp5b,~f6=~fp6b,~f7=~fp7b,~f8=~fp8b,~f9=~fp9b,~f10=~fp10b,~f11=~fp11b,~f12=~fp12b];
2713 ~currentsynth = "f2"; ~synthmonitorfunc.value;
2716 {if(~tst == nil, {nil}, {~tst.close;});
2718 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time2f = 0;
2719 ~timer = Routine({inf.do({
2721 ~time2f+0.01; ~slot = "f2_"+~time2f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2725 ~bplacef3 = Button.new(w,Rect(~bpf3l,~bpf3t,~bpf3h,~bpf3w)).states_([["f3",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2727 [~f1=~fp1c,~f2=~fp2c,~f3=~fp3c,~f4=~fp4c,~f5=~fp5c,~f6=~fp6c,~f7=~fp7c,~f8=~fp8c,~f9=~fp9c,~f10=~fp10c,~f11=~fp11c,~f12=~fp12c];
2730 ~currentsynth = "f3"; ~synthmonitorfunc.value;
2733 {if(~tst == nil, {nil}, {~tst.close;});
2735 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time3f = 0;
2736 ~timer = Routine({inf.do({
2738 ~time3f+0.01; ~slot = "f3_"+~time3f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2741 ~bplacef4 = Button.new(w,Rect(~bpf4l,~bpf4t,~bpf4h,~bpf4w)).states_([["f4",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2743 [~f1=~fp1d,~f2=~fp2d,~f3=~fp3d,~f4=~fp4d,~f5=~fp5d,~f6=~fp6d,~f7=~fp7d,~f8=~fp8d,~f9=~fp9d,~f10=~fp10d,~f11=~fp11d,~f12=~fp12d];
2746 ~currentsynth = "f4"; ~synthmonitorfunc.value;
2749 {if(~tst == nil, {nil}, {~tst.close;});
2751 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time4f = 0;
2752 ~timer = Routine({inf.do({
2754 ~time4f+0.01; ~slot = "f4_"+~time4f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2758 ~bplacef5 = Button.new(w,Rect(~bpf5l,~bpf5t,~bpf5h,~bpf5w)).states_([["f5",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2760 [~f1=~fp1e,~f2=~fp2e,~f3=~fp3e,~f4=~fp4e,~f5=~fp5e,~f6=~fp6e,~f7=~fp7e,~f8=~fp8e,~f9=~fp9e,~f10=~fp10e,~f11=~fp11e,~f12=~fp12e];
2763 ~currentsynth = "f5"; ~synthmonitorfunc.value;
2766 {if(~tst == nil, {nil}, {~tst.close;});
2768 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time5f = 0;
2769 ~timer = Routine({inf.do({
2771 ~time5f+0.01; ~slot = "f5_"+~time5f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2775 ~bplacef6 = Button.new(w,Rect(~bpf6l,~bpf6t,~bpf6h,~bpf6w)).states_([["f6",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2777 [~f1=~fp1f,~f2=~fp2f,~f3=~fp3f,~f4=~fp4f,~f5=~fp5f,~f6=~fp6f,~f7=~fp7f,~f8=~fp8f,~f9=~fp9f,~f10=~fp10f,~f11=~fp11f,~f12=~fp12f];
2780 ~currentsynth = "f6"; ~synthmonitorfunc.value;
2783 {if(~tst == nil, {nil}, {~tst.close;});
2785 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time6f = 0;
2786 ~timer = Routine({inf.do({
2788 ~time6f+0.01; ~slot = "f6_"+~time6f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2793 ~bplacef7 = Button.new(w,Rect(~bpf7l,~bpf7t,~bpf7h,~bpf7w)).states_([["f7",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2795 [~f1=~fp1g,~f2=~fp2g,~f3=~fp3g,~f4=~fp4g,~f5=~fp5g,~f6=~fp6g,~f7=~fp7g,~f8=~fp8g,~f9=~fp9g,~f10=~fp10g,~f11=~fp11g,~f12=~fp12g];
2798 ~currentsynth = "f7"; ~synthmonitorfunc.value;
2801 {if(~tst == nil, {nil}, {~tst.close;});
2803 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time7f = 0;
2804 ~timer = Routine({inf.do({
2806 ~time7f+0.01; ~slot = "f7_"+~time7f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2809 ~bplacef8 = Button.new(w,Rect(~bpf8l,~bpf8t,~bpf8h,~bpf8w)).states_([["f8",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2811 [~f1=~fp1h,~f2=~fp2h,~f3=~fp3h,~f4=~fp4h,~f5=~fp5h,~f6=~fp6h,~f7=~fp7h,~f8=~fp8h,~f9=~fp9h,~f10=~fp10h,~f11=~fp11h,~f12=~fp12h];
2814 ~currentsynth = "f8"; ~synthmonitorfunc.value;
2817 {if(~tst == nil, {nil}, {~tst.close;});
2819 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time8f = 0;
2820 ~timer = Routine({inf.do({
2822 ~time8f+0.01; ~slot = "f8_"+~time8f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2827 //synthslide 1-8 buttons
2829 ~bplaces1 = Button.new(w,Rect(~bpf1l,~bpf1t+~bpf1w,~bpf1h,~bpf1w)).states_([["s1",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2831 if(~slidetime1 == nil, {~slidetime1 = 4}); if(~slidedo1 == nil, {~slidedo1 = 2000;}); ~slidecount = ~slidedo1;
2832 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2833 [ ~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12 ])*(-1)/~slidedo1);
2835 ~slidetime =~slidetime1; ~slidedo = ~slidedo1;
2840 ~currentsynth = "s1"; ~synthmonitorfunc.value;
2843 {if(~tst == nil, {nil}, {~tst.close;});
2845 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time1s = 0;
2846 ~timer = Routine({inf.do({
2848 ~time1s+0.01; ~slot = "s1_"+~time1s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2852 ~bplaces2 = Button.new(w,Rect(~bpf2l,~bpf2t+~bpf2w,~bpf2h,~bpf2w)).states_([["s2",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2854 if(~slidetime2 == nil, {~slidetime2 = 4}); if(~slidedo2 == nil, {~slidedo2 = 2000;}); ~slidecount = ~slidedo2;
2855 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2856 [ ~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b ])*(-1)/~slidedo2);
2858 ~slidetime = ~slidetime2; ~slidedo = ~slidedo2;
2863 ~currentsynth = "s2"; ~synthmonitorfunc.value;
2866 {if(~tst == nil, {nil}, {~tst.close;});
2868 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time2s = 0;
2869 ~timer = Routine({inf.do({
2871 ~time2s+0.01; ~slot = "s2_"+~time2s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2875 ~bplaces3 = Button.new(w,Rect(~bpf3l,~bpf3t+~bpf3w,~bpf3h,~bpf3w)).states_([["s3",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2877 if(~slidetime3 == nil, {~slidetime3 = 4}); if(~slidedo3 == nil, {~slidedo3 = 2000;}); ~slidecount = ~slidedo3;
2878 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2879 [ ~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c ])*(-1)/~slidedo3);
2881 ~slidetime = ~slidetime3; ~slidedo = ~slidedo3;
2886 ~currentsynth = "s3"; ~synthmonitorfunc.value;
2889 {if(~tst == nil, {nil}, {~tst.close;});
2891 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time3s = 0;
2892 ~timer = Routine({inf.do({
2894 ~time3s+0.01; ~slot = "s3_"+~time3s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2898 ~bplaces4 = Button.new(w,Rect(~bpf4l,~bpf4t+~bpf4w,~bpf4h,~bpf4w)).states_([["s4",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2900 if(~slidetime4 == nil, {~slidetime4 = 4}); if(~slidedo4 == nil, {~slidedo4 = 2000;}); ~slidecount = ~slidedo4;
2901 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2902 [ ~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d ])*(-1)/~slidedo4);
2904 ~slidetime = ~slidetime4; ~slidedo = ~slidedo4;
2909 ~currentsynth = "s4"; ~synthmonitorfunc.value;
2912 {if(~tst == nil, {nil}, {~tst.close;});
2914 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time4s = 0;
2915 ~timer = Routine({inf.do({
2917 ~time4s+0.01; ~slot = "s4_"+~time4s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2920 ~bplaces5 = Button.new(w,Rect(~bpf5l,~bpf5t+~bpf5w,~bpf5h,~bpf5w)).states_([["s5",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2922 if(~slidetime5 == nil, {~slidetime5 = 4}); if(~slidedo5 == nil, {~slidedo5 = 2000;}); ~slidecount = ~slidedo5;
2923 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2924 [ ~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e ])*(-1)/~slidedo5);
2926 ~slidetime = ~slidetime5; ~slidedo = ~slidedo5;
2931 ~currentsynth = "s5"; ~synthmonitorfunc.value;
2934 {if(~tst == nil, {nil}, {~tst.close;});
2936 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time5s = 0;
2937 ~timer = Routine({inf.do({
2939 ~time5s+0.01; ~slot = "s5_"+~time5s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2943 ~bplaces6 = Button.new(w,Rect(~bpf6l,~bpf6t+~bpf6w,~bpf6h,~bpf6w)).states_([["s6",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2945 if(~slidetime6 == nil, {~slidetime6 = 4}); if(~slidedo6 == nil, {~slidedo6 = 2000;}); ~slidecount = ~slidedo6;
2946 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2947 [ ~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f ])*(-1)/~slidedo6);
2949 ~slidetime = ~slidetime6; ~slidedo = ~slidedo6;
2953 ~currentsynth = "s6"; ~synthmonitorfunc.value;
2956 {if(~tst == nil, {nil}, {~tst.close;});
2958 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time6s = 0;
2959 ~timer = Routine({inf.do({
2961 ~time6s+0.01; ~slot = "s6_"+~time6s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2965 ~bplaces7 = Button.new(w,Rect(~bpf7l,~bpf7t+~bpf7w,~bpf7h,~bpf7w)).states_([["s7",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2967 if(~slidetime7 == nil, {~slidetime7 = 4}); if(~slidedo7 == nil, {~slidedo7 = 2000;}); ~slidecount = ~slidedo7;
2968 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2969 [ ~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g ])*(-1)/~slidedo7);
2971 ~slidetime = ~slidetime7; ~slidedo = ~slidedo7;
2975 ~currentsynth = "s7"; ~synthmonitorfunc.value;
2978 {if(~tst == nil, {nil}, {~tst.close;});
2980 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time7s = 0;
2981 ~timer = Routine({inf.do({
2983 ~time7s+0.01; ~slot = "s7_"+~time7s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2987 ~bplaces8 = Button.new(w,Rect(~bpf8l,~bpf8t+~bpf8w,~bpf8h,~bpf8w)).states_([["s8",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2989 if(~slidetime8 == nil, {~slidetime8 = 4}); if(~slidedo8 == nil, {~slidedo8 = 2000;}); ~slidecount = ~slidedo8;
2990 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2991 [ ~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h ])*(-1)/~slidedo8);
2993 ~slidetime = ~slidetime8; ~slidedo = ~slidedo8;
2998 ~currentsynth = "s8"; ~synthmonitorfunc.value;
3001 {if(~tst == nil, {nil}, {~tst.close;});
3003 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time8s = 0;
3004 ~timer = Routine({inf.do({
3006 ~time8s+0.01; ~slot = "s8_"+~time8s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
3011 //if slidetime/slidedo is nil
3013 if(~slidetimeall == nil, {~slidetimeall = 1});
3014 if(~slidetime1 == nil, {~slidetime1 = 1});
3015 if(~slidetime2 == nil, {~slidetime2 = 1});
3016 if(~slidetime3 == nil, {~slidetime3 = 1});
3017 if(~slidetime4 == nil, {~slidetime4 = 1});
3018 if(~slidetime5 == nil, {~slidetime5 = 1});
3019 if(~slidetime6 == nil, {~slidetime6 = 1});
3020 if(~slidetime7 == nil, {~slidetime7 = 1});
3021 if(~slidetime8 == nil, {~slidetime8 = 1});
3023 if(~slidedoall == nil, {~slidedoall = 432});
3024 if(~slidedo1 == nil, {~slidedo1 = 432});
3025 if(~slidedo2 == nil, {~slidedo2 = 432});
3026 if(~slidedo3 == nil, {~slidedo3 = 432});
3027 if(~slidedo4 == nil, {~slidedo4 = 432});
3028 if(~slidedo5 == nil, {~slidedo5 = 432});
3029 if(~slidedo6 == nil, {~slidedo6 = 432});
3030 if(~slidedo7 == nil, {~slidedo7 = 432});
3031 if(~slidedo8 == nil, {~slidedo8 = 432});
3034 //frequency set function
3036 ~freqset_textfield_func = {
3037 ~freqsetvalue = ~freqsetvalue.asString;
3038 ~freqsetvalue = ~freqsetvalue.separate;
3039 ~freqsetvalue = ~freqsetvalue.reject{arg item;
3058 ~freqsetvalue = ~freqsetvalue.join.asString.interpret;
3062 //extra options button
3064 ~extraoptions = Button.new(w,Rect(Window.screenBounds.width-20-20-20,~bpt+69+5,20,20/1.6180339887499)).states_([["eo",Color.white,Color.black],["eo",Color.white,Color.black]]).action_({arg button;
3066 if(button.value == 1, {
3068 ~extraoptionsview = View(w, Rect(Window.screenBounds.width-(540),Window.screenBounds.height-(340+46/1.6180339887499)-150,340+46,380+46/1.6180339887499)).front;
3069 ~extraoptionsview.background_(Color.black);
3071 //set slide values button
3073 ~slidevals = Button.new(~extraoptionsview,Rect(0,25,120,20)).states_([["slide values",Color.white,Color.black],["slide values",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3075 if(button.value == 1, {
3077 arg lefttime = 0 , lefttimebox = 52, leftdo = lefttimebox+widthbox+6, leftdobox = leftdo+57, top = 0,width=52, height = 16, widthbox=52, heightbox = 16, inc=0, lw = 0, uw = 0, numw = 40;
3078 var tall, stall, iall, siall, st1, st2, st3, st4, st5, st6, st7, st8, si1, si2, si3, si4, si5, si6, si7, si8, t1,t2,t3,t4,t5,t6,t7,t8,i1,i2,i3,i4,i5,i6,i7,i8;
3079 ~slideview = View(w, Rect(Window.screenBounds.width-(340+46),Window.screenBounds.height-(340+46/1.6180339887499)-150,340+46,380+46/1.6180339887499)).front;
3080 /*w.view.decorator=FlowLayout(w.view.bounds);
3081 w.view.decorator.gap=2@2;*/
3083 tall = StaticText(~slideview, Rect(lefttime , top=top, width, height)).background_(Color.black).string_("all time").stringColor_(Color.white);
3084 t1 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s1 time").stringColor_(Color.white);
3085 t2 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s2 time").stringColor_(Color.white);
3086 t3 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s3 time").stringColor_(Color.white);
3087 t4 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s4 time").stringColor_(Color.white);
3088 t5 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s5 time").stringColor_(Color.white);
3089 t6 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s6 time").stringColor_(Color.white);
3090 t7 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s7 time").stringColor_(Color.white);
3091 t8 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s8 time").stringColor_(Color.white);
3095 stall=NumberBox(~slideview, Rect(lefttimebox , top=top, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetimeall).maxDecimals_(9);
3096 st1=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime1).maxDecimals_(9);
3097 st2=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime2).maxDecimals_(9);
3098 st3=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime3).maxDecimals_(9);
3099 st4=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime4).maxDecimals_(9);
3100 st5=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime5).maxDecimals_(9);
3101 st6=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime6).maxDecimals_(9);
3102 st7=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime7).maxDecimals_(9);
3103 st8=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime8).maxDecimals_(9);
3107 iall = StaticText(~slideview, Rect(leftdo , top=top, width, height)).background_(Color.black).string_("all incr").stringColor_(Color.white);
3108 i1 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s1 incr").stringColor_(Color.white);
3109 i2 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s2 incr").stringColor_(Color.white);
3110 i3 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s3 incr").stringColor_(Color.white);
3111 i4 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s4 incr").stringColor_(Color.white);
3112 i5 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s5 incr").stringColor_(Color.white);
3113 i6 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s6 incr").stringColor_(Color.white);
3114 i7 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s7 incr").stringColor_(Color.white);
3115 i8 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s8 incr").stringColor_(Color.white);
3119 siall=NumberBox(~slideview, Rect(leftdobox , top=top, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedoall);
3120 si1=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo1);
3121 si2=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo2);
3122 si3=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo3);
3123 si4=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo4);
3124 si5=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo5);
3125 si6=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo6);
3126 si7=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo7);
3127 si8=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo8);
3129 stall.action_({arg val;
3130 ~slidetimeall = val.value;
3131 ~slidetime1 = val.value;
3132 ~slidetime2 = val.value;
3133 ~slidetime3 = val.value;
3134 ~slidetime4 = val.value;
3135 ~slidetime5 = val.value;
3136 ~slidetime6 = val.value;
3137 ~slidetime7 = val.value;
3138 ~slidetime8 = val.value;
3139 ~slideview.close; ~slidevals.valueAction_(1);
3141 st1.action_({arg val; ~slidetime1 = val.value;});
3142 st2.action_({arg val; ~slidetime2 = val.value;});
3143 st3.action_({arg val; ~slidetime3 = val.value;});
3144 st4.action_({arg val; ~slidetime4 = val.value;});
3145 st5.action_({arg val; ~slidetime5 = val.value;});
3146 st6.action_({arg val; ~slidetime6 = val.value;});
3147 st7.action_({arg val; ~slidetime7 = val.value;});
3148 st8.action_({arg val; ~slidetime8 = val.value;});
3150 siall.action_({arg val;
3151 ~slidedoall = val.value;
3152 ~slidedo1 = val.value;
3153 ~slidedo2 = val.value;
3154 ~slidedo3 = val.value;
3155 ~slidedo4 = val.value;
3156 ~slidedo5 = val.value;
3157 ~slidedo6 = val.value;
3158 ~slidedo7 = val.value;
3159 ~slidedo8 = val.value;
3160 ~slideview.close; ~slidevals.valueAction_(1);
3162 si1.action_({arg val; ~slidedo1 = val.value;});
3163 si2.action_({arg val; ~slidedo2 = val.value;});
3164 si3.action_({arg val; ~slidedo3 = val.value;});
3165 si4.action_({arg val; ~slidedo4 = val.value;});
3166 si5.action_({arg val; ~slidedo5 = val.value;});
3167 si6.action_({arg val; ~slidedo6 = val.value;});
3168 si7.action_({arg val; ~slidedo7 = val.value;});
3169 si8.action_({arg val; ~slidedo8 = val.value;});
3171 ~slideview.background_(Color.black);
3173 ~closeslidebutton = Button.new(~slideview,Rect(leftdobox+widthbox-40, top+40, 40, 40/~gm)).states_([["close",Color.white,Color.black]]).action_({arg button;
3175 ~slideview.close; ~slidevals.value = 0;
3181 }, {~slideview.close;});
3185 //set individual or all synth frequencies button
3187 ~beforefreqsetfreqs = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ];
3189 ~synthfreqset = Button.new(~extraoptionsview,Rect(0,0,120,20)).states_([["set frequencies",Color.white,Color.black],["set frequencies",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3191 if(button.value == 1, {
3193 arg top = 0,width=88, revertwidth=75, height = 16, heightbox = 16, lefttime = 0 , lefttimebox = width+5, widthbox=140, leftdo = lefttimebox+widthbox+5, leftdobox = leftdo+57, inc=0, lw = 0, uw = 0, numw = 40;
3194 var tall, stall, iall, siall, st1, st2, st3, st4, st5, st6, st7, st8, st9, st10, st11, st12, si1, si2, si3, si4, si5, si6, si7, si8, t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11,i12;
3195 ~synthfreqsetview = View(w, Rect(Window.screenBounds.width-(340+46),Window.screenBounds.height-(340+46/1.6180339887499)-150,340+46,380+46/1.6180339887499)).front;
3196 /*w.view.decorator=FlowLayout(w.view.bounds);
3197 w.view.decorator.gap=2@2;*/
3199 t1 = StaticText(~synthfreqsetview, Rect(lefttime , top=top, width, height)).background_(Color.black).string_("freq 1 (f1)").stringColor_(Color.white);
3200 t2 = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("freq 2 (f2)").stringColor_(Color.white);
3201 t3 = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("freq 3 (f3)").stringColor_(Color.white);
3202 t4 = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("freq 4 (f4)").stringColor_(Color.white);
3203 t5 = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("freq 5 (f5)").stringColor_(Color.white);
3204 t6 = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("freq 6 (f6)").stringColor_(Color.white);
3205 t7 = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("freq 7 (f7)").stringColor_(Color.white);
3206 t8 = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("freq 8 (f8)").stringColor_(Color.white);
3207 t9 = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("freq 9 (f9)").stringColor_(Color.white);
3208 t10 = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("freq 10 (f10)").stringColor_(Color.white);
3209 t11 = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("freq 11 (f11)").stringColor_(Color.white);
3210 t12 = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("freq 12 (f12)").stringColor_(Color.white);
3211 tall = StaticText(~synthfreqsetview, Rect(lefttime , top=top+height+10, width, height)).background_(Color.black).string_("all freqs").stringColor_(Color.white);
3215 st1=TextField(~synthfreqsetview, Rect(lefttimebox , top=top, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f1);
3216 st2=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f2);
3217 st3=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f3);
3218 st4=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f4);
3219 st5=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f5);
3220 st6=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f6);
3221 st7=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f7);
3222 st8=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f8);
3223 st9=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f9);
3224 st10=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f10);
3225 st11=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f11);
3226 st12=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f12);
3227 stall=TextField(~synthfreqsetview, Rect(lefttimebox , top=top+heightbox+10, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~f1);
3231 i1 = Button.new(~synthfreqsetview, Rect(leftdo , top=top, revertwidth, height)).states_([["f1 revert",Color.white,Color.black],["f1 revert",Color.white,Color.black]]).action_({arg button; if(~f1_revert != nil, {if(~f1 != ~f1_revert, {~f1_un_revert = ~f1; ~f1 = ~f1_revert;}, {if(~f1_un_revert != nil, {~f1 = ~f1_un_revert;});}); ~synthflow.value; st1.string = ~f1.asString;});});
3232 i2 = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height, revertwidth, height)).states_([["f2 revert",Color.white,Color.black],["f2 revert",Color.white,Color.black]]).action_({arg button; if(~f2_revert != nil, {if(~f2 != ~f2_revert, {~f2_un_revert = ~f2; ~f2 = ~f2_revert;}, {if(~f2_un_revert != nil, {~f2 = ~f2_un_revert;});}); ~synthflow.value; st2.string = ~f2.asString;});});
3233 i3 = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height, revertwidth, height)).states_([["f3 revert",Color.white,Color.black],["f3 revert",Color.white,Color.black]]).action_({arg button; if(~f3_revert != nil, {if(~f3 != ~f3_revert, {~f3_un_revert = ~f3; ~f3 = ~f3_revert;}, {if(~f3_un_revert != nil, {~f3 = ~f3_un_revert;});}); ~synthflow.value; st3.string = ~f3.asString;});});
3234 i4 = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height, revertwidth, height)).states_([["f4 revert",Color.white,Color.black],["f4 revert",Color.white,Color.black]]).action_({arg button; if(~f4_revert != nil, {if(~f4 != ~f4_revert, {~f4_un_revert = ~f4; ~f4 = ~f4_revert;}, {if(~f4_un_revert != nil, {~f4 = ~f4_un_revert;});}); ~synthflow.value; st4.string = ~f4.asString;});});
3235 i5 = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height, revertwidth, height)).states_([["f5 revert",Color.white,Color.black],["f5 revert",Color.white,Color.black]]).action_({arg button; if(~f5_revert != nil, {if(~f5 != ~f5_revert, {~f5_un_revert = ~f5; ~f5 = ~f5_revert;}, {if(~f5_un_revert != nil, {~f5 = ~f5_un_revert;});}); ~synthflow.value; st5.string = ~f5.asString;});});
3236 i6 = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height, revertwidth, height)).states_([["f6 revert",Color.white,Color.black],["f6 revert",Color.white,Color.black]]).action_({arg button; if(~f6_revert != nil, {if(~f6 != ~f6_revert, {~f6_un_revert = ~f6; ~f6 = ~f6_revert;}, {if(~f6_un_revert != nil, {~f6 = ~f6_un_revert;});}); ~synthflow.value; st6.string = ~f6.asString;});});
3237 i7 = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height, revertwidth, height)).states_([["f7 revert",Color.white,Color.black],["f7 revert",Color.white,Color.black]]).action_({arg button; if(~f7_revert != nil, {if(~f7 != ~f7_revert, {~f7_un_revert = ~f7; ~f7 = ~f7_revert;}, {if(~f7_un_revert != nil, {~f7 = ~f7_un_revert;});}); ~synthflow.value; st7.string = ~f7.asString;});});
3238 i8 = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height, revertwidth, height)).states_([["f8 revert",Color.white,Color.black],["f8 revert",Color.white,Color.black]]).action_({arg button; if(~f8_revert != nil, {if(~f8 != ~f8_revert, {~f8_un_revert = ~f8; ~f8 = ~f8_revert;}, {if(~f8_un_revert != nil, {~f8 = ~f8_un_revert;});}); ~synthflow.value; st8.string = ~f8.asString;});});
3239 i9 = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height, revertwidth, height)).states_([["f9 revert",Color.white,Color.black],["f9 revert",Color.white,Color.black]]).action_({arg button; if(~f9_revert != nil, {if(~f9 != ~f9_revert, {~f9_un_revert = ~f9; ~f9 = ~f9_revert;}, {if(~f9_un_revert != nil, {~f9 = ~f9_un_revert;});}); ~synthflow.value; st9.string = ~f9.asString;});});
3240 i10 = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height, revertwidth, height)).states_([["f10 revert",Color.white,Color.black],["f10 revert",Color.white,Color.black]]).action_({arg button; if(~f10_revert != nil, {if(~f10 != ~f10_revert, {~f10_un_revert = ~f10; ~f10 = ~f10_revert;}, {if(~f10_un_revert != nil, {~f10 = ~f10_un_revert;});}); ~synthflow.value; st10.string = ~f10.asString;});});
3241 i11 = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height, revertwidth, height)).states_([["f11 revert",Color.white,Color.black],["f11 revert",Color.white,Color.black]]).action_({arg button; if(~f11_revert != nil, {if(~f11 != ~f11_revert, {~f11_un_revert = ~f11; ~f11 = ~f11_revert;}, {if(~f11_un_revert != nil, {~f11 = ~f11_un_revert;});}); ~synthflow.value; st11.string = ~f11.asString;});});
3242 i12 = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height, revertwidth, height)).states_([["f12 revert",Color.white,Color.black],["f12 revert",Color.white,Color.black]]).action_({arg button; if(~f12_revert != nil, {if(~f12 != ~f12_revert, {~f12_un_revert = ~f12; ~f12 = ~f12_revert;}, {if(~f12_un_revert != nil, {~f12 = ~f12_un_revert;});}); ~synthflow.value; st12.string = ~f12.asString;});});
3243 iall = Button.new(~synthfreqsetview, Rect(leftdo , top=top+height+10, revertwidth, height)).states_([["all revert",Color.white,Color.black],["all revert",Color.white,Color.black]]).action_({arg button; if(~f_all_revert != nil, {if([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ] != ~f_all_revert.flatten, {~f_all_un_revert = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].flatten; 12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut(~f_all_revert.flatten.at(x-1);)});}, {if(~f_all_un_revert != nil, {12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut(~f_all_un_revert.flatten.at(x-1);)});});}); ~synthflow.value; stall.string = ~f1.asString;});});
3246 stall.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f_all_revert = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]; 12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut(~freqsetvalue;)}); ~synthflow.value; stall.string = ~freqsetvalue.asString;});
3247 st1.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f1_revert = ~f1; ~f1 = ~freqsetvalue; ~synthflow.value; st1.string = ~freqsetvalue.asString;});
3248 st2.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f2_revert = ~f2; ~f2 = ~freqsetvalue; ~synthflow.value; st2.string = ~freqsetvalue.asString;});
3249 st3.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f3_revert = ~f3; ~f3 = ~freqsetvalue; ~synthflow.value; st3.string = ~freqsetvalue.asString;});
3250 st4.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f4_revert = ~f4; ~f4 = ~freqsetvalue; ~synthflow.value; st4.string = ~freqsetvalue.asString;});
3251 st5.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f5_revert = ~f5; ~f5 = ~freqsetvalue; ~synthflow.value; st5.string = ~freqsetvalue.asString;});
3252 st6.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f6_revert = ~f6; ~f6 = ~freqsetvalue; ~synthflow.value; st6.string = ~freqsetvalue.asString;});
3253 st7.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f7_revert = ~f7; ~f7 = ~freqsetvalue; ~synthflow.value; st7.string = ~freqsetvalue.asString;});
3254 st8.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f8_revert = ~f8; ~f8 = ~freqsetvalue; ~synthflow.value; st8.string = ~freqsetvalue.asString;});
3255 st9.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f9_revert = ~f9; ~f9 = ~freqsetvalue; ~synthflow.value; st9.string = ~freqsetvalue.asString;});
3256 st10.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f10_revert = ~f10; ~f10 = ~freqsetvalue; ~synthflow.value; st10.string = ~freqsetvalue.asString;});
3257 st11.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f11_revert = ~f11; ~f11 = ~freqsetvalue; ~synthflow.value; st11.string = ~freqsetvalue.asString;});
3258 st12.action_({arg val; ~freqsetvalue = val.value; ~freqset_textfield_func.value; ~f12_revert = ~f12; ~f12 = ~freqsetvalue; ~synthflow.value; st12.string = ~freqsetvalue.asString;});
3261 ~synthfreqsetview.background_(Color.black);
3263 ~closesfreqsetbutton = Button.new(~synthfreqsetview,Rect(leftdo+revertwidth-40, top=top+height+20, 40, 40/~gm)).states_([["close",Color.white,Color.black]]).action_({arg button;
3265 ~synthfreqsetview.close;
3268 ~beforefreqsetrevert = Button.new(~synthfreqsetview,Rect(lefttime, top+(40/~gm)-height, revertwidth+150, height)).states_([["restore freqs before opening eo",Color.white,Color.black],["revert",Color.white,Color.black]]).action_({arg button;
3270 if([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ] != ~beforefreqsetfreqs.flatten, {~beforefreqsetfreqs_unrestore = [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]; 12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut(~beforefreqsetfreqs.flatten.at(x-1);)});}, {if(~beforefreqsetfreqs_unrestore != nil, {12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut(~beforefreqsetfreqs_unrestore.flatten.at(x-1);)});});}); ~synthflow.value;
3276 ~synthfreqsetview.front;
3277 }, {~synthfreqsetview.close});
3281 Button.new(~extraoptionsview,Rect(0,80,120,20)).states_([["close eo",Color.white,Color.black],["close eo",Color.white,Color.black]]).action_({arg button;
3283 ~extraoptionsview.close; if(~slideview != nil, {~slideview.close;}); if(~synthfreqsetview != nil, {~synthfreqsetview.close;}); ~extraoptions.value = 0;
3287 }, {~extraoptionsview.close; if(~slideview != nil, {~slideview.close;}); if(~synthfreqsetview != nil, {~synthfreqsetview.close;});});
3291 //mute/unmute 1-8 buttons
3293 mute1 = Button.new(w,Rect(~bpl+(0),~bpt+69+5-(16/1.6180339887499),16,16/1.6180339887499)).states_([["1",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3295 {~l1a1.isRunning == true}{
3296 if(button.value == 0, {
3299 ~l1a1.set(\vol, ~vol1); ~l1b1.set(\vol, ~vol1);
3300 ~l1c1.set(\vol, ~vol1); ~l1d1.set(\vol, ~vol1);
3301 ~l1e1.set(\vol, ~vol1); ~l1f1.set(\vol, ~vol1);
3306 ~l1a1.set(\vol, ~vol1); ~l1b1.set(\vol, ~vol1);
3307 ~l1c1.set(\vol, ~vol1); ~l1d1.set(\vol, ~vol1);
3308 ~l1e1.set(\vol, ~vol1); ~l1f1.set(\vol, ~vol1);
3313 {~l1a.isRunning == true}{
3314 if(button.value == 0, {
3317 ~l1a.set(\vol, ~vol1); ~l1b.set(\vol, ~vol1);
3318 ~l1c.set(\vol, ~vol1); ~l1d.set(\vol, ~vol1);
3319 ~l1e.set(\vol, ~vol1); ~l1f.set(\vol, ~vol1);
3324 ~l1a.set(\vol, ~vol1); ~l1b.set(\vol, ~vol1);
3325 ~l1c.set(\vol, ~vol1); ~l1d.set(\vol, ~vol1);
3326 ~l1e.set(\vol, ~vol1); ~l1f.set(\vol, ~vol1);
3333 mute2 = Button.new(w,Rect(~bpl+(16*1),~bpt+69+5-(16/1.6180339887499),16,16/1.6180339887499)).states_([["2",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3335 {~l1a1.isRunning == true}{
3336 if(button.value == 0, {
3339 ~l2a1.set(\vol, ~vol2); ~l2b1.set(\vol, ~vol2);
3340 ~l2c1.set(\vol, ~vol2); ~l2d1.set(\vol, ~vol2);
3341 ~l2e1.set(\vol, ~vol2); ~l2f1.set(\vol, ~vol2);
3346 ~l2a1.set(\vol, ~vol2); ~l2b1.set(\vol, ~vol2);
3347 ~l2c1.set(\vol, ~vol2); ~l2d1.set(\vol, ~vol2);
3348 ~l2e1.set(\vol, ~vol2); ~l2f1.set(\vol, ~vol2);
3353 {~l1a.isRunning == true}{
3354 if(button.value == 0, {
3357 ~l2a.set(\vol, ~vol2); ~l2b.set(\vol, ~vol2);
3358 ~l2c.set(\vol, ~vol2); ~l2d.set(\vol, ~vol2);
3359 ~l2e.set(\vol, ~vol2); ~l2f.set(\vol, ~vol2);
3364 ~l2a.set(\vol, ~vol2); ~l2b.set(\vol, ~vol2);
3365 ~l2c.set(\vol, ~vol2); ~l2d.set(\vol, ~vol2);
3366 ~l2e.set(\vol, ~vol2); ~l2f.set(\vol, ~vol2);
3372 mute3 = Button.new(w,Rect(~bpl+(16*2),~bpt+69+5-(16/1.6180339887499),16,16/1.6180339887499)).states_([["3",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3374 {~l1a1.isRunning == true}{
3375 if(button.value == 0, {
3378 ~l3a1.set(\vol, ~vol3); ~l3b1.set(\vol, ~vol3);
3379 ~l3c1.set(\vol, ~vol3); ~l3d1.set(\vol, ~vol3);
3380 ~l3e1.set(\vol, ~vol3); ~l3f1.set(\vol, ~vol3);
3385 ~l3a1.set(\vol, ~vol3); ~l3b1.set(\vol, ~vol3);
3386 ~l3c1.set(\vol, ~vol3); ~l3d1.set(\vol, ~vol3);
3387 ~l3e1.set(\vol, ~vol3); ~l3f1.set(\vol, ~vol3);
3392 {~l1a.isRunning == true}{
3393 if(button.value == 0, {
3396 ~l3a.set(\vol, ~vol3); ~l3b.set(\vol, ~vol3);
3397 ~l3c.set(\vol, ~vol3); ~l3d.set(\vol, ~vol3);
3398 ~l3e.set(\vol, ~vol3); ~l3f.set(\vol, ~vol3);
3403 ~l3a.set(\vol, ~vol3); ~l3b.set(\vol, ~vol3);
3404 ~l3c.set(\vol, ~vol3); ~l3d.set(\vol, ~vol3);
3405 ~l3e.set(\vol, ~vol3); ~l3f.set(\vol, ~vol3);
3411 mute4 = Button.new(w,Rect(~bpl+(16*3),~bpt+69+5-(16/1.6180339887499),16,16/1.6180339887499)).states_([["4",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3413 {~l1a1.isRunning == true}{
3414 if(button.value == 0, {
3417 ~l4a1.set(\vol, ~vol4); ~l4b1.set(\vol, ~vol4);
3418 ~l4c1.set(\vol, ~vol4); ~l4d1.set(\vol, ~vol4);
3419 ~l4e1.set(\vol, ~vol4); ~l4f1.set(\vol, ~vol4);
3424 ~l4a1.set(\vol, ~vol4); ~l4b1.set(\vol, ~vol4);
3425 ~l4c1.set(\vol, ~vol4); ~l4d1.set(\vol, ~vol4);
3426 ~l4e1.set(\vol, ~vol4); ~l4f1.set(\vol, ~vol4);
3431 {~l1a.isRunning == true}{
3432 if(button.value == 0, {
3435 ~l4a.set(\vol, ~vol4); ~l4b.set(\vol, ~vol4);
3436 ~l4c.set(\vol, ~vol4); ~l4d.set(\vol, ~vol4);
3437 ~l4e.set(\vol, ~vol4); ~l4f.set(\vol, ~vol4);
3442 ~l4a.set(\vol, ~vol4); ~l4b.set(\vol, ~vol4);
3443 ~l4c.set(\vol, ~vol4); ~l4d.set(\vol, ~vol4);
3444 ~l4e.set(\vol, ~vol4); ~l4f.set(\vol, ~vol4);
3450 mute5 = Button.new(w,Rect(~bpl+(16*4),~bpt+69+5-(16/1.6180339887499),16,16/1.6180339887499)).states_([["5",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3452 {~l1a1.isRunning == true}{
3453 if(button.value == 0, {
3456 ~l5a1.set(\vol, ~vol5); ~l5b1.set(\vol, ~vol5);
3457 ~l5c1.set(\vol, ~vol5); ~l5d1.set(\vol, ~vol5);
3458 ~l5e1.set(\vol, ~vol5); ~l5f1.set(\vol, ~vol5);
3463 ~l5a1.set(\vol, ~vol5); ~l5b1.set(\vol, ~vol5);
3464 ~l5c1.set(\vol, ~vol5); ~l5d1.set(\vol, ~vol5);
3465 ~l5e1.set(\vol, ~vol5); ~l5f1.set(\vol, ~vol5);
3470 {~l1a.isRunning == true}{
3471 if(button.value == 0, {
3474 ~l5a.set(\vol, ~vol5); ~l5b.set(\vol, ~vol5);
3475 ~l5c.set(\vol, ~vol5); ~l5d.set(\vol, ~vol5);
3476 ~l5e.set(\vol, ~vol5); ~l5f.set(\vol, ~vol5);
3481 ~l5a.set(\vol, ~vol5); ~l5b.set(\vol, ~vol5);
3482 ~l5c.set(\vol, ~vol5); ~l5d.set(\vol, ~vol5);
3483 ~l5e.set(\vol, ~vol5); ~l5f.set(\vol, ~vol5);
3489 mute6 = Button.new(w,Rect(~bpl+(16*5),~bpt+69+5-(16/1.6180339887499),16,16/1.6180339887499)).states_([["6",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3491 {~l1a1.isRunning == true}{
3492 if(button.value == 0, {
3495 ~l6a1.set(\vol, ~vol6); ~l6b1.set(\vol, ~vol6);
3496 ~l6c1.set(\vol, ~vol6); ~l6d1.set(\vol, ~vol6);
3497 ~l6e1.set(\vol, ~vol6); ~l6f1.set(\vol, ~vol6);
3502 ~l6a1.set(\vol, ~vol6); ~l6b1.set(\vol, ~vol6);
3503 ~l6c1.set(\vol, ~vol6); ~l6d1.set(\vol, ~vol6);
3504 ~l6e1.set(\vol, ~vol6); ~l6f1.set(\vol, ~vol6);
3509 {~l1a.isRunning == true}{
3510 if(button.value == 0, {
3513 ~l6a.set(\vol, ~vol6); ~l6b.set(\vol, ~vol6);
3514 ~l6c.set(\vol, ~vol6); ~l6d.set(\vol, ~vol6);
3515 ~l6e.set(\vol, ~vol6); ~l6f.set(\vol, ~vol6);
3520 ~l6a.set(\vol, ~vol6); ~l6b.set(\vol, ~vol6);
3521 ~l6c.set(\vol, ~vol6); ~l6d.set(\vol, ~vol6);
3522 ~l6e.set(\vol, ~vol6); ~l6f.set(\vol, ~vol6);
3529 mute7 = Button.new(w,Rect(~bpl+(16*6),~bpt+69+5-(16/1.6180339887499),16,16/1.6180339887499)).states_([["7",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3531 {~l1a1.isRunning == true}{
3532 if(button.value == 0, {
3535 ~l7a1.set(\vol, ~vol7); ~l7b1.set(\vol, ~vol7);
3536 ~l7c1.set(\vol, ~vol7); ~l7d1.set(\vol, ~vol7);
3537 ~l7e1.set(\vol, ~vol7); ~l7f1.set(\vol, ~vol7);
3542 ~l7a1.set(\vol, ~vol7); ~l7b1.set(\vol, ~vol7);
3543 ~l7c1.set(\vol, ~vol7); ~l7d1.set(\vol, ~vol7);
3544 ~l7e1.set(\vol, ~vol7); ~l7f1.set(\vol, ~vol7);
3549 {~l1a.isRunning == true}{
3550 if(button.value == 0, {
3553 ~l7a.set(\vol, ~vol7); ~l7b.set(\vol, ~vol7);
3554 ~l7c.set(\vol, ~vol7); ~l7d.set(\vol, ~vol7);
3555 ~l7e.set(\vol, ~vol7); ~l7f.set(\vol, ~vol7);
3560 ~l7a.set(\vol, ~vol7); ~l7b.set(\vol, ~vol7);
3561 ~l7c.set(\vol, ~vol7); ~l7d.set(\vol, ~vol7);
3562 ~l7e.set(\vol, ~vol7); ~l7f.set(\vol, ~vol7);
3568 mute8 = Button.new(w,Rect(~bpl+(16*7),~bpt+69+5-(16/1.6180339887499),16,16/1.6180339887499)).states_([["8",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3570 {~l1a1.isRunning == true}{
3571 if(button.value == 0, {
3574 ~l8a1.set(\vol, ~vol8); ~l8b1.set(\vol, ~vol8);
3575 ~l8c1.set(\vol, ~vol8); ~l8d1.set(\vol, ~vol8);
3576 ~l8e1.set(\vol, ~vol8); ~l8f1.set(\vol, ~vol8);
3581 ~l8a1.set(\vol, ~vol8); ~l8b1.set(\vol, ~vol8);
3582 ~l8c1.set(\vol, ~vol8); ~l8d1.set(\vol, ~vol8);
3583 ~l8e1.set(\vol, ~vol8); ~l8f1.set(\vol, ~vol8);
3588 {~l1a.isRunning == true}{
3589 if(button.value == 0, {
3592 ~l8a.set(\vol, ~vol8); ~l8b.set(\vol, ~vol8);
3593 ~l8c.set(\vol, ~vol8); ~l8d.set(\vol, ~vol8);
3594 ~l8e.set(\vol, ~vol8); ~l8f.set(\vol, ~vol8);
3599 ~l8a.set(\vol, ~vol8); ~l8b.set(\vol, ~vol8);
3600 ~l8c.set(\vol, ~vol8); ~l8d.set(\vol, ~vol8);
3601 ~l8e.set(\vol, ~vol8); ~l8f.set(\vol, ~vol8);
3607 mute9 = Button.new(w,Rect(~bpl+(16*8),~bpt+69+5-(16/1.6180339887499),16,16/1.6180339887499)).states_([["9",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3609 {~l1a1.isRunning == true}{
3610 if(button.value == 0, {
3613 ~l9a1.set(\vol, ~vol9); ~l9b1.set(\vol, ~vol9);
3614 ~l9c1.set(\vol, ~vol9); ~l9d1.set(\vol, ~vol9);
3615 ~l9e1.set(\vol, ~vol9); ~l9f1.set(\vol, ~vol9);
3620 ~l9a1.set(\vol, ~vol9); ~l9b1.set(\vol, ~vol9);
3621 ~l9c1.set(\vol, ~vol9); ~l9d1.set(\vol, ~vol9);
3622 ~l9e1.set(\vol, ~vol9); ~l9f1.set(\vol, ~vol9);
3627 {~l1a.isRunning == true}{
3628 if(button.value == 0, {
3631 ~l9a.set(\vol, ~vol9); ~l9b.set(\vol, ~vol9);
3632 ~l9c.set(\vol, ~vol9); ~l9d.set(\vol, ~vol9);
3633 ~l9e.set(\vol, ~vol9); ~l9f.set(\vol, ~vol9);
3638 ~l9a.set(\vol, ~vol9); ~l9b.set(\vol, ~vol9);
3639 ~l9c.set(\vol, ~vol9); ~l9d.set(\vol, ~vol9);
3640 ~l9e.set(\vol, ~vol9); ~l9f.set(\vol, ~vol9);
3646 mute10 = Button.new(w,Rect(~bpl+(0),~bpt+69+5,16,16/1.6180339887499)).states_([["10",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3648 {~l1a1.isRunning == true}{
3649 if(button.value == 0, {
3652 ~l10a1.set(\vol, ~vol10); ~l10b1.set(\vol, ~vol10);
3653 ~l10c1.set(\vol, ~vol10); ~l10d1.set(\vol, ~vol10);
3654 ~l10e1.set(\vol, ~vol10); ~l10f1.set(\vol, ~vol10);
3659 ~l10a1.set(\vol, ~vol10); ~l10b1.set(\vol, ~vol10);
3660 ~l10c1.set(\vol, ~vol10); ~l10d1.set(\vol, ~vol10);
3661 ~l10e1.set(\vol, ~vol10); ~l10f1.set(\vol, ~vol10);
3666 {~l1a.isRunning == true}{
3667 if(button.value == 0, {
3670 ~l10a.set(\vol, ~vol10); ~l10b.set(\vol, ~vol10);
3671 ~l10c.set(\vol, ~vol10); ~l10d.set(\vol, ~vol10);
3672 ~l10e.set(\vol, ~vol10); ~l10f.set(\vol, ~vol10);
3677 ~l10a.set(\vol, ~vol10); ~l10b.set(\vol, ~vol10);
3678 ~l10c.set(\vol, ~vol10); ~l10d.set(\vol, ~vol10);
3679 ~l10e.set(\vol, ~vol10); ~l10f.set(\vol, ~vol10);
3685 mute11 = Button.new(w,Rect(~bpl+(16),~bpt+69+5,16,16/1.6180339887499)).states_([["11",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3687 {~l1a1.isRunning == true}{
3688 if(button.value == 0, {
3691 ~l11a1.set(\vol, ~vol11); ~l11b1.set(\vol, ~vol11);
3692 ~l11c1.set(\vol, ~vol11); ~l11d1.set(\vol, ~vol11);
3693 ~l11e1.set(\vol, ~vol11); ~l11f1.set(\vol, ~vol11);
3698 ~l11a1.set(\vol, ~vol11); ~l8b1.set(\vol, ~vol11);
3699 ~l11c1.set(\vol, ~vol11); ~l8d1.set(\vol, ~vol11);
3700 ~l11e1.set(\vol, ~vol11); ~l8f1.set(\vol, ~vol11);
3705 {~l1a.isRunning == true}{
3706 if(button.value == 0, {
3709 ~l11a.set(\vol, ~vol11); ~l11b.set(\vol, ~vol11);
3710 ~l11c.set(\vol, ~vol11); ~l11d.set(\vol, ~vol11);
3711 ~l11e.set(\vol, ~vol11); ~l11f.set(\vol, ~vol11);
3716 ~l11a.set(\vol, ~vol11); ~l11b.set(\vol, ~vol11);
3717 ~l11c.set(\vol, ~vol11); ~l11d.set(\vol, ~vol11);
3718 ~l11e.set(\vol, ~vol11); ~l11f.set(\vol, ~vol11);
3724 mute12 = Button.new(w,Rect(~bpl+(16*2),~bpt+69+5,16,16/1.6180339887499)).states_([["12",Color.white,Color.black],["",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3726 {~l1a1.isRunning == true}{
3727 if(button.value == 0, {
3730 ~l12a1.set(\vol, ~vol12); ~l12b1.set(\vol, ~vol12);
3731 ~l12c1.set(\vol, ~vol12); ~l12d1.set(\vol, ~vol12);
3732 ~l12e1.set(\vol, ~vol12); ~l12f1.set(\vol, ~vol12);
3737 ~l12a1.set(\vol, ~vol12); ~l12b1.set(\vol, ~vol12);
3738 ~l12c1.set(\vol, ~vol12); ~l12d1.set(\vol, ~vol12);
3739 ~l12e1.set(\vol, ~vol12); ~l12f1.set(\vol, ~vol12);
3744 {~l1a.isRunning == true}{
3745 if(button.value == 0, {
3748 ~l12a.set(\vol, ~vol12); ~l12b.set(\vol, ~vol12);
3749 ~l12c.set(\vol, ~vol12); ~l12d.set(\vol, ~vol12);
3750 ~l12e.set(\vol, ~vol12); ~l12f.set(\vol, ~vol12);
3755 ~l12a.set(\vol, ~vol12); ~l12b.set(\vol, ~vol12);
3756 ~l12c.set(\vol, ~vol12); ~l12d.set(\vol, ~vol12);
3757 ~l12e.set(\vol, ~vol12); ~l12f.set(\vol, ~vol12);
3765 //mute/unmute all button
3767 muteall = Button.new(w,Rect(~bpl+(16*3),~bpt+69+5,16,16/1.6180339887499)).states_([["m",Color.white,Color.black],["u",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
3769 if(button.value == 0, {
3827 //keyboard number buttons to choose synth
3829 keycodeb = Button.new(w,Rect(Window.screenBounds.width-20-16,~bpt+160,16,16/1.6180339887499)).states_([
3830 ["1",Color.white,Color.black],
3831 ["2",Color.white,Color.black],
3832 ["3",Color.white,Color.black],
3833 ["4",Color.white,Color.black],
3834 ["5",Color.white,Color.black],
3835 ["6",Color.white,Color.black],
3836 ["7",Color.white,Color.black],
3837 ["8",Color.white,Color.black],
3838 ["9",Color.white,Color.black],
3839 ["10",Color.white,Color.black],
3840 ["11",Color.white,Color.black],
3841 ["12",Color.white,Color.black]]).action_({arg button;
3844 {button.value == 0}{
3845 ~z25.background = Color.green; ~z1.background = Color.green;
3846 ~z26.background = Color.white; ~z2.background = Color.white;
3847 ~z27.background = Color.white; ~z3.background = Color.white;
3848 ~z28.background = Color.white; ~z4.background = Color.white;
3849 ~z29.background = Color.white; ~z5.background = Color.white;
3850 ~z30.background = Color.white; ~z6.background = Color.white;
3851 ~z31.background = Color.white; ~z7.background = Color.white;
3852 ~z32.background = Color.white; ~z8.background = Color.white;
3853 ~z33.background = Color.white; ~z9.background = Color.white;
3854 ~z34.background = Color.white; ~z10.background = Color.white;
3855 ~z35.background = Color.white; ~z11.background = Color.white;
3856 ~z36.background = Color.white; ~z12.background = Color.white;
3858 {button.value == 1}{
3859 ~z25.background = Color.white; ~z1.background = Color.white;
3860 ~z26.background = Color.green; ~z2.background = Color.green;
3861 ~z27.background = Color.white; ~z3.background = Color.white;
3862 ~z28.background = Color.white; ~z4.background = Color.white;
3863 ~z29.background = Color.white; ~z5.background = Color.white;
3864 ~z30.background = Color.white; ~z6.background = Color.white;
3865 ~z31.background = Color.white; ~z7.background = Color.white;
3866 ~z32.background = Color.white; ~z8.background = Color.white;
3867 ~z33.background = Color.white; ~z9.background = Color.white;
3868 ~z34.background = Color.white; ~z10.background = Color.white;
3869 ~z35.background = Color.white; ~z11.background = Color.white;
3870 ~z36.background = Color.white; ~z12.background = Color.white;
3872 {button.value == 2}{
3873 ~z25.background = Color.white; ~z1.background = Color.white;
3874 ~z26.background = Color.white; ~z2.background = Color.white;
3875 ~z27.background = Color.green; ~z3.background = Color.green;
3876 ~z28.background = Color.white; ~z4.background = Color.white;
3877 ~z29.background = Color.white; ~z5.background = Color.white;
3878 ~z30.background = Color.white; ~z6.background = Color.white;
3879 ~z31.background = Color.white; ~z7.background = Color.white;
3880 ~z32.background = Color.white; ~z8.background = Color.white;
3881 ~z33.background = Color.white; ~z9.background = Color.white;
3882 ~z34.background = Color.white; ~z10.background = Color.white;
3883 ~z35.background = Color.white; ~z11.background = Color.white;
3884 ~z36.background = Color.white; ~z12.background = Color.white;
3886 {button.value == 3}{
3887 ~z25.background = Color.white; ~z1.background = Color.white;
3888 ~z26.background = Color.white; ~z2.background = Color.white;
3889 ~z27.background = Color.white; ~z3.background = Color.white;
3890 ~z28.background = Color.green; ~z4.background = Color.green;
3891 ~z29.background = Color.white; ~z5.background = Color.white;
3892 ~z30.background = Color.white; ~z6.background = Color.white;
3893 ~z31.background = Color.white; ~z7.background = Color.white;
3894 ~z32.background = Color.white; ~z8.background = Color.white;
3895 ~z33.background = Color.white; ~z9.background = Color.white;
3896 ~z34.background = Color.white; ~z10.background = Color.white;
3897 ~z35.background = Color.white; ~z11.background = Color.white;
3898 ~z36.background = Color.white; ~z12.background = Color.white;
3900 {button.value == 4}{
3901 ~z25.background = Color.white; ~z1.background = Color.white;
3902 ~z26.background = Color.white; ~z2.background = Color.white;
3903 ~z27.background = Color.white; ~z3.background = Color.white;
3904 ~z28.background = Color.white; ~z4.background = Color.white;
3905 ~z29.background = Color.green; ~z5.background = Color.green;
3906 ~z30.background = Color.white; ~z6.background = Color.white;
3907 ~z31.background = Color.white; ~z7.background = Color.white;
3908 ~z32.background = Color.white; ~z8.background = Color.white;
3909 ~z33.background = Color.white; ~z9.background = Color.white;
3910 ~z34.background = Color.white; ~z10.background = Color.white;
3911 ~z35.background = Color.white; ~z11.background = Color.white;
3912 ~z36.background = Color.white; ~z12.background = Color.white;
3914 {button.value == 5}{
3915 ~z25.background = Color.white; ~z1.background = Color.white;
3916 ~z26.background = Color.white; ~z2.background = Color.white;
3917 ~z27.background = Color.white; ~z3.background = Color.white;
3918 ~z28.background = Color.white; ~z4.background = Color.white;
3919 ~z29.background = Color.white; ~z5.background = Color.white;
3920 ~z30.background = Color.green; ~z6.background = Color.green;
3921 ~z31.background = Color.white; ~z7.background = Color.white;
3922 ~z32.background = Color.white; ~z8.background = Color.white;
3923 ~z33.background = Color.white; ~z9.background = Color.white;
3924 ~z34.background = Color.white; ~z10.background = Color.white;
3925 ~z35.background = Color.white; ~z11.background = Color.white;
3926 ~z36.background = Color.white; ~z12.background = Color.white;
3928 {button.value == 6}{
3929 ~z25.background = Color.white; ~z1.background = Color.white;
3930 ~z26.background = Color.white; ~z2.background = Color.white;
3931 ~z27.background = Color.white; ~z3.background = Color.white;
3932 ~z28.background = Color.white; ~z4.background = Color.white;
3933 ~z29.background = Color.white; ~z5.background = Color.white;
3934 ~z30.background = Color.white; ~z6.background = Color.white;
3935 ~z31.background = Color.green; ~z7.background = Color.green;
3936 ~z32.background = Color.white; ~z8.background = Color.white;
3937 ~z33.background = Color.white; ~z9.background = Color.white;
3938 ~z34.background = Color.white; ~z10.background = Color.white;
3939 ~z35.background = Color.white; ~z11.background = Color.white;
3940 ~z36.background = Color.white; ~z12.background = Color.white;
3942 {button.value == 7}{
3943 ~z25.background = Color.white; ~z1.background = Color.white;
3944 ~z26.background = Color.white; ~z2.background = Color.white;
3945 ~z27.background = Color.white; ~z3.background = Color.white;
3946 ~z28.background = Color.white; ~z4.background = Color.white;
3947 ~z29.background = Color.white; ~z5.background = Color.white;
3948 ~z30.background = Color.white; ~z6.background = Color.white;
3949 ~z31.background = Color.white; ~z7.background = Color.white;
3950 ~z32.background = Color.green; ~z8.background = Color.green;
3951 ~z33.background = Color.white; ~z9.background = Color.white;
3952 ~z34.background = Color.white; ~z10.background = Color.white;
3953 ~z35.background = Color.white; ~z11.background = Color.white;
3954 ~z36.background = Color.white; ~z12.background = Color.white;
3956 {button.value == 8}{
3957 ~z25.background = Color.white; ~z1.background = Color.white;
3958 ~z26.background = Color.white; ~z2.background = Color.white;
3959 ~z27.background = Color.white; ~z3.background = Color.white;
3960 ~z28.background = Color.white; ~z4.background = Color.white;
3961 ~z29.background = Color.white; ~z5.background = Color.white;
3962 ~z30.background = Color.white; ~z6.background = Color.white;
3963 ~z31.background = Color.white; ~z7.background = Color.white;
3964 ~z32.background = Color.white; ~z8.background = Color.white;
3965 ~z33.background = Color.green; ~z9.background = Color.green;
3966 ~z34.background = Color.white; ~z10.background = Color.white;
3967 ~z35.background = Color.white; ~z11.background = Color.white;
3968 ~z36.background = Color.white; ~z12.background = Color.white;
3970 {button.value == 9}{
3971 ~z25.background = Color.white; ~z1.background = Color.white;
3972 ~z26.background = Color.white; ~z2.background = Color.white;
3973 ~z27.background = Color.white; ~z3.background = Color.white;
3974 ~z28.background = Color.white; ~z4.background = Color.white;
3975 ~z29.background = Color.white; ~z5.background = Color.white;
3976 ~z30.background = Color.white; ~z6.background = Color.white;
3977 ~z31.background = Color.white; ~z7.background = Color.white;
3978 ~z32.background = Color.white; ~z8.background = Color.white;
3979 ~z33.background = Color.white; ~z9.background = Color.white;
3980 ~z34.background = Color.green; ~z10.background = Color.green;
3981 ~z35.background = Color.white; ~z11.background = Color.white;
3982 ~z36.background = Color.white; ~z12.background = Color.white;
3984 {button.value == 10}{
3985 ~z25.background = Color.white; ~z1.background = Color.white;
3986 ~z26.background = Color.white; ~z2.background = Color.white;
3987 ~z27.background = Color.white; ~z3.background = Color.white;
3988 ~z28.background = Color.white; ~z4.background = Color.white;
3989 ~z29.background = Color.white; ~z5.background = Color.white;
3990 ~z30.background = Color.white; ~z6.background = Color.white;
3991 ~z31.background = Color.white; ~z7.background = Color.white;
3992 ~z32.background = Color.white; ~z8.background = Color.white;
3993 ~z33.background = Color.white; ~z9.background = Color.white;
3994 ~z34.background = Color.white; ~z10.background = Color.white;
3995 ~z35.background = Color.green; ~z11.background = Color.green;
3996 ~z36.background = Color.white; ~z12.background = Color.white;
3998 {button.value == 11}{
3999 ~z25.background = Color.white; ~z1.background = Color.white;
4000 ~z26.background = Color.white; ~z2.background = Color.white;
4001 ~z27.background = Color.white; ~z3.background = Color.white;
4002 ~z28.background = Color.white; ~z4.background = Color.white;
4003 ~z29.background = Color.white; ~z5.background = Color.white;
4004 ~z30.background = Color.white; ~z6.background = Color.white;
4005 ~z31.background = Color.white; ~z7.background = Color.white;
4006 ~z32.background = Color.white; ~z8.background = Color.white;
4007 ~z33.background = Color.white; ~z9.background = Color.white;
4008 ~z34.background = Color.white; ~z10.background = Color.white;
4009 ~z35.background = Color.white; ~z11.background = Color.white;
4010 ~z36.background = Color.green; ~z12.background = Color.green;
4016 //misc. keyboard buttons
4018 w.view.keyDownAction = { arg view, char, modifiers, unicode, keycode;
4019 [char, modifiers, unicode, keycode];
4022 if(unicode == ~c_unicode, {
4024 {b.value == 0}{b.valueAction = 1}
4025 {b.value == 1}{b.valueAction = 0};
4029 if(unicode == ~s_unicode, {
4031 {b3.value == 0}{b3.valueAction = 1}
4032 {b3.value == 1}{b3.valueAction = 0};
4035 //pause/unpause synth
4036 if(unicode == ~spacebar_unicode, {
4038 {b4.value == 0}{b4.valueAction = 1}
4039 {b4.value == 1}{b4.valueAction = 0};
4043 if(unicode == ~t_unicode, {
4045 {~ts.value == 0}{~ts.valueAction = 1}
4046 {~ts.value == 1}{~ts.valueAction = 0};
4050 if(unicode == ~r_unicode, {
4052 {~rviewbutton.value == 0}{~rviewbutton.valueAction = 1}
4053 {~rviewbutton.value == 1}{~rviewbutton.valueAction = 0};
4056 //mute/unmute all synths
4057 if(unicode == ~m_unicode, {
4059 {muteall.value == 0}{muteall.valueAction = 1}
4060 {muteall.value == 1}{muteall.valueAction = 0};
4063 //minimize GUI window
4064 if(unicode == ~escape_unicode, {w.minimize;
4066 ~fullscreen_correct = {w.fullScreen};
4067 ~fscview = UserView(w, Rect(0,0, Window.screenBounds.width-100, Window.screenBounds.height;));
4068 ~fullscreen_button = Button.new(w,Rect(Window.screenBounds.width/2-35,Window.screenBounds.height/2+120,150,20)).states_([["re-adjust to fullscreen",Color.white,Color.black]]).action_({arg button; w.fullScreen; ~fullscreen_button.close; ~fullscreen_button = nil;});
4069 ~fscview.mouseEnterAction_{|v, x, y| ~fullscreen_correct.value; ~fullscreen_correct = nil; ~fscview.close; ~fscview = nil; ~fullscreen_button.close; ~fullscreen_button = nil;};
4072 /*if((unicode == ~escape_unicode) and: (info.isClosed == false), {info.close;});
4073 if((unicode == ~escape_unicode) and: (b.isClosed == false), {b.close;});
4075 //minimize GUI window
4076 if((unicode == ~escape_unicode) and: (((b.isClosed == true) and: (info.isClosed == true)) or: ((b.isClosed == true)) or: (info.isClosed == true)), {w.minimize;});
4078 /*if(unicode == ~escape_unicode , {
4079 if((b.isClosed == true) and: (info.isClosed == true), {~min.value});
4080 if(info.isClosed == false, {info.valueAction = 0;});
4081 if(b.isClosed == false, {b.valueAction = 0;});
4085 //keyboard number actions
4088 {unicode == ~one_unicode}{keycodeb.valueAction_(0)}
4089 {unicode == ~two_unicode}{keycodeb.valueAction_(1)}
4090 {unicode == ~three_unicode}{keycodeb.valueAction_(2)}
4091 {unicode == ~four_unicode}{keycodeb.valueAction_(3)}
4092 {unicode == ~five_unicode}{keycodeb.valueAction_(4)}
4093 {unicode == ~six_unicode}{keycodeb.valueAction_(5)}
4094 {unicode == ~seven_unicode}{keycodeb.valueAction_(6)}
4095 {unicode == ~eight_unicode}{keycodeb.valueAction_(7)}
4096 {unicode == ~nine_unicode}{keycodeb.valueAction_(8)}
4097 {unicode == ~ten_unicode}{keycodeb.valueAction_(9)}
4098 {unicode == ~eleven_unicode}{keycodeb.valueAction_(10)}
4099 {unicode == ~twelve_unicode}{keycodeb.valueAction_(11)}
4102 //keyboard up/down arrow actions
4104 {(keycode == ~uparrow_keycode) or: (unicode == ~i_unicode)}{keycodeb.valueAction_(keycodeb.value-1)}
4105 {(keycode == ~downarrow_keycode) or: (unicode == ~k_unicode)}{keycodeb.valueAction_(keycodeb.value+1)};
4108 //set synth frequency using left/right arrow keys or j/l keys
4110 if((~f1 >= ~freqmap.at(127)), {~freqmap.at(127)},
4111 {if((keycodeb.value == 0) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4112 ~freqmapval1 = ~f1.cpsmidi.round;
4114 {~l1a.isRunning == true}{
4115 ~l1a.set(\dur, ~f1 = ~freqmap.at(~freqmapval1 = ~freqmapval1.value+1));
4116 ~l1b.set(\dur, ~f1);
4117 ~l1c.set(\dur, ~f1/~icd3);
4118 ~l1d.set(\dur, ~f1/~icd3);
4119 ~l1e.set(\dur, ~f1/~icd6);
4120 ~l1f.set(\dur, ~f1/~icd6);
4122 {~l1a1.isRunning == true}{
4123 ~l1a1.set(\dur, ~f1 = ~freqmap.at(~freqmapval1 = ~freqmapval1.value+1));
4124 ~l1b1.set(\dur, ~f1);
4125 ~l1c1.set(\dur, ~f1/~icd3);
4126 ~l1d1.set(\dur, ~f1/~icd3);
4127 ~l1e1.set(\dur, ~f1/~icd6);
4128 ~l1f1.set(\dur, ~f1/~icd6);
4130 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (View(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (View(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
4131 ~z25.background = Color.green; ~z1.background = Color.green;
4132 ~z26.background = Color.white; ~z2.background = Color.white;
4133 ~z27.background = Color.white; ~z3.background = Color.white;
4134 ~z28.background = Color.white; ~z4.background = Color.white;
4135 ~z29.background = Color.white; ~z5.background = Color.white;
4136 ~z30.background = Color.white; ~z6.background = Color.white;
4137 ~z31.background = Color.white; ~z7.background = Color.white;
4138 ~z32.background = Color.white; ~z8.background = Color.white;
4139 ~z33.background = Color.white; ~z9.background = Color.white;
4140 ~z34.background = Color.white; ~z10.background = Color.white;
4141 ~z35.background = Color.white; ~z11.background = Color.white;
4142 ~z36.background = Color.white; ~z12.background = Color.white;
4144 if((~f1 <= ~freqmap.at(0)), {~freqmap.at(0)},
4145 {if((keycodeb.value == 0) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4146 ~freqmapval1 = ~f1.cpsmidi.round;
4148 {~l1a.isRunning == true}{
4149 ~l1a.set(\dur, ~f1 = ~freqmap.at(~freqmapval1 = ~freqmapval1.value-1));
4150 ~l1b.set(\dur, ~f1);
4151 ~l1c.set(\dur, ~f1/~icd3);
4152 ~l1d.set(\dur, ~f1/~icd3);
4153 ~l1e.set(\dur, ~f1/~icd6);
4154 ~l1f.set(\dur, ~f1/~icd6);
4156 {~l1a1.isRunning == true}{
4157 ~l1a1.set(\dur, ~f1 = ~freqmap.at(~freqmapval1 = ~freqmapval1.value-1));
4158 ~l1b1.set(\dur, ~f1);
4159 ~l1c1.set(\dur, ~f1/~icd3);
4160 ~l1d1.set(\dur, ~f1/~icd3);
4161 ~l1e1.set(\dur, ~f1/~icd6);
4162 ~l1f1.set(\dur, ~f1/~icd6);
4164 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (View(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (View(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
4166 ~z25.background = Color.green; ~z1.background = Color.green;
4167 ~z26.background = Color.white; ~z2.background = Color.white;
4168 ~z27.background = Color.white; ~z3.background = Color.white;
4169 ~z28.background = Color.white; ~z4.background = Color.white;
4170 ~z29.background = Color.white; ~z5.background = Color.white;
4171 ~z30.background = Color.white; ~z6.background = Color.white;
4172 ~z31.background = Color.white; ~z7.background = Color.white;
4173 ~z32.background = Color.white; ~z8.background = Color.white;
4174 ~z33.background = Color.white; ~z9.background = Color.white;
4175 ~z34.background = Color.white; ~z10.background = Color.white;
4176 ~z35.background = Color.white; ~z11.background = Color.white;
4177 ~z36.background = Color.white; ~z12.background = Color.white;
4180 if((~f2 >= ~freqmap.at(127)), {~freqmap.at(127)},
4181 {if((keycodeb.value == 1) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4182 ~freqmapval2 = ~f2.cpsmidi.round;
4184 {~l1a.isRunning == true}{
4185 ~l2a.set(\dur, ~f2 = ~freqmap.at(~freqmapval2 = ~freqmapval2.value+1));
4186 ~l2b.set(\dur, ~f2);
4187 ~l2c.set(\dur, ~f2/~icd3);
4188 ~l2d.set(\dur, ~f2/~icd3);
4189 ~l2e.set(\dur, ~f2/~icd6);
4190 ~l2f.set(\dur, ~f2/~icd6);
4192 {~l1a1.isRunning == true}{
4193 ~l2a1.set(\dur, ~f2 = ~freqmap.at(~freqmapval2 = ~freqmapval2.value+1));
4194 ~l2b1.set(\dur, ~f2);
4195 ~l2c1.set(\dur, ~f2/~icd3);
4196 ~l2d1.set(\dur, ~f2/~icd3);
4197 ~l2e1.set(\dur, ~f2/~icd6);
4198 ~l2f1.set(\dur, ~f2/~icd6);
4200 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (View(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (View(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
4201 ~z25.background = Color.white; ~z1.background = Color.white;
4202 ~z26.background = Color.green; ~z2.background = Color.green;
4203 ~z27.background = Color.white; ~z3.background = Color.white;
4204 ~z28.background = Color.white; ~z4.background = Color.white;
4205 ~z29.background = Color.white; ~z5.background = Color.white;
4206 ~z30.background = Color.white; ~z6.background = Color.white;
4207 ~z31.background = Color.white; ~z7.background = Color.white;
4208 ~z32.background = Color.white; ~z8.background = Color.white;
4209 ~z33.background = Color.white; ~z9.background = Color.white;
4210 ~z34.background = Color.white; ~z10.background = Color.white;
4211 ~z35.background = Color.white; ~z11.background = Color.white;
4212 ~z36.background = Color.white; ~z12.background = Color.white;
4214 if((~f2 <= ~freqmap.at(0)), {~freqmap.at(0)},
4215 {if((keycodeb.value == 1) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4216 ~freqmapval2 = ~f2.cpsmidi.round;
4218 {~l1a.isRunning == true}{
4219 ~l2a.set(\dur, ~f2 = ~freqmap.at(~freqmapval2 = ~freqmapval2.value-1));
4220 ~l2b.set(\dur, ~f2);
4221 ~l2c.set(\dur, ~f2/~icd3);
4222 ~l2d.set(\dur, ~f2/~icd3);
4223 ~l2e.set(\dur, ~f2/~icd6);
4224 ~l2f.set(\dur, ~f2/~icd6);
4226 {~l1a1.isRunning == true}{
4227 ~l2a1.set(\dur, ~f2 = ~freqmap.at(~freqmapval2 = ~freqmapval2.value-1));
4228 ~l2b1.set(\dur, ~f2);
4229 ~l2c1.set(\dur, ~f2/~icd3);
4230 ~l2d1.set(\dur, ~f2/~icd3);
4231 ~l2e1.set(\dur, ~f2/~icd6);
4232 ~l2f1.set(\dur, ~f2/~icd6);
4234 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (View(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (View(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
4236 ~z25.background = Color.white; ~z1.background = Color.white;
4237 ~z26.background = Color.green; ~z2.background = Color.green;
4238 ~z27.background = Color.white; ~z3.background = Color.white;
4239 ~z28.background = Color.white; ~z4.background = Color.white;
4240 ~z29.background = Color.white; ~z5.background = Color.white;
4241 ~z30.background = Color.white; ~z6.background = Color.white;
4242 ~z31.background = Color.white; ~z7.background = Color.white;
4243 ~z32.background = Color.white; ~z8.background = Color.white;
4244 ~z33.background = Color.white; ~z9.background = Color.white;
4245 ~z34.background = Color.white; ~z10.background = Color.white;
4246 ~z35.background = Color.white; ~z11.background = Color.white;
4247 ~z36.background = Color.white; ~z12.background = Color.white;
4250 if((~f3 >= ~freqmap.at(127)), {~freqmap.at(127)},
4251 {if((keycodeb.value == 2) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4252 ~freqmapval3 = ~f3.cpsmidi.round;
4254 {~l1a.isRunning == true}{
4255 ~l3a.set(\dur, ~f3 = ~freqmap.at(~freqmapval3 = ~freqmapval3.value+1));
4256 ~l3b.set(\dur, ~f3);
4257 ~l3c.set(\dur, ~f3/~icd3);
4258 ~l3d.set(\dur, ~f3/~icd3);
4259 ~l3e.set(\dur, ~f3/~icd6);
4260 ~l3f.set(\dur, ~f3/~icd6);
4262 {~l1a1.isRunning == true}{
4263 ~l3a1.set(\dur, ~f3 = ~freqmap.at(~freqmapval3 = ~freqmapval3.value+1));
4264 ~l3b1.set(\dur, ~f3);
4265 ~l3c1.set(\dur, ~f3/~icd3);
4266 ~l3d1.set(\dur, ~f3/~icd3);
4267 ~l3e1.set(\dur, ~f3/~icd6);
4268 ~l3f1.set(\dur, ~f3/~icd6);
4270 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (View(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (View(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
4271 ~z25.background = Color.white; ~z1.background = Color.white;
4272 ~z26.background = Color.white; ~z2.background = Color.white;
4273 ~z27.background = Color.green; ~z3.background = Color.green;
4274 ~z28.background = Color.white; ~z4.background = Color.white;
4275 ~z29.background = Color.white; ~z5.background = Color.white;
4276 ~z30.background = Color.white; ~z6.background = Color.white;
4277 ~z31.background = Color.white; ~z7.background = Color.white;
4278 ~z32.background = Color.white; ~z8.background = Color.white;
4279 ~z33.background = Color.white; ~z9.background = Color.white;
4280 ~z34.background = Color.white; ~z10.background = Color.white;
4281 ~z35.background = Color.white; ~z11.background = Color.white;
4282 ~z36.background = Color.white; ~z12.background = Color.white;
4284 if((~f3 <= ~freqmap.at(0)), {~freqmap.at(0)},
4285 {if((keycodeb.value == 2) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4286 ~freqmapval3 = ~f3.cpsmidi.round;
4288 {~l1a.isRunning == true}{
4289 ~l3a.set(\dur, ~f3 = ~freqmap.at(~freqmapval3 = ~freqmapval3.value-1));
4290 ~l3b.set(\dur, ~f3);
4291 ~l3c.set(\dur, ~f3/~icd3);
4292 ~l3d.set(\dur, ~f3/~icd3);
4293 ~l3e.set(\dur, ~f3/~icd6);
4294 ~l3f.set(\dur, ~f3/~icd6);
4296 {~l1a1.isRunning == true}{
4297 ~l3a1.set(\dur, ~f3 = ~freqmap.at(~freqmapval3 = ~freqmapval3.value-1));
4298 ~l3b1.set(\dur, ~f3);
4299 ~l3c1.set(\dur, ~f3/~icd3);
4300 ~l3d1.set(\dur, ~f3/~icd3);
4301 ~l3e1.set(\dur, ~f3/~icd6);
4302 ~l3f1.set(\dur, ~f3/~icd6);
4304 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (View(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (View(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
4306 ~z25.background = Color.white; ~z1.background = Color.white;
4307 ~z26.background = Color.white; ~z2.background = Color.white;
4308 ~z27.background = Color.green; ~z3.background = Color.green;
4309 ~z28.background = Color.white; ~z4.background = Color.white;
4310 ~z29.background = Color.white; ~z5.background = Color.white;
4311 ~z30.background = Color.white; ~z6.background = Color.white;
4312 ~z31.background = Color.white; ~z7.background = Color.white;
4313 ~z32.background = Color.white; ~z8.background = Color.white;
4314 ~z33.background = Color.white; ~z9.background = Color.white;
4315 ~z34.background = Color.white; ~z10.background = Color.white;
4316 ~z35.background = Color.white; ~z11.background = Color.white;
4317 ~z36.background = Color.white; ~z12.background = Color.white;
4320 if((~f4 >= ~freqmap.at(127)), {~freqmap.at(127)},
4321 {if((keycodeb.value == 3) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4322 ~freqmapval4 = ~f4.cpsmidi.round;
4324 {~l1a.isRunning == true}{
4325 ~l4a.set(\dur, ~f4 = ~freqmap.at(~freqmapval4 = ~freqmapval4.value+1));
4326 ~l4b.set(\dur, ~f4);
4327 ~l4c.set(\dur, ~f4/~icd3);
4328 ~l4d.set(\dur, ~f4/~icd3);
4329 ~l4e.set(\dur, ~f4/~icd6);
4330 ~l4f.set(\dur, ~f4/~icd6);
4332 {~l1a1.isRunning == true}{
4333 ~l4a1.set(\dur, ~f4 = ~freqmap.at(~freqmapval4 = ~freqmapval4.value+1));
4334 ~l4b1.set(\dur, ~f4);
4335 ~l4c1.set(\dur, ~f4/~icd3);
4336 ~l4d1.set(\dur, ~f4/~icd3);
4337 ~l4e1.set(\dur, ~f4/~icd6);
4338 ~l4f1.set(\dur, ~f4/~icd6);
4340 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (View(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (View(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
4341 ~z25.background = Color.white; ~z1.background = Color.white;
4342 ~z26.background = Color.white; ~z2.background = Color.white;
4343 ~z27.background = Color.white; ~z3.background = Color.white;
4344 ~z28.background = Color.green; ~z4.background = Color.green;
4345 ~z29.background = Color.white; ~z5.background = Color.white;
4346 ~z30.background = Color.white; ~z6.background = Color.white;
4347 ~z31.background = Color.white; ~z7.background = Color.white;
4348 ~z32.background = Color.white; ~z8.background = Color.white;
4349 ~z33.background = Color.white; ~z9.background = Color.white;
4350 ~z34.background = Color.white; ~z10.background = Color.white;
4351 ~z35.background = Color.white; ~z11.background = Color.white;
4352 ~z36.background = Color.white; ~z12.background = Color.white;
4354 if((~f4 <= ~freqmap.at(0)), {~freqmap.at(0)},
4355 {if((keycodeb.value == 3) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4356 ~freqmapval4 = ~f4.cpsmidi.round;
4358 {~l1a.isRunning == true}{
4359 ~l4a.set(\dur, ~f4 = ~freqmap.at(~freqmapval4 = ~freqmapval4.value-1));
4360 ~l4b.set(\dur, ~f4);
4361 ~l4c.set(\dur, ~f4/~icd3);
4362 ~l4d.set(\dur, ~f4/~icd3);
4363 ~l4e.set(\dur, ~f4/~icd6);
4364 ~l4f.set(\dur, ~f4/~icd6);
4366 {~l1a1.isRunning == true}{
4367 ~l4a1.set(\dur, ~f4 = ~freqmap.at(~freqmapval4 = ~freqmapval4.value-1));
4368 ~l4b1.set(\dur, ~f4);
4369 ~l4c1.set(\dur, ~f4/~icd3);
4370 ~l4d1.set(\dur, ~f4/~icd3);
4371 ~l4e1.set(\dur, ~f4/~icd6);
4372 ~l4f1.set(\dur, ~f4/~icd6);
4374 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (View(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (View(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
4376 ~z25.background = Color.white; ~z1.background = Color.white;
4377 ~z26.background = Color.white; ~z2.background = Color.white;
4378 ~z27.background = Color.white; ~z3.background = Color.white;
4379 ~z28.background = Color.green; ~z4.background = Color.green;
4380 ~z29.background = Color.white; ~z5.background = Color.white;
4381 ~z30.background = Color.white; ~z6.background = Color.white;
4382 ~z31.background = Color.white; ~z7.background = Color.white;
4383 ~z32.background = Color.white; ~z8.background = Color.white;
4384 ~z33.background = Color.white; ~z9.background = Color.white;
4385 ~z34.background = Color.white; ~z10.background = Color.white;
4386 ~z35.background = Color.white; ~z11.background = Color.white;
4387 ~z36.background = Color.white; ~z12.background = Color.white;
4390 if((~f5 >= ~freqmap.at(127)), {~freqmap.at(127)},
4391 {if((keycodeb.value == 4) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4392 ~freqmapval5 = ~f5.cpsmidi.round;
4394 {~l1a.isRunning == true}{
4395 ~l5a.set(\dur, ~f5 = ~freqmap.at(~freqmapval5 = ~freqmapval5.value+1));
4396 ~l5b.set(\dur, ~f5);
4397 ~l5c.set(\dur, ~f5/~icd3);
4398 ~l5d.set(\dur, ~f5/~icd3);
4399 ~l5e.set(\dur, ~f5/~icd6);
4400 ~l5f.set(\dur, ~f5/~icd6);
4402 {~l1a1.isRunning == true}{
4403 ~l5a1.set(\dur, ~f5 = ~freqmap.at(~freqmapval5 = ~freqmapval5.value+1));
4404 ~l5b1.set(\dur, ~f5);
4405 ~l5c1.set(\dur, ~f5/~icd3);
4406 ~l5d1.set(\dur, ~f5/~icd3);
4407 ~l5e1.set(\dur, ~f5/~icd6);
4408 ~l5f1.set(\dur, ~f5/~icd6);
4410 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (View(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (View(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
4411 ~z25.background = Color.white; ~z1.background = Color.white;
4412 ~z26.background = Color.white; ~z2.background = Color.white;
4413 ~z27.background = Color.white; ~z3.background = Color.white;
4414 ~z28.background = Color.white; ~z4.background = Color.white;
4415 ~z29.background = Color.green; ~z5.background = Color.green;
4416 ~z30.background = Color.white; ~z6.background = Color.white;
4417 ~z31.background = Color.white; ~z7.background = Color.white;
4418 ~z32.background = Color.white; ~z8.background = Color.white;
4419 ~z33.background = Color.white; ~z9.background = Color.white;
4420 ~z34.background = Color.white; ~z10.background = Color.white;
4421 ~z35.background = Color.white; ~z11.background = Color.white;
4422 ~z36.background = Color.white; ~z12.background = Color.white;
4424 if((~f5 <= ~freqmap.at(0)), {~freqmap.at(0)},
4425 {if((keycodeb.value == 4) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4426 ~freqmapval5 = ~f5.cpsmidi.round;
4428 {~l1a.isRunning == true}{
4429 ~l5a.set(\dur, ~f5 = ~freqmap.at(~freqmapval5 = ~freqmapval5.value-1));
4430 ~l5b.set(\dur, ~f5);
4431 ~l5c.set(\dur, ~f5/~icd3);
4432 ~l5d.set(\dur, ~f5/~icd3);
4433 ~l5e.set(\dur, ~f5/~icd6);
4434 ~l5f.set(\dur, ~f5/~icd6);
4436 {~l1a1.isRunning == true}{
4437 ~l5a1.set(\dur, ~f5 = ~freqmap.at(~freqmapval5 = ~freqmapval5.value-1));
4438 ~l5b1.set(\dur, ~f5);
4439 ~l5c1.set(\dur, ~f5/~icd3);
4440 ~l5d1.set(\dur, ~f5/~icd3);
4441 ~l5e1.set(\dur, ~f5/~icd6);
4442 ~l5f1.set(\dur, ~f5/~icd6);
4444 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (View(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (View(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
4446 ~z25.background = Color.white; ~z1.background = Color.white;
4447 ~z26.background = Color.white; ~z2.background = Color.white;
4448 ~z27.background = Color.white; ~z3.background = Color.white;
4449 ~z28.background = Color.white; ~z4.background = Color.white;
4450 ~z29.background = Color.green; ~z5.background = Color.green;
4451 ~z30.background = Color.white; ~z6.background = Color.white;
4452 ~z31.background = Color.white; ~z7.background = Color.white;
4453 ~z32.background = Color.white; ~z8.background = Color.white;
4454 ~z33.background = Color.white; ~z9.background = Color.white;
4455 ~z34.background = Color.white; ~z10.background = Color.white;
4456 ~z35.background = Color.white; ~z11.background = Color.white;
4457 ~z36.background = Color.white; ~z12.background = Color.white;
4460 if((~f6 >= ~freqmap.at(127)), {~freqmap.at(127)},
4461 {if((keycodeb.value == 5) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4462 ~freqmapval6 = ~f6.cpsmidi.round;
4464 {~l1a.isRunning == true}{
4465 ~l6a.set(\dur, ~f6 = ~freqmap.at(~freqmapval6 = ~freqmapval6.value+1));
4466 ~l6b.set(\dur, ~f6);
4467 ~l6c.set(\dur, ~f6/~icd3);
4468 ~l6d.set(\dur, ~f6/~icd3);
4469 ~l6e.set(\dur, ~f6/~icd6);
4470 ~l6f.set(\dur, ~f6/~icd6);
4472 {~l1a1.isRunning == true}{
4473 ~l6a1.set(\dur, ~f6 = ~freqmap.at(~freqmapval6 = ~freqmapval6.value+1));
4474 ~l6b1.set(\dur, ~f6);
4475 ~l6c1.set(\dur, ~f6/~icd3);
4476 ~l6d1.set(\dur, ~f6/~icd3);
4477 ~l6e1.set(\dur, ~f6/~icd6);
4478 ~l6f1.set(\dur, ~f6/~icd6);
4480 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (View(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (View(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
4481 ~z25.background = Color.white; ~z1.background = Color.white;
4482 ~z26.background = Color.white; ~z2.background = Color.white;
4483 ~z27.background = Color.white; ~z3.background = Color.white;
4484 ~z28.background = Color.white; ~z4.background = Color.white;
4485 ~z29.background = Color.white; ~z5.background = Color.white;
4486 ~z30.background = Color.green; ~z6.background = Color.green;
4487 ~z31.background = Color.white; ~z7.background = Color.white;
4488 ~z32.background = Color.white; ~z8.background = Color.white;
4489 ~z33.background = Color.white; ~z9.background = Color.white;
4490 ~z34.background = Color.white; ~z10.background = Color.white;
4491 ~z35.background = Color.white; ~z11.background = Color.white;
4492 ~z36.background = Color.white; ~z12.background = Color.white;
4494 if((~f6 <= ~freqmap.at(0)), {~freqmap.at(0)},
4495 {if((keycodeb.value == 5) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4496 ~freqmapval6 = ~f6.cpsmidi.round;
4498 {~l1a.isRunning == true}{
4499 ~l6a.set(\dur, ~f6 = ~freqmap.at(~freqmapval6 = ~freqmapval6.value-1));
4500 ~l6b.set(\dur, ~f6);
4501 ~l6c.set(\dur, ~f6/~icd3);
4502 ~l6d.set(\dur, ~f6/~icd3);
4503 ~l6e.set(\dur, ~f6/~icd6);
4504 ~l6f.set(\dur, ~f6/~icd6);
4506 {~l1a1.isRunning == true}{
4507 ~l6a1.set(\dur, ~f6 = ~freqmap.at(~freqmapval6 = ~freqmapval6.value-1));
4508 ~l6b1.set(\dur, ~f6);
4509 ~l6c1.set(\dur, ~f6/~icd3);
4510 ~l6d1.set(\dur, ~f6/~icd3);
4511 ~l6e1.set(\dur, ~f6/~icd6);
4512 ~l6f1.set(\dur, ~f6/~icd6);
4514 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (View(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (View(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
4516 ~z25.background = Color.white; ~z1.background = Color.white;
4517 ~z26.background = Color.white; ~z2.background = Color.white;
4518 ~z27.background = Color.white; ~z3.background = Color.white;
4519 ~z28.background = Color.white; ~z4.background = Color.white;
4520 ~z29.background = Color.white; ~z5.background = Color.white;
4521 ~z30.background = Color.green; ~z6.background = Color.green;
4522 ~z31.background = Color.white; ~z7.background = Color.white;
4523 ~z32.background = Color.white; ~z8.background = Color.white;
4524 ~z33.background = Color.white; ~z9.background = Color.white;
4525 ~z34.background = Color.white; ~z10.background = Color.white;
4526 ~z35.background = Color.white; ~z11.background = Color.white;
4527 ~z36.background = Color.white; ~z12.background = Color.white;
4530 if((~f7 >= ~freqmap.at(127)), {~freqmap.at(127)},
4531 {if((keycodeb.value == 6) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4532 ~freqmapval7 = ~f7.cpsmidi.round;
4534 {~l1a.isRunning == true}{
4535 ~l7a.set(\dur, ~f7 = ~freqmap.at(~freqmapval7 = ~freqmapval7.value+1));
4536 ~l7b.set(\dur, ~f7);
4537 ~l7c.set(\dur, ~f7/~icd3);
4538 ~l7d.set(\dur, ~f7/~icd3);
4539 ~l7e.set(\dur, ~f7/~icd6);
4540 ~l7f.set(\dur, ~f7/~icd6);
4542 {~l1a1.isRunning == true}{
4543 ~l7a1.set(\dur, ~f7 = ~freqmap.at(~freqmapval7 = ~freqmapval7.value+1));
4544 ~l7b1.set(\dur, ~f7);
4545 ~l7c1.set(\dur, ~f7/~icd3);
4546 ~l7d1.set(\dur, ~f7/~icd3);
4547 ~l7e1.set(\dur, ~f7/~icd6);
4548 ~l7f1.set(\dur, ~f7/~icd6);
4550 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (View(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (View(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
4551 ~z25.background = Color.white; ~z1.background = Color.white;
4552 ~z26.background = Color.white; ~z2.background = Color.white;
4553 ~z27.background = Color.white; ~z3.background = Color.white;
4554 ~z28.background = Color.white; ~z4.background = Color.white;
4555 ~z29.background = Color.white; ~z5.background = Color.white;
4556 ~z30.background = Color.white; ~z6.background = Color.white;
4557 ~z31.background = Color.green; ~z7.background = Color.green;
4558 ~z32.background = Color.white; ~z8.background = Color.white;
4559 ~z33.background = Color.white; ~z9.background = Color.white;
4560 ~z34.background = Color.white; ~z10.background = Color.white;
4561 ~z35.background = Color.white; ~z11.background = Color.white;
4562 ~z36.background = Color.white; ~z12.background = Color.white;
4564 if((~f7 <= ~freqmap.at(0)), {~freqmap.at(0)},
4565 {if((keycodeb.value == 6) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4566 ~freqmapval7 = ~f7.cpsmidi.round;
4568 {~l1a.isRunning == true}{
4569 ~l7a.set(\dur, ~f7 = ~freqmap.at(~freqmapval7 = ~freqmapval7.value-1));
4570 ~l7b.set(\dur, ~f7);
4571 ~l7c.set(\dur, ~f7/~icd3);
4572 ~l7d.set(\dur, ~f7/~icd3);
4573 ~l7e.set(\dur, ~f7/~icd6);
4574 ~l7f.set(\dur, ~f7/~icd6);
4576 {~l1a1.isRunning == true}{
4577 ~l7a1.set(\dur, ~f7 = ~freqmap.at(~freqmapval7 = ~freqmapval7.value-1));
4578 ~l7b1.set(\dur, ~f7);
4579 ~l7c1.set(\dur, ~f7/~icd3);
4580 ~l7d1.set(\dur, ~f7/~icd3);
4581 ~l7e1.set(\dur, ~f7/~icd6);
4582 ~l7f1.set(\dur, ~f7/~icd6);
4584 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (View(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (View(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
4586 ~z25.background = Color.white; ~z1.background = Color.white;
4587 ~z26.background = Color.white; ~z2.background = Color.white;
4588 ~z27.background = Color.white; ~z3.background = Color.white;
4589 ~z28.background = Color.white; ~z4.background = Color.white;
4590 ~z29.background = Color.white; ~z5.background = Color.white;
4591 ~z30.background = Color.white; ~z6.background = Color.white;
4592 ~z31.background = Color.green; ~z7.background = Color.green;
4593 ~z32.background = Color.white; ~z8.background = Color.white;
4594 ~z33.background = Color.white; ~z9.background = Color.white;
4595 ~z34.background = Color.white; ~z10.background = Color.white;
4596 ~z35.background = Color.white; ~z11.background = Color.white;
4597 ~z36.background = Color.white; ~z12.background = Color.white;
4600 if((~f8 >= ~freqmap.at(127)), {~freqmap.at(127)},
4601 {if((keycodeb.value == 7) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4602 ~freqmapval8 = ~f8.cpsmidi.round;
4604 {~l1a.isRunning == true}{
4605 ~l8a.set(\dur, ~f8 = ~freqmap.at(~freqmapval8 = ~freqmapval8.value+1));
4606 ~l8b.set(\dur, ~f8);
4607 ~l8c.set(\dur, ~f8/~icd3);
4608 ~l8d.set(\dur, ~f8/~icd3);
4609 ~l8e.set(\dur, ~f8/~icd6);
4610 ~l8f.set(\dur, ~f8/~icd6);
4612 {~l1a1.isRunning == true}{
4613 ~l8a1.set(\dur, ~f8 = ~freqmap.at(~freqmapval8 = ~freqmapval8.value+1));
4614 ~l8b1.set(\dur, ~f8);
4615 ~l8c1.set(\dur, ~f8/~icd3);
4616 ~l8d1.set(\dur, ~f8/~icd3);
4617 ~l8e1.set(\dur, ~f8/~icd6);
4618 ~l8f1.set(\dur, ~f8/~icd6);
4620 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (View(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (View(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
4621 ~z25.background = Color.white; ~z1.background = Color.white;
4622 ~z26.background = Color.white; ~z2.background = Color.white;
4623 ~z27.background = Color.white; ~z3.background = Color.white;
4624 ~z28.background = Color.white; ~z4.background = Color.white;
4625 ~z29.background = Color.white; ~z5.background = Color.white;
4626 ~z30.background = Color.white; ~z6.background = Color.white;
4627 ~z31.background = Color.white; ~z7.background = Color.white;
4628 ~z32.background = Color.green; ~z8.background = Color.green;
4629 ~z33.background = Color.white; ~z9.background = Color.white;
4630 ~z34.background = Color.white; ~z10.background = Color.white;
4631 ~z35.background = Color.white; ~z11.background = Color.white;
4632 ~z36.background = Color.white; ~z12.background = Color.white;
4634 if((~f8 <= ~freqmap.at(0)), {~freqmap.at(0)},
4635 {if((keycodeb.value == 7) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4636 ~freqmapval8 = ~f8.cpsmidi.round;
4638 {~l1a.isRunning == true}{
4639 ~l8a.set(\dur, ~f8 = ~freqmap.at(~freqmapval8 = ~freqmapval8.value-1));
4640 ~l8b.set(\dur, ~f8);
4641 ~l8c.set(\dur, ~f8/~icd3);
4642 ~l8d.set(\dur, ~f8/~icd3);
4643 ~l8e.set(\dur, ~f8/~icd6);
4644 ~l8f.set(\dur, ~f8/~icd6);
4646 {~l1a1.isRunning == true}{
4647 ~l8a1.set(\dur, ~f8 = ~freqmap.at(~freqmapval8 = ~freqmapval8.value-1));
4648 ~l8b1.set(\dur, ~f8);
4649 ~l8c1.set(\dur, ~f8/~icd3);
4650 ~l8d1.set(\dur, ~f8/~icd3);
4651 ~l8e1.set(\dur, ~f8/~icd6);
4652 ~l8f1.set(\dur, ~f8/~icd6);
4654 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (View(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (View(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
4656 ~z25.background = Color.white; ~z1.background = Color.white;
4657 ~z26.background = Color.white; ~z2.background = Color.white;
4658 ~z27.background = Color.white; ~z3.background = Color.white;
4659 ~z28.background = Color.white; ~z4.background = Color.white;
4660 ~z29.background = Color.white; ~z5.background = Color.white;
4661 ~z30.background = Color.white; ~z6.background = Color.white;
4662 ~z31.background = Color.white; ~z7.background = Color.white;
4663 ~z32.background = Color.green; ~z8.background = Color.green;
4664 ~z33.background = Color.white; ~z9.background = Color.white;
4665 ~z34.background = Color.white; ~z10.background = Color.white;
4666 ~z35.background = Color.white; ~z11.background = Color.white;
4667 ~z36.background = Color.white; ~z12.background = Color.white;
4670 if((~f9 >= ~freqmap.at(127)), {~freqmap.at(127)},
4671 {if((keycodeb.value == 8) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4672 ~freqmapval9 = ~f9.cpsmidi.round;
4674 {~l1a.isRunning == true}{
4675 ~l9a.set(\dur, ~f9 = ~freqmap.at(~freqmapval9 = ~freqmapval9.value+1));
4676 ~l9b.set(\dur, ~f9);
4677 ~l9c.set(\dur, ~f9/~icd3);
4678 ~l9d.set(\dur, ~f9/~icd3);
4679 ~l9e.set(\dur, ~f9/~icd6);
4680 ~l9f.set(\dur, ~f9/~icd6);
4682 {~l1a1.isRunning == true}{
4683 ~l9a1.set(\dur, ~f9 = ~freqmap.at(~freqmapval9 = ~freqmapval9.value+1));
4684 ~l9b1.set(\dur, ~f9);
4685 ~l9c1.set(\dur, ~f9/~icd3);
4686 ~l9d1.set(\dur, ~f9/~icd3);
4687 ~l9e1.set(\dur, ~f9/~icd6);
4688 ~l9f1.set(\dur, ~f9/~icd6);
4690 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (View(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (View(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
4691 ~z25.background = Color.white; ~z1.background = Color.white;
4692 ~z26.background = Color.white; ~z2.background = Color.white;
4693 ~z27.background = Color.white; ~z3.background = Color.white;
4694 ~z28.background = Color.white; ~z4.background = Color.white;
4695 ~z29.background = Color.white; ~z5.background = Color.white;
4696 ~z30.background = Color.white; ~z6.background = Color.white;
4697 ~z31.background = Color.white; ~z7.background = Color.white;
4698 ~z32.background = Color.white; ~z8.background = Color.white;
4699 ~z33.background = Color.green; ~z9.background = Color.green;
4700 ~z34.background = Color.white; ~z10.background = Color.white;
4701 ~z35.background = Color.white; ~z11.background = Color.white;
4702 ~z36.background = Color.white; ~z12.background = Color.white;
4704 if((~f9 <= ~freqmap.at(0)), {~freqmap.at(0)},
4705 {if((keycodeb.value == 8) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4706 ~freqmapval9 = ~f9.cpsmidi.round;
4708 {~l1a.isRunning == true}{
4709 ~l9a.set(\dur, ~f9 = ~freqmap.at(~freqmapval9 = ~freqmapval9.value-1));
4710 ~l9b.set(\dur, ~f9);
4711 ~l9c.set(\dur, ~f9/~icd3);
4712 ~l9d.set(\dur, ~f9/~icd3);
4713 ~l9e.set(\dur, ~f9/~icd6);
4714 ~l9f.set(\dur, ~f9/~icd6);
4716 {~l1a1.isRunning == true}{
4717 ~l9a1.set(\dur, ~f9 = ~freqmap.at(~freqmapval9 = ~freqmapval9.value-1));
4718 ~l9b1.set(\dur, ~f9);
4719 ~l9c1.set(\dur, ~f9/~icd3);
4720 ~l9d1.set(\dur, ~f9/~icd3);
4721 ~l9e1.set(\dur, ~f9/~icd6);
4722 ~l9f1.set(\dur, ~f9/~icd6);
4724 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (View(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (View(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
4726 ~z25.background = Color.white; ~z1.background = Color.white;
4727 ~z26.background = Color.white; ~z2.background = Color.white;
4728 ~z27.background = Color.white; ~z3.background = Color.white;
4729 ~z28.background = Color.white; ~z4.background = Color.white;
4730 ~z29.background = Color.white; ~z5.background = Color.white;
4731 ~z30.background = Color.white; ~z6.background = Color.white;
4732 ~z31.background = Color.white; ~z7.background = Color.white;
4733 ~z32.background = Color.white; ~z8.background = Color.white;
4734 ~z33.background = Color.green; ~z9.background = Color.green;
4735 ~z34.background = Color.white; ~z10.background = Color.white;
4736 ~z35.background = Color.white; ~z11.background = Color.white;
4737 ~z36.background = Color.white; ~z12.background = Color.white;
4740 if((~f10 >= ~freqmap.at(127)), {~freqmap.at(127)},
4741 {if((keycodeb.value == 9) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4742 ~freqmapval10 = ~f10.cpsmidi.round;
4744 {~l1a.isRunning == true}{
4745 ~l10a.set(\dur, ~f10 = ~freqmap.at(~freqmapval10 = ~freqmapval10.value+1));
4746 ~l10b.set(\dur, ~f10);
4747 ~l10c.set(\dur, ~f10/~icd3);
4748 ~l10d.set(\dur, ~f10/~icd3);
4749 ~l10e.set(\dur, ~f10/~icd6);
4750 ~l10f.set(\dur, ~f10/~icd6);
4752 {~l1a1.isRunning == true}{
4753 ~l10a1.set(\dur, ~f10 = ~freqmap.at(~freqmapval10 = ~freqmapval10.value+1));
4754 ~l10b1.set(\dur, ~f10);
4755 ~l10c1.set(\dur, ~f10/~icd3);
4756 ~l10d1.set(\dur, ~f10/~icd3);
4757 ~l10e1.set(\dur, ~f10/~icd6);
4758 ~l10f1.set(\dur, ~f10/~icd6);
4760 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (View(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (View(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
4761 ~z25.background = Color.white; ~z1.background = Color.white;
4762 ~z26.background = Color.white; ~z2.background = Color.white;
4763 ~z27.background = Color.white; ~z3.background = Color.white;
4764 ~z28.background = Color.white; ~z4.background = Color.white;
4765 ~z29.background = Color.white; ~z5.background = Color.white;
4766 ~z30.background = Color.white; ~z6.background = Color.white;
4767 ~z31.background = Color.white; ~z7.background = Color.white;
4768 ~z32.background = Color.white; ~z8.background = Color.white;
4769 ~z33.background = Color.white; ~z9.background = Color.white;
4770 ~z34.background = Color.green; ~z10.background = Color.green;
4771 ~z35.background = Color.white; ~z11.background = Color.white;
4772 ~z36.background = Color.white; ~z12.background = Color.white;
4774 if((~f10 <= ~freqmap.at(0)), {~freqmap.at(0)},
4775 {if((keycodeb.value == 9) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4776 ~freqmapval10 = ~f10.cpsmidi.round;
4778 {~l1a.isRunning == true}{
4779 ~l10a.set(\dur, ~f10 = ~freqmap.at(~freqmapval10 = ~freqmapval10.value-1));
4780 ~l10b.set(\dur, ~f10);
4781 ~l10c.set(\dur, ~f10/~icd3);
4782 ~l10d.set(\dur, ~f10/~icd3);
4783 ~l10e.set(\dur, ~f10/~icd6);
4784 ~l10f.set(\dur, ~f10/~icd6);
4786 {~l1a1.isRunning == true}{
4787 ~l10a1.set(\dur, ~f10 = ~freqmap.at(~freqmapval10 = ~freqmapval10.value-1));
4788 ~l10b1.set(\dur, ~f10);
4789 ~l10c1.set(\dur, ~f10/~icd3);
4790 ~l10d1.set(\dur, ~f10/~icd3);
4791 ~l10e1.set(\dur, ~f10/~icd6);
4792 ~l10f1.set(\dur, ~f10/~icd6);
4794 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (View(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (View(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
4796 ~z25.background = Color.white; ~z1.background = Color.white;
4797 ~z26.background = Color.white; ~z2.background = Color.white;
4798 ~z27.background = Color.white; ~z3.background = Color.white;
4799 ~z28.background = Color.white; ~z4.background = Color.white;
4800 ~z29.background = Color.white; ~z5.background = Color.white;
4801 ~z30.background = Color.white; ~z6.background = Color.white;
4802 ~z31.background = Color.white; ~z7.background = Color.white;
4803 ~z32.background = Color.white; ~z8.background = Color.white;
4804 ~z33.background = Color.white; ~z9.background = Color.white;
4805 ~z34.background = Color.green; ~z10.background = Color.green;
4806 ~z35.background = Color.white; ~z11.background = Color.white;
4807 ~z36.background = Color.white; ~z12.background = Color.white;
4810 if((~f11 >= ~freqmap.at(127)), {~freqmap.at(127)},
4811 {if((keycodeb.value == 10) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4812 ~freqmapval11 = ~f11.cpsmidi.round;
4814 {~l1a.isRunning == true}{
4815 ~l11a.set(\dur, ~f11 = ~freqmap.at(~freqmapval11 = ~freqmapval11.value+1));
4816 ~l11b.set(\dur, ~f11);
4817 ~l11c.set(\dur, ~f11/~icd3);
4818 ~l11d.set(\dur, ~f11/~icd3);
4819 ~l11e.set(\dur, ~f11/~icd6);
4820 ~l11f.set(\dur, ~f11/~icd6);
4822 {~l1a1.isRunning == true}{
4823 ~l11a1.set(\dur, ~f11 = ~freqmap.at(~freqmapval11 = ~freqmapval11.value+1));
4824 ~l11b1.set(\dur, ~f11);
4825 ~l11c1.set(\dur, ~f11/~icd3);
4826 ~l11d1.set(\dur, ~f11/~icd3);
4827 ~l11e1.set(\dur, ~f11/~icd6);
4828 ~l11f1.set(\dur, ~f11/~icd6);
4830 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (View(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (View(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
4831 ~z25.background = Color.white; ~z1.background = Color.white;
4832 ~z26.background = Color.white; ~z2.background = Color.white;
4833 ~z27.background = Color.white; ~z3.background = Color.white;
4834 ~z28.background = Color.white; ~z4.background = Color.white;
4835 ~z29.background = Color.white; ~z5.background = Color.white;
4836 ~z30.background = Color.white; ~z6.background = Color.white;
4837 ~z31.background = Color.white; ~z7.background = Color.white;
4838 ~z32.background = Color.white; ~z8.background = Color.white;
4839 ~z33.background = Color.white; ~z9.background = Color.white;
4840 ~z34.background = Color.white; ~z10.background = Color.white;
4841 ~z35.background = Color.green; ~z11.background = Color.green;
4842 ~z36.background = Color.white; ~z12.background = Color.white;
4844 if((~f11 <= ~freqmap.at(0)), {~freqmap.at(0)},
4845 {if((keycodeb.value == 10) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4846 ~freqmapval11 = ~f11.cpsmidi.round;
4848 {~l1a.isRunning == true}{
4849 ~l11a.set(\dur, ~f11 = ~freqmap.at(~freqmapval11 = ~freqmapval11.value-1));
4850 ~l11b.set(\dur, ~f11);
4851 ~l11c.set(\dur, ~f11/~icd3);
4852 ~l11d.set(\dur, ~f11/~icd3);
4853 ~l11e.set(\dur, ~f11/~icd6);
4854 ~l11f.set(\dur, ~f11/~icd6);
4856 {~l1a1.isRunning == true}{
4857 ~l11a1.set(\dur, ~f11 = ~freqmap.at(~freqmapval11 = ~freqmapval11.value-1));
4858 ~l11b1.set(\dur, ~f11);
4859 ~l11c1.set(\dur, ~f11/~icd3);
4860 ~l11d1.set(\dur, ~f11/~icd3);
4861 ~l11e1.set(\dur, ~f11/~icd6);
4862 ~l11f1.set(\dur, ~f11/~icd6);
4864 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (View(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (View(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
4866 ~z25.background = Color.white; ~z1.background = Color.white;
4867 ~z26.background = Color.white; ~z2.background = Color.white;
4868 ~z27.background = Color.white; ~z3.background = Color.white;
4869 ~z28.background = Color.white; ~z4.background = Color.white;
4870 ~z29.background = Color.white; ~z5.background = Color.white;
4871 ~z30.background = Color.white; ~z6.background = Color.white;
4872 ~z31.background = Color.white; ~z7.background = Color.white;
4873 ~z32.background = Color.white; ~z8.background = Color.white;
4874 ~z33.background = Color.white; ~z9.background = Color.white;
4875 ~z34.background = Color.white; ~z10.background = Color.white;
4876 ~z35.background = Color.green; ~z11.background = Color.green;
4877 ~z36.background = Color.white; ~z12.background = Color.white;
4880 if((~f12 >= ~freqmap.at(127)), {~freqmap.at(127)},
4881 {if((keycodeb.value == 11) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4882 ~freqmapval12 = ~f12.cpsmidi.round;
4884 {~l1a.isRunning == true}{
4885 ~l12a.set(\dur, ~f12 = ~freqmap.at(~freqmapval12 = ~freqmapval12.value+1));
4886 ~l12b.set(\dur, ~f12);
4887 ~l12c.set(\dur, ~f12/~icd3);
4888 ~l12d.set(\dur, ~f12/~icd3);
4889 ~l12e.set(\dur, ~f12/~icd6);
4890 ~l12f.set(\dur, ~f12/~icd6);
4892 {~l1a1.isRunning == true}{
4893 ~l12a1.set(\dur, ~f12 = ~freqmap.at(~freqmapval12 = ~freqmapval12.value+1));
4894 ~l12b1.set(\dur, ~f12);
4895 ~l12c1.set(\dur, ~f12/~icd3);
4896 ~l12d1.set(\dur, ~f12/~icd3);
4897 ~l12e1.set(\dur, ~f12/~icd6);
4898 ~l12f1.set(\dur, ~f12/~icd6);
4900 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (View(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (View(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
4901 ~z25.background = Color.white; ~z1.background = Color.white;
4902 ~z26.background = Color.white; ~z2.background = Color.white;
4903 ~z27.background = Color.white; ~z3.background = Color.white;
4904 ~z28.background = Color.white; ~z4.background = Color.white;
4905 ~z29.background = Color.white; ~z5.background = Color.white;
4906 ~z30.background = Color.white; ~z6.background = Color.white;
4907 ~z31.background = Color.white; ~z7.background = Color.white;
4908 ~z32.background = Color.white; ~z8.background = Color.white;
4909 ~z33.background = Color.white; ~z9.background = Color.white;
4910 ~z34.background = Color.white; ~z10.background = Color.white;
4911 ~z35.background = Color.white; ~z11.background = Color.white;
4912 ~z36.background = Color.green; ~z12.background = Color.green;
4914 if((~f12 <= ~freqmap.at(0)), {~freqmap.at(0)},
4915 {if((keycodeb.value == 11) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4916 ~freqmapval12 = ~f12.cpsmidi.round;
4918 {~l1a.isRunning == true}{
4919 ~l12a.set(\dur, ~f12 = ~freqmap.at(~freqmapval12 = ~freqmapval12.value-1));
4920 ~l12b.set(\dur, ~f12);
4921 ~l12c.set(\dur, ~f12/~icd3);
4922 ~l12d.set(\dur, ~f12/~icd3);
4923 ~l12e.set(\dur, ~f12/~icd6);
4924 ~l12f.set(\dur, ~f12/~icd6);
4926 {~l1a1.isRunning == true}{
4927 ~l12a1.set(\dur, ~f12 = ~freqmap.at(~freqmapval12 = ~freqmapval12.value-1));
4928 ~l12b1.set(\dur, ~f12);
4929 ~l12c1.set(\dur, ~f12/~icd3);
4930 ~l12d1.set(\dur, ~f12/~icd3);
4931 ~l12e1.set(\dur, ~f12/~icd6);
4932 ~l12f1.set(\dur, ~f12/~icd6);
4934 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (View(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (View(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
4936 ~z25.background = Color.white; ~z1.background = Color.white;
4937 ~z26.background = Color.white; ~z2.background = Color.white;
4938 ~z27.background = Color.white; ~z3.background = Color.white;
4939 ~z28.background = Color.white; ~z4.background = Color.white;
4940 ~z29.background = Color.white; ~z5.background = Color.white;
4941 ~z30.background = Color.white; ~z6.background = Color.white;
4942 ~z31.background = Color.white; ~z7.background = Color.white;
4943 ~z32.background = Color.white; ~z8.background = Color.white;
4944 ~z33.background = Color.white; ~z9.background = Color.white;
4945 ~z34.background = Color.white; ~z10.background = Color.white;
4946 ~z35.background = Color.white; ~z11.background = Color.white;
4947 ~z36.background = Color.green; ~z12.background = Color.green;
4955 //if routine function values are nil
4957 if(~rslot1a == nil, {~rslot1a = ~bplaceo1;}); if(~rslot1b == nil, {~rslot1b = ~bplacef1;});
4958 if(~rslot2 == nil, {~rslot2 = ~bplacef2;});
4959 if(~rslot3 == nil, {~rslot3 = ~bplacef3;});
4960 if(~rslot4 == nil, {~rslot4 = ~bplacef4;});
4961 if(~rslot5 == nil, {~rslot5 = ~bplacef5;});
4962 if(~rslot6 == nil, {~rslot6 = ~bplacef6;});
4963 if(~rslot7 == nil, {~rslot7 = ~bplacef7;});
4964 if(~rslot8 == nil, {~rslot8 = ~bplacef8;});
4965 if(~rtimeall == nil, {~rtimeall = 4;});
4966 if(~rtime1 == nil, {~rtime1 = 4;});
4967 if(~rtime2 == nil, {~rtime2 = 4;});
4968 if(~rtime3 == nil, {~rtime3 = 4;});
4969 if(~rtime4 == nil, {~rtime4 = 4;});
4970 if(~rtime5 == nil, {~rtime5 = 4;});
4971 if(~rtime6 == nil, {~rtime6 = 4;});
4972 if(~rtime7 == nil, {~rtime7 = 4;});
4973 if(~rtime8 == nil, {~rtime8 = 4;});
4974 if(~rdoall == nil, {~rdoall = 1;});
4975 if(~rdo1a == nil, {~rdo1a = "o1";}); if(~rdo1b == nil, {~rdo1b = "f1";});
4976 if(~rdo2 == nil, {~rdo2 = "f2";});
4977 if(~rdo3 == nil, {~rdo3 = "f3";});
4978 if(~rdo4 == nil, {~rdo4 = "f4";});
4979 if(~rdo5 == nil, {~rdo5 = "f5";});
4980 if(~rdo6 == nil, {~rdo6 = "f6";});
4981 if(~rdo7 == nil, {~rdo7 = "f7";});
4982 if(~rdo8 == nil, {~rdo8 = "f8";});
4985 //misc. routine button functions (see below)
4988 if(~si1a.value == "o1", {~rslot1a = ~bplaceo1; ~rdo1a = ~si1a.value;});
4989 if(~si1a.value == "f1", {~rslot1a = ~bplacef1; ~rdo1a = ~si1a.value;});
4990 if(~si1a.value == "s1", {~rslot1a = ~bplaces1; ~rdo1a = ~si1a.value;});
4991 if(~si1a.value == "o2", {~rslot1a = ~bplaceo2; ~rdo1a = ~si1a.value;});
4992 if(~si1a.value == "f2", {~rslot1a = ~bplacef2; ~rdo1a = ~si1a.value;});
4993 if(~si1a.value == "s2", {~rslot1a = ~bplaces2; ~rdo1a = ~si1a.value;});
4994 if(~si1a.value == "o3", {~rslot1a = ~bplaceo3; ~rdo1a = ~si1a.value;});
4995 if(~si1a.value == "f3", {~rslot1a = ~bplacef3; ~rdo1a = ~si1a.value;});
4996 if(~si1a.value == "s3", {~rslot1a = ~bplaces3; ~rdo1a = ~si1a.value;});
4997 if(~si1a.value == "o4", {~rslot1a = ~bplaceo4; ~rdo1a = ~si1a.value;});
4998 if(~si1a.value == "f4", {~rslot1a = ~bplacef4; ~rdo1a = ~si1a.value;});
4999 if(~si1a.value == "s4", {~rslot1a = ~bplaces4; ~rdo1a = ~si1a.value;});
5000 if(~si1a.value == "o5", {~rslot1a = ~bplaceo5; ~rdo1a = ~si1a.value;});
5001 if(~si1a.value == "f5", {~rslot1a = ~bplacef5; ~rdo1a = ~si1a.value;});
5002 if(~si1a.value == "s5", {~rslot1a = ~bplaces5; ~rdo1a = ~si1a.value;});
5003 if(~si1a.value == "o6", {~rslot1a = ~bplaceo6; ~rdo1a = ~si1a.value;});
5004 if(~si1a.value == "f6", {~rslot1a = ~bplacef6; ~rdo1a = ~si1a.value;});
5005 if(~si1a.value == "s6", {~rslot1a = ~bplaces6; ~rdo1a = ~si1a.value;});
5006 if(~si1a.value == "o7", {~rslot1a = ~bplaceo7; ~rdo1a = ~si1a.value;});
5007 if(~si1a.value == "f7", {~rslot1a = ~bplacef7; ~rdo1a = ~si1a.value;});
5008 if(~si1a.value == "s7", {~rslot1a = ~bplaces7; ~rdo1a = ~si1a.value;});
5009 if(~si1a.value == "o8", {~rslot1a = ~bplaceo8; ~rdo1a = ~si1a.value;});
5010 if(~si1a.value == "f8", {~rslot1a = ~bplacef8; ~rdo1a = ~si1a.value;});
5011 if(~si1a.value == "s8", {~rslot1a = ~bplaces8; ~rdo1a = ~si1a.value;});
5014 if(~si1b.value == "o1", {~rslot1b = ~bplaceo1; ~rdo1b = ~si1b.value;});
5015 if(~si1b.value == "f1", {~rslot1b = ~bplacef1; ~rdo1b = ~si1b.value;});
5016 if(~si1b.value == "s1", {~rslot1b = ~bplaces1; ~rdo1b = ~si1b.value;});
5017 if(~si1b.value == "o2", {~rslot1b = ~bplaceo2; ~rdo1b = ~si1b.value;});
5018 if(~si1b.value == "f2", {~rslot1b = ~bplacef2; ~rdo1b = ~si1b.value;});
5019 if(~si1b.value == "s2", {~rslot1b = ~bplaces2; ~rdo1b = ~si1b.value;});
5020 if(~si1b.value == "o3", {~rslot1b = ~bplaceo3; ~rdo1b = ~si1b.value;});
5021 if(~si1b.value == "f3", {~rslot1b = ~bplacef3; ~rdo1b = ~si1b.value;});
5022 if(~si1b.value == "s3", {~rslot1b = ~bplaces3; ~rdo1b = ~si1b.value;});
5023 if(~si1b.value == "o4", {~rslot1b = ~bplaceo4; ~rdo1b = ~si1b.value;});
5024 if(~si1b.value == "f4", {~rslot1b = ~bplacef4; ~rdo1b = ~si1b.value;});
5025 if(~si1b.value == "s4", {~rslot1b = ~bplaces4; ~rdo1b = ~si1b.value;});
5026 if(~si1b.value == "o5", {~rslot1b = ~bplaceo5; ~rdo1b = ~si1b.value;});
5027 if(~si1b.value == "f5", {~rslot1b = ~bplacef5; ~rdo1b = ~si1b.value;});
5028 if(~si1b.value == "s5", {~rslot1b = ~bplaces5; ~rdo1b = ~si1b.value;});
5029 if(~si1b.value == "o6", {~rslot1b = ~bplaceo6; ~rdo1b = ~si1b.value;});
5030 if(~si1b.value == "f6", {~rslot1b = ~bplacef6; ~rdo1b = ~si1b.value;});
5031 if(~si1b.value == "s6", {~rslot1b = ~bplaces6; ~rdo1b = ~si1b.value;});
5032 if(~si1b.value == "o7", {~rslot1b = ~bplaceo7; ~rdo1b = ~si1b.value;});
5033 if(~si1b.value == "f7", {~rslot1b = ~bplacef7; ~rdo1b = ~si1b.value;});
5034 if(~si1b.value == "s7", {~rslot1b = ~bplaces7; ~rdo1b = ~si1b.value;});
5035 if(~si1b.value == "o8", {~rslot1b = ~bplaceo8; ~rdo1b = ~si1b.value;});
5036 if(~si1b.value == "f8", {~rslot1b = ~bplacef8; ~rdo1b = ~si1b.value;});
5037 if(~si1b.value == "s8", {~rslot1b = ~bplaces8; ~rdo1b = ~si1b.value;});
5040 if(~si2.value == "o1", {~rslot2 = ~bplaceo1; ~rdo2 = ~si2.value;});
5041 if(~si2.value == "f1", {~rslot2 = ~bplacef1; ~rdo2 = ~si2.value;});
5042 if(~si2.value == "s1", {~rslot2 = ~bplaces1; ~rdo2 = ~si2.value;});
5043 if(~si2.value == "o2", {~rslot2 = ~bplaceo2; ~rdo2 = ~si2.value;});
5044 if(~si2.value == "f2", {~rslot2 = ~bplacef2; ~rdo2 = ~si2.value;});
5045 if(~si2.value == "s2", {~rslot2 = ~bplaces2; ~rdo2 = ~si2.value;});
5046 if(~si2.value == "o3", {~rslot2 = ~bplaceo3; ~rdo2 = ~si2.value;});
5047 if(~si2.value == "f3", {~rslot2 = ~bplacef3; ~rdo2 = ~si2.value;});
5048 if(~si2.value == "s3", {~rslot2 = ~bplaces3; ~rdo2 = ~si2.value;});
5049 if(~si2.value == "o4", {~rslot2 = ~bplaceo4; ~rdo2 = ~si2.value;});
5050 if(~si2.value == "f4", {~rslot2 = ~bplacef4; ~rdo2 = ~si2.value;});
5051 if(~si2.value == "s4", {~rslot2 = ~bplaces4; ~rdo2 = ~si2.value;});
5052 if(~si2.value == "o5", {~rslot2 = ~bplaceo5; ~rdo2 = ~si2.value;});
5053 if(~si2.value == "f5", {~rslot2 = ~bplacef5; ~rdo2 = ~si2.value;});
5054 if(~si2.value == "s5", {~rslot2 = ~bplaces5; ~rdo2 = ~si2.value;});
5055 if(~si2.value == "o6", {~rslot2 = ~bplaceo6; ~rdo2 = ~si2.value;});
5056 if(~si2.value == "f6", {~rslot2 = ~bplacef6; ~rdo2 = ~si2.value;});
5057 if(~si2.value == "s6", {~rslot2 = ~bplaces6; ~rdo2 = ~si2.value;});
5058 if(~si2.value == "o7", {~rslot2 = ~bplaceo7; ~rdo2 = ~si2.value;});
5059 if(~si2.value == "f7", {~rslot2 = ~bplacef7; ~rdo2 = ~si2.value;});
5060 if(~si2.value == "s7", {~rslot2 = ~bplaces7; ~rdo2 = ~si2.value;});
5061 if(~si2.value == "o8", {~rslot2 = ~bplaceo8; ~rdo2 = ~si2.value;});
5062 if(~si2.value == "f8", {~rslot2 = ~bplacef8; ~rdo2 = ~si2.value;});
5063 if(~si2.value == "s8", {~rslot2 = ~bplaces8; ~rdo2 = ~si2.value;});
5066 if(~si3.value == "o1", {~rslot3 = ~bplaceo1; ~rdo3 = ~si3.value;});
5067 if(~si3.value == "f1", {~rslot3 = ~bplacef1; ~rdo3 = ~si3.value;});
5068 if(~si3.value == "s1", {~rslot3 = ~bplaces1; ~rdo3 = ~si3.value;});
5069 if(~si3.value == "o2", {~rslot3 = ~bplaceo2; ~rdo3 = ~si3.value;});
5070 if(~si3.value == "f2", {~rslot3 = ~bplacef2; ~rdo3 = ~si3.value;});
5071 if(~si3.value == "s2", {~rslot3 = ~bplaces2; ~rdo3 = ~si3.value;});
5072 if(~si3.value == "o3", {~rslot3 = ~bplaceo3; ~rdo3 = ~si3.value;});
5073 if(~si3.value == "f3", {~rslot3 = ~bplacef3; ~rdo3 = ~si3.value;});
5074 if(~si3.value == "s3", {~rslot3 = ~bplaces3; ~rdo3 = ~si3.value;});
5075 if(~si3.value == "o4", {~rslot3 = ~bplaceo4; ~rdo3 = ~si3.value;});
5076 if(~si3.value == "f4", {~rslot3 = ~bplacef4; ~rdo3 = ~si3.value;});
5077 if(~si3.value == "s4", {~rslot3 = ~bplaces4; ~rdo3 = ~si3.value;});
5078 if(~si3.value == "o5", {~rslot3 = ~bplaceo5; ~rdo3 = ~si3.value;});
5079 if(~si3.value == "f5", {~rslot3 = ~bplacef5; ~rdo3 = ~si3.value;});
5080 if(~si3.value == "s5", {~rslot3 = ~bplaces5; ~rdo3 = ~si3.value;});
5081 if(~si3.value == "o6", {~rslot3 = ~bplaceo6; ~rdo3 = ~si3.value;});
5082 if(~si3.value == "f6", {~rslot3 = ~bplacef6; ~rdo3 = ~si3.value;});
5083 if(~si3.value == "s6", {~rslot3 = ~bplaces6; ~rdo3 = ~si3.value;});
5084 if(~si3.value == "o7", {~rslot3 = ~bplaceo7; ~rdo3 = ~si3.value;});
5085 if(~si3.value == "f7", {~rslot3 = ~bplacef7; ~rdo3 = ~si3.value;});
5086 if(~si3.value == "s7", {~rslot3 = ~bplaces7; ~rdo3 = ~si3.value;});
5087 if(~si3.value == "o8", {~rslot3 = ~bplaceo8; ~rdo3 = ~si3.value;});
5088 if(~si3.value == "f8", {~rslot3 = ~bplacef8; ~rdo3 = ~si3.value;});
5089 if(~si3.value == "s8", {~rslot3 = ~bplaces8; ~rdo3 = ~si3.value;});
5092 if(~si4.value == "o1", {~rslot4 = ~bplaceo1; ~rdo4 = ~si4.value;});
5093 if(~si4.value == "f1", {~rslot4 = ~bplacef1; ~rdo4 = ~si4.value;});
5094 if(~si4.value == "s1", {~rslot4 = ~bplaces1; ~rdo4 = ~si4.value;});
5095 if(~si4.value == "o2", {~rslot4 = ~bplaceo2; ~rdo4 = ~si4.value;});
5096 if(~si4.value == "f2", {~rslot4 = ~bplacef2; ~rdo4 = ~si4.value;});
5097 if(~si4.value == "s2", {~rslot4 = ~bplaces2; ~rdo4 = ~si4.value;});
5098 if(~si4.value == "o3", {~rslot4 = ~bplaceo3; ~rdo4 = ~si4.value;});
5099 if(~si4.value == "f3", {~rslot4 = ~bplacef3; ~rdo4 = ~si4.value;});
5100 if(~si4.value == "s3", {~rslot4 = ~bplaces3; ~rdo4 = ~si4.value;});
5101 if(~si4.value == "o4", {~rslot4 = ~bplaceo4; ~rdo4 = ~si4.value;});
5102 if(~si4.value == "f4", {~rslot4 = ~bplacef4; ~rdo4 = ~si4.value;});
5103 if(~si4.value == "s4", {~rslot4 = ~bplaces4; ~rdo4 = ~si4.value;});
5104 if(~si4.value == "o5", {~rslot4 = ~bplaceo5; ~rdo4 = ~si4.value;});
5105 if(~si4.value == "f5", {~rslot4 = ~bplacef5; ~rdo4 = ~si4.value;});
5106 if(~si4.value == "s5", {~rslot4 = ~bplaces5; ~rdo4 = ~si4.value;});
5107 if(~si4.value == "o6", {~rslot4 = ~bplaceo6; ~rdo4 = ~si4.value;});
5108 if(~si4.value == "f6", {~rslot4 = ~bplacef6; ~rdo4 = ~si4.value;});
5109 if(~si4.value == "s6", {~rslot4 = ~bplaces6; ~rdo4 = ~si4.value;});
5110 if(~si4.value == "o7", {~rslot4 = ~bplaceo7; ~rdo4 = ~si4.value;});
5111 if(~si4.value == "f7", {~rslot4 = ~bplacef7; ~rdo4 = ~si4.value;});
5112 if(~si4.value == "s7", {~rslot4 = ~bplaces7; ~rdo4 = ~si4.value;});
5113 if(~si4.value == "o8", {~rslot4 = ~bplaceo8; ~rdo4 = ~si4.value;});
5114 if(~si4.value == "f8", {~rslot4 = ~bplacef8; ~rdo4 = ~si4.value;});
5115 if(~si4.value == "s8", {~rslot4 = ~bplaces8; ~rdo4 = ~si4.value;});
5118 if(~si5.value == "o1", {~rslot5 = ~bplaceo1; ~rdo5 = ~si5.value;});
5119 if(~si5.value == "f1", {~rslot5 = ~bplacef1; ~rdo5 = ~si5.value;});
5120 if(~si5.value == "s1", {~rslot5 = ~bplaces1; ~rdo5 = ~si5.value;});
5121 if(~si5.value == "o2", {~rslot5 = ~bplaceo2; ~rdo5 = ~si5.value;});
5122 if(~si5.value == "f2", {~rslot5 = ~bplacef2; ~rdo5 = ~si5.value;});
5123 if(~si5.value == "s2", {~rslot5 = ~bplaces2; ~rdo5 = ~si5.value;});
5124 if(~si5.value == "o3", {~rslot5 = ~bplaceo3; ~rdo5 = ~si5.value;});
5125 if(~si5.value == "f3", {~rslot5 = ~bplacef3; ~rdo5 = ~si5.value;});
5126 if(~si5.value == "s3", {~rslot5 = ~bplaces3; ~rdo5 = ~si5.value;});
5127 if(~si5.value == "o4", {~rslot5 = ~bplaceo4; ~rdo5 = ~si5.value;});
5128 if(~si5.value == "f4", {~rslot5 = ~bplacef4; ~rdo5 = ~si5.value;});
5129 if(~si5.value == "s4", {~rslot5 = ~bplaces4; ~rdo5 = ~si5.value;});
5130 if(~si5.value == "o5", {~rslot5 = ~bplaceo5; ~rdo5 = ~si5.value;});
5131 if(~si5.value == "f5", {~rslot5 = ~bplacef5; ~rdo5 = ~si5.value;});
5132 if(~si5.value == "s5", {~rslot5 = ~bplaces5; ~rdo5 = ~si5.value;});
5133 if(~si5.value == "o6", {~rslot5 = ~bplaceo6; ~rdo5 = ~si5.value;});
5134 if(~si5.value == "f6", {~rslot5 = ~bplacef6; ~rdo5 = ~si5.value;});
5135 if(~si5.value == "s6", {~rslot5 = ~bplaces6; ~rdo5 = ~si5.value;});
5136 if(~si5.value == "o7", {~rslot5 = ~bplaceo7; ~rdo5 = ~si5.value;});
5137 if(~si5.value == "f7", {~rslot5 = ~bplacef7; ~rdo5 = ~si5.value;});
5138 if(~si5.value == "s7", {~rslot5 = ~bplaces7; ~rdo5 = ~si5.value;});
5139 if(~si5.value == "o8", {~rslot5 = ~bplaceo8; ~rdo5 = ~si5.value;});
5140 if(~si5.value == "f8", {~rslot5 = ~bplacef8; ~rdo5 = ~si5.value;});
5141 if(~si5.value == "s8", {~rslot5 = ~bplaces8; ~rdo5 = ~si5.value;});
5144 if(~si6.value == "o1", {~rslot6 = ~bplaceo1; ~rdo6 = ~si6.value;});
5145 if(~si6.value == "f1", {~rslot6 = ~bplacef1; ~rdo6 = ~si6.value;});
5146 if(~si6.value == "s1", {~rslot6 = ~bplaces1; ~rdo6 = ~si6.value;});
5147 if(~si6.value == "o2", {~rslot6 = ~bplaceo2; ~rdo6 = ~si6.value;});
5148 if(~si6.value == "f2", {~rslot6 = ~bplacef2; ~rdo6 = ~si6.value;});
5149 if(~si6.value == "s2", {~rslot6 = ~bplaces2; ~rdo6 = ~si6.value;});
5150 if(~si6.value == "o3", {~rslot6 = ~bplaceo3; ~rdo6 = ~si6.value;});
5151 if(~si6.value == "f3", {~rslot6 = ~bplacef3; ~rdo6 = ~si6.value;});
5152 if(~si6.value == "s3", {~rslot6 = ~bplaces3; ~rdo6 = ~si6.value;});
5153 if(~si6.value == "o4", {~rslot6 = ~bplaceo4; ~rdo6 = ~si6.value;});
5154 if(~si6.value == "f4", {~rslot6 = ~bplacef4; ~rdo6 = ~si6.value;});
5155 if(~si6.value == "s4", {~rslot6 = ~bplaces4; ~rdo6 = ~si6.value;});
5156 if(~si6.value == "o5", {~rslot6 = ~bplaceo5; ~rdo6 = ~si6.value;});
5157 if(~si6.value == "f5", {~rslot6 = ~bplacef5; ~rdo6 = ~si6.value;});
5158 if(~si6.value == "s5", {~rslot6 = ~bplaces5; ~rdo6 = ~si6.value;});
5159 if(~si6.value == "o6", {~rslot6 = ~bplaceo6; ~rdo6 = ~si6.value;});
5160 if(~si6.value == "f6", {~rslot6 = ~bplacef6; ~rdo6 = ~si6.value;});
5161 if(~si6.value == "s6", {~rslot6 = ~bplaces6; ~rdo6 = ~si6.value;});
5162 if(~si6.value == "o7", {~rslot6 = ~bplaceo7; ~rdo6 = ~si6.value;});
5163 if(~si6.value == "f7", {~rslot6 = ~bplacef7; ~rdo6 = ~si6.value;});
5164 if(~si6.value == "s7", {~rslot6 = ~bplaces7; ~rdo6 = ~si6.value;});
5165 if(~si6.value == "o8", {~rslot6 = ~bplaceo8; ~rdo6 = ~si6.value;});
5166 if(~si6.value == "f8", {~rslot6 = ~bplacef8; ~rdo6 = ~si6.value;});
5167 if(~si6.value == "s8", {~rslot6 = ~bplaces8; ~rdo6 = ~si6.value;});
5170 if(~si7.value == "o1", {~rslot7 = ~bplaceo1; ~rdo7 = ~si7.value;});
5171 if(~si7.value == "f1", {~rslot7 = ~bplacef1; ~rdo7 = ~si7.value;});
5172 if(~si7.value == "s1", {~rslot7 = ~bplaces1; ~rdo7 = ~si7.value;});
5173 if(~si7.value == "o2", {~rslot7 = ~bplaceo2; ~rdo7 = ~si7.value;});
5174 if(~si7.value == "f2", {~rslot7 = ~bplacef2; ~rdo7 = ~si7.value;});
5175 if(~si7.value == "s2", {~rslot7 = ~bplaces2; ~rdo7 = ~si7.value;});
5176 if(~si7.value == "o3", {~rslot7 = ~bplaceo3; ~rdo7 = ~si7.value;});
5177 if(~si7.value == "f3", {~rslot7 = ~bplacef3; ~rdo7 = ~si7.value;});
5178 if(~si7.value == "s3", {~rslot7 = ~bplaces3; ~rdo7 = ~si7.value;});
5179 if(~si7.value == "o4", {~rslot7 = ~bplaceo4; ~rdo7 = ~si7.value;});
5180 if(~si7.value == "f4", {~rslot7 = ~bplacef4; ~rdo7 = ~si7.value;});
5181 if(~si7.value == "s4", {~rslot7 = ~bplaces4; ~rdo7 = ~si7.value;});
5182 if(~si7.value == "o5", {~rslot7 = ~bplaceo5; ~rdo7 = ~si7.value;});
5183 if(~si7.value == "f5", {~rslot7 = ~bplacef5; ~rdo7 = ~si7.value;});
5184 if(~si7.value == "s5", {~rslot7 = ~bplaces5; ~rdo7 = ~si7.value;});
5185 if(~si7.value == "o6", {~rslot7 = ~bplaceo6; ~rdo7 = ~si7.value;});
5186 if(~si7.value == "f6", {~rslot7 = ~bplacef6; ~rdo7 = ~si7.value;});
5187 if(~si7.value == "s6", {~rslot7 = ~bplaces6; ~rdo7 = ~si7.value;});
5188 if(~si7.value == "o7", {~rslot7 = ~bplaceo7; ~rdo7 = ~si7.value;});
5189 if(~si7.value == "f7", {~rslot7 = ~bplacef7; ~rdo7 = ~si7.value;});
5190 if(~si7.value == "s7", {~rslot7 = ~bplaces7; ~rdo7 = ~si7.value;});
5191 if(~si7.value == "o8", {~rslot7 = ~bplaceo8; ~rdo7 = ~si7.value;});
5192 if(~si7.value == "f8", {~rslot7 = ~bplacef8; ~rdo7 = ~si7.value;});
5193 if(~si7.value == "s8", {~rslot7 = ~bplaces8; ~rdo7 = ~si7.value;});
5196 if(~si8.value == "o1", {~rslot8 = ~bplaceo1; ~rdo8 = ~si8.value;});
5197 if(~si8.value == "f1", {~rslot8 = ~bplacef1; ~rdo8 = ~si8.value;});
5198 if(~si8.value == "s1", {~rslot8 = ~bplaces1; ~rdo8 = ~si8.value;});
5199 if(~si8.value == "o2", {~rslot8 = ~bplaceo2; ~rdo8 = ~si8.value;});
5200 if(~si8.value == "f2", {~rslot8 = ~bplacef2; ~rdo8 = ~si8.value;});
5201 if(~si8.value == "s2", {~rslot8 = ~bplaces2; ~rdo8 = ~si8.value;});
5202 if(~si8.value == "o3", {~rslot8 = ~bplaceo3; ~rdo8 = ~si8.value;});
5203 if(~si8.value == "f3", {~rslot8 = ~bplacef3; ~rdo8 = ~si8.value;});
5204 if(~si8.value == "s3", {~rslot8 = ~bplaces3; ~rdo8 = ~si8.value;});
5205 if(~si8.value == "o4", {~rslot8 = ~bplaceo4; ~rdo8 = ~si8.value;});
5206 if(~si8.value == "f4", {~rslot8 = ~bplacef4; ~rdo8 = ~si8.value;});
5207 if(~si8.value == "s4", {~rslot8 = ~bplaces4; ~rdo8 = ~si8.value;});
5208 if(~si8.value == "o5", {~rslot8 = ~bplaceo5; ~rdo8 = ~si8.value;});
5209 if(~si8.value == "f5", {~rslot8 = ~bplacef5; ~rdo8 = ~si8.value;});
5210 if(~si8.value == "s5", {~rslot8 = ~bplaces5; ~rdo8 = ~si8.value;});
5211 if(~si8.value == "o6", {~rslot8 = ~bplaceo6; ~rdo8 = ~si8.value;});
5212 if(~si8.value == "f6", {~rslot8 = ~bplacef6; ~rdo8 = ~si8.value;});
5213 if(~si8.value == "s6", {~rslot8 = ~bplaces6; ~rdo8 = ~si8.value;});
5214 if(~si8.value == "o7", {~rslot8 = ~bplaceo7; ~rdo8 = ~si8.value;});
5215 if(~si8.value == "f7", {~rslot8 = ~bplacef7; ~rdo8 = ~si8.value;});
5216 if(~si8.value == "s7", {~rslot8 = ~bplaces7; ~rdo8 = ~si8.value;});
5217 if(~si8.value == "o8", {~rslot8 = ~bplaceo8; ~rdo8 = ~si8.value;});
5218 if(~si8.value == "f8", {~rslot8 = ~bplacef8; ~rdo8 = ~si8.value;});
5219 if(~si8.value == "s8", {~rslot8 = ~bplaces8; ~rdo8 = ~si8.value;});
5223 //routine function button
5225 ~rviewbutton = Button.new(w,Rect(Window.screenBounds.width-20-20,~bpt+69+5-(20/~gm),20,20/1.6180339887499)).states_([["r",Color.white,Color.black],["r",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
5227 if(button.value == 1, {
5229 arg leftdo = 0 , leftdobox = 52, lefttime = leftdobox+widthbox+6, lefttimebox = lefttime+57, top = 0,width=52, height = 16, widthbox=52, heightbox = 16, inc=0, lw = 0, uw = 0, numw = 40;
5230 var tall, stall, iall, siall, st1, st2, st3, st4, st5, st6, st7, st8, t1,t2,t3,t4,t5,t6,t7,t8,i1,i2,i3,i4,i5,i6,i7,i8;
5231 ~rview = View(w, Rect(Window.screenBounds.width-(340+46),Window.screenBounds.height-(340+46/1.6180339887499)-110,340+46,340+46/1.6180339887499)).front;
5232 /*w.view.decorator=FlowLayout(w.view.bounds);
5233 w.view.decorator.gap=2@2;*/
5237 i1 = StaticText(~rview, Rect(leftdo , top=top, width, height)).background_(Color.black).string_("rslot1").stringColor_(Color.white);
5238 i2 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot2").stringColor_(Color.white);
5239 i3 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot3").stringColor_(Color.white);
5240 i4 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot4").stringColor_(Color.white);
5241 i5 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot5").stringColor_(Color.white);
5242 i6 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot6").stringColor_(Color.white);
5243 i7 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot7").stringColor_(Color.white);
5244 i8 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot8").stringColor_(Color.white);
5248 ~si1a=TextField(~rview, Rect(leftdobox , top=top, widthbox/2, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo1a);
5249 ~si1b=TextField(~rview, Rect(leftdobox+(widthbox/2) , top=top, widthbox/2, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo1b);
5250 ~si2=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo2);
5251 ~si3=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo3);
5252 ~si4=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo4);
5253 ~si5=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo5);
5254 ~si6=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo6);
5255 ~si7=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo7);
5256 ~si8=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo8);
5260 t1 = StaticText(~rview, Rect(lefttime , top=top, width, height)).background_(Color.black).string_("rtime1").stringColor_(Color.white);
5261 t2 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime2").stringColor_(Color.white);
5262 t3 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime3").stringColor_(Color.white);
5263 t4 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime4").stringColor_(Color.white);
5264 t5 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime5").stringColor_(Color.white);
5265 t6 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime6").stringColor_(Color.white);
5266 t7 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime7").stringColor_(Color.white);
5267 t8 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime8").stringColor_(Color.white);
5268 tall = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("all time").stringColor_(Color.white);
5273 st1=NumberBox(~rview, Rect(lefttimebox , top=top, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime1);
5274 st2=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime2);
5275 st3=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime3);
5276 st4=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime4);
5277 st5=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime5);
5278 st6=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime6);
5279 st7=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime7);
5280 st8=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime8);
5281 stall=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtimeall);
5284 ~si1a.action_({~si1aset.value});
5285 ~si1b.action_({~si1bset.value});
5286 ~si2.action_({~si2set.value});
5287 ~si3.action_({~si3set.value});
5288 ~si4.action_({~si4set.value});
5289 ~si5.action_({~si5set.value});
5290 ~si6.action_({~si6set.value});
5291 ~si7.action_({~si7set.value});
5292 ~si8.action_({~si8set.value});
5294 stall.action_({arg val;
5295 ~rtimeall = val.value;
5296 ~rtime1 = val.value;
5297 ~rtime2 = val.value;
5298 ~rtime3 = val.value;
5299 ~rtime4 = val.value;
5300 ~rtime5 = val.value;
5301 ~rtime6 = val.value;
5302 ~rtime7 = val.value;
5303 ~rtime8 = val.value;
5304 ~rview.close; ~rviewbutton.valueAction_(1);
5306 st1.action_({arg val; ~rtime1 = val.value;});
5307 st2.action_({arg val; ~rtime2 = val.value;});
5308 st3.action_({arg val; ~rtime3 = val.value;});
5309 st4.action_({arg val; ~rtime4 = val.value;});
5310 st5.action_({arg val; ~rtime5 = val.value;});
5311 st6.action_({arg val; ~rtime6 = val.value;});
5312 st7.action_({arg val; ~rtime7 = val.value;});
5313 st8.action_({arg val; ~rtime8 = val.value;});
5315 ~rview.background_(Color.black);
5319 ~routinebutton = Button.new(~rview,Rect(0, top+40, 40, 40/~gm)).states_([["loop",Color.white,Color.black],["stop",Color.white,Color.black]]).action_({arg button;
5321 if(button.value == 1, {
5325 AppClock.sched(0, {~metronomebutton.value = 1;});
5326 ~metronomeincr.wait;
5327 AppClock.sched(0, {~metronomebutton.value = 0;});
5328 ~metronomeincr.wait;
5334 {~rslot1a.valueAction_(0)}.defer;
5336 {~rslot2.valueAction_(0)}.defer;
5338 {~rslot3.valueAction_(0)}.defer;
5340 {~rslot4.valueAction_(0)}.defer;
5342 {~rslot5.valueAction_(0)}.defer;
5344 {~rslot6.valueAction_(0)}.defer;
5346 {~rslot7.valueAction_(0)}.defer;
5348 {~rslot8.valueAction_(0)}.defer;
5352 {~rslot1b.valueAction_(0)}.defer;
5354 {~rslot2.valueAction_(0)}.defer;
5356 {~rslot3.valueAction_(0)}.defer;
5358 {~rslot4.valueAction_(0)}.defer;
5360 {~rslot5.valueAction_(0)}.defer;
5362 {~rslot6.valueAction_(0)}.defer;
5364 {~rslot7.valueAction_(0)}.defer;
5366 {~rslot8.valueAction_(0)}.defer;
5369 }); SystemClock(~metronome.start); SystemClock(~loop.start); ~numsynths.stop;}, {
5371 SystemClock(~metronome.stop); SystemClock(~loop.stop); SystemClock(~loop.reset); ~synthfree.value; ~pauseroutinebutton.value = 0; ~numsynths.stop; ~numsynthsfunc.value;});
5374 ~pauseroutinebutton = Button.new(~rview,Rect(50, top+40, 40, 40/~gm)).states_([["pause",Color.white,Color.black],["loop",Color.white,Color.black]]).action_({arg button;
5376 if(button.value == 1, {SystemClock(~loop.pause); ~synthpause.value;}, {SystemClock(~loop.resume); ~synthflow.value;});
5379 ~closeroutinebutton = Button.new(~rview,Rect(220, top+40, 40, 40/~gm)).states_([["close",Color.white,Color.black]]).action_({arg button;
5381 ~rview.close; ~rviewbutton.value = 0;
5384 ~metronomebutton = Button.new(~rview,Rect(120, top+40, 40, 40/~gm)).states_([["",Color.white,Color.red],["",Color.white,Color.blue]]).action_({arg button;});
5388 if(~loop.isPlaying == true, {~routinebutton.value = 1;});
5394 //synth identifier function
5396 ~synthmonitor = StaticText(w, Rect(Window.screenBounds.width-14,~bpt+49,18,18/1.6180339887499)).background_(Color.black).stringColor_(Color.white);
5397 ~synthmonitor.string = if(~currentsynth == nil, {"nil".asString});
5399 ~synthmonitorfunc = {
5400 ~synthmonitor.close;
5401 ~synthmonitor = StaticText(w, Rect(Window.screenBounds.width-14,~bpt+49,18,18/1.6180339887499)).background_(Color.black).stringColor_(Color.white);
5402 ~synthmonitor.string = ~currentsynth.asString;
5403 ~synthmonitor.font = Font(size: 10);
5406 ~synthmonitorfunc.value;
5409 //cpu, # of ugens, # of synths, and current frequencies display
5411 ~cpumonitor = StaticText(w, Rect(Window.screenBounds.width-500,~bpt-200,500,90/1.6180339887499)).background_(Color.black).stringColor_(Color.white);
5416 ~cpumonitor = StaticText(w, Rect(20,~bpt-100,800,124/1.6180339887499)).background_(Color.black).stringColor_(Color.white);
5417 if(~settingsbutton.value == 1, {~cpumonitorbutton.valueAction = 0;});
5418 ~cpumonitor.string =
5419 "cpu: "+s.avgCPU.asString+"%"++"\n" ++
5420 "ugens: "+s.numUGens.asString++"\n" ++
5421 "synths: "+s.numSynths.asString++"\n" ++
5422 /*"f1 = "++~f1.round(0.01)++", f2 = "++~f2.round(0.01)++", f3 = "++~f3.round(0.01)++", f4 = "++~f4.round(0.01)++", f5 = "++~f5.round(0.01)++", f6 = "++~f6.round(0.01)++","++
5423 "f7 = "++~f7.round(0.01)++", f8 = "++~f8.round(0.01)++", f9 = "++~f9.round(0.01)++", f10 = "++~f10.round(0.01)++", f11 = "++~f11.round(0.01)++", f12 = "++~f12.round(0.01);
5424 */ ~f1.round(0.01)++", "++~f2.round(0.01)++", "++~f3.round(0.01)++", "++~f4.round(0.01)++", "++~f5.round(0.01)++", "++~f6.round(0.01)++", "++~f7.round(0.01)++", "++~f8.round(0.01)++", "++~f9.round(0.01)++", "++~f10.round(0.01)++", "++~f11.round(0.01)++", "++~f12.round(0.01);
5425 /*[ ~f1.round(0.01), ~f2.round(0.01), ~f3.round(0.01),~f4.round(0.01),~f5.round(0.01),~f6.round(0.01),~f7.round(0.01),~f8.round(0.01),~f9.round(0.01),~f10.round(0.01),~f11.round(0.01),~f12.round(0.01) ].asString;
5426 */ ~cpumonitor.font = Font(size: 14);
5429 ~cpumonitorroutine = Routine({
5432 ~cpumonitorfunc.value;
5438 ~cpumonitorbutton = Button.new(w,Rect(Window.screenBounds.width-20-20-20-20,~bpt+69+5,20,20/1.6180339887499)).states_([["cm",Color.white,Color.black],["cm",Color.white,Color.black]]).action_({arg button;
5440 if(button.value == 1, {
5441 if(~settingsbutton.value == 1, {~settingsbutton.valueAction = 0;});
5442 ~cpumonitorroutine.reset;
5443 ~cpumonitorroutine.play;
5444 }, {~cpumonitorroutine.stop; ~cpumonitor.close;});
5449 //information button
5451 info = Button.new(w,Rect(Window.screenBounds.width-20-20,~bpt+69+5,20,20/1.6180339887499)).states_([["i",Color.white,Color.black],["i",Color.white,Color.black]]).action_({arg button;
5453 if(button.value == 1, {
5454 ~hb = TextView(w, Rect(0,0, Window.screenBounds.width, Window.screenBounds.height-200)).background_(Color.black);
5456 "(scroll down to see more)"++"\n"++"\n"++"\n"++
5457 "ctrl/cmd-period: stop synth/free server"++"\n"++"\n"++"\n"++
5458 "GUI Buttons"++"\n"++"\n"++"\n"++
5459 "synth0/synth1: start/stop synth set"++"\n"++"\n"++
5460 "pause0/pause1: pause/unpause synth set"++"\n"++"\n"++
5461 "tsynth0/tsynth1: tsynth0 to allow timed synth set, then click on any o, f, or s button to time a progression. click on the stop timer button in the bottom right to stop the timer."++"\n"++"tsynth1 to dis-allow timed synth set"++"\n"++"\n"++
5462 "copy: copy frequency/note info"++"\n"++"\n"++
5463 "settings button:"++"\n"++"\n"++
5464 " KWS number: change number of kw(King Wen) sequences in a timewave half-cycle (or amplitude x2). press set to load."++"\n"++"\n"++
5465 " base(lowest) freq(hz): set the base(lowest) frequency of timewave cycle. press set to load."++"\n"++"\n"++
5466 " synthdef type: psine1-psine3 (based on phi, with low-pass filter), hsine1-hsine3 (based on 19.47:360, with low-pass filter), psineuf1-psineuf3 (based on phi, without low-pass filter),"++"\n"++" hsineuf1-hsineuf3 (based on 19.47:360, without low-pass filter) - set synthdef type. press set to load."++"\n"++"\n"++
5467 " lp filter limit(hz): change the low-pass filter frequency limit. default is 1728. press set to load."++"\n"++"\n"++
5468 " automate: setting for automated mid-timewave sequence events. press set to load."++"\n"++"\n"++
5469 "s1-s8: set/save note positions"++"\n"++"\n"++
5470 "g1-g8: groups of saved note positions"++"\n"++"\n"++
5471 "uc-u8: undo changes to set note positions. press set to load."++"\n"++"\n"++
5472 "rc, /rc: start recording/stop recording"++"\n"++"\n"++
5473 "prc: pause recording"++"\n"++"\n"++
5474 "o1-o8: play set/saved note positions by opening a new synth set"++"\n"++"\n"++
5475 "f1-f8: flow transition to set/saved note positions"++"\n"++"\n"++
5476 "s1-s8: slide transition to set/saved note positions"++"\n"++"\n"++
5477 "m/u: mute/unmute all"++"\n"++"\n"++
5478 "1-12: mute or unmute individual synth"++"\n"++"\n"++
5479 "cm: cpu percentage/number of ugens/number of synths display"++"\n"++"\n"++
5480 "rw: random western scale"++"\n"++"\n"++
5481 "re: random eastern scale"++"\n"++"\n"++
5482 "r: routine/loop function - rslot for synth set, rtime for time between transitions"++"\n"++"\n"++
5483 "eo: extra options - set frequencies, set slide time/increment"++"\n"++"\n"++
5484 "i: help"++"\n"++"\n"++
5485 "m: minimize window"++"\n"++"\n"++
5486 "c: close window"++"\n"++"\n"++"\n"++
5487 "Keyboard Functions (functionality will vary with device)"++"\n"++"\n"++"\n"++
5488 "s: start/stop synth set"++"\n"++"\n"++
5489 "space bar: pause/unpause synth set"++"\n"++"\n"++
5490 "ctrl-period/cmd-period: stop synth/free server"++"\n"++"\n"++
5491 "left/right arrow(or J and L): move down/up note"++"\n"++"\n"++
5492 "up/down arrow(or I and K): change synth for left/right arrow note function"++"\n"++"\n"++
5493 "#1-= on keyboard: choose synth for left/right arrow note function"++"\n"++"\n"++
5494 "r: routine/loop function - rslot for synth set, rtime for time between transitions"++"\n"++"\n"++
5495 "m: mute/unmute all"++"\n"++"\n"++
5496 "c: copy function"++"\n"++"\n"++
5497 "t: timed synth function"++"\n"++"\n"++
5498 "esc: minimize window"
5501 ~hb.stringColor = Color.white;
5507 //random notes button 1
5509 ~randombutton1 = Button.new(w,Rect(Window.screenBounds.width-20-20-20-20,~bpt+69+5-(20/~gm),20,20/1.6180339887499)).states_([["rw",Color.white,Color.black]]).action_({arg button;
5511 if((~l1a.isRunning == true) or: (~l1a1.isRunning == true), {
5512 12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut(~freqmap.at(rrand(36, 91));)});
5518 //random notes button 2
5520 ~randombutton2 = Button.new(w,Rect(Window.screenBounds.width-20-20-20,~bpt+69+5-(20/~gm),20,20/1.6180339887499)).states_([["re",Color.white,Color.black]]).action_({arg button;
5522 if((~l1a.isRunning == true) or: (~l1a1.isRunning == true), {
5523 12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut((~freqmap.at(127)/8).rand;)});
5529 //setgroup buttons, sg1-sg8
5531 ~setgroup1 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)-(20*4),~bpt+69+5,20,20/1.6180339887499)).states_([["g1",Color.white,Color.black],["s1",Color.green,Color.black]]).action_({arg button;
5533 if(button.value == 1, {
5534 12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([~sg1a1,~sg1a2,~sg1a3,~sg1a4,~sg1a5,~sg1a6,~sg1a7,~sg1a8,~sg1a9,~sg1a10,~sg1a11,~sg1a12].at(x-1))});
5535 12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([~sg1b1,~sg1b2,~sg1b3,~sg1b4,~sg1b5,~sg1b6,~sg1b7,~sg1b8,~sg1b9,~sg1b10,~sg1b11,~sg1b12].at(x-1))});
5536 12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([~sg1c1,~sg1c2,~sg1c3,~sg1c4,~sg1c5,~sg1c6,~sg1c7,~sg1c8,~sg1c9,~sg1c10,~sg1c11,~sg1c12].at(x-1))});
5537 12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([~sg1d1,~sg1d2,~sg1d3,~sg1d4,~sg1d5,~sg1d6,~sg1d7,~sg1d8,~sg1d9,~sg1d10,~sg1d11,~sg1d12].at(x-1))});
5538 12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([~sg1e1,~sg1e2,~sg1e3,~sg1e4,~sg1e5,~sg1e6,~sg1e7,~sg1e8,~sg1e9,~sg1e10,~sg1e11,~sg1e12].at(x-1))});
5539 12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([~sg1f1,~sg1f2,~sg1f3,~sg1f4,~sg1f5,~sg1f6,~sg1f7,~sg1f8,~sg1f9,~sg1f10,~sg1f11,~sg1f12].at(x-1))});
5540 12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([~sg1g1,~sg1g2,~sg1g3,~sg1g4,~sg1g5,~sg1g6,~sg1g7,~sg1g8,~sg1g9,~sg1g10,~sg1g11,~sg1g12].at(x-1))});
5541 12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([~sg1h1,~sg1h2,~sg1h3,~sg1h4,~sg1h5,~sg1h6,~sg1h7,~sg1h8,~sg1h9,~sg1h10,~sg1h11,~sg1h12].at(x-1))});
5543 ~setgroup2.value = 0;
5544 ~setgroup3.value = 0;
5545 ~setgroup4.value = 0;
5546 ~setgroup5.value = 0;
5547 ~setgroup6.value = 0;
5548 ~setgroup7.value = 0;
5549 ~setgroup8.value = 0;
5554 ~setgroup2 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)-(20*3),~bpt+69+5,20,20/1.6180339887499)).states_([["g2",Color.white,Color.black],["s2",Color.green,Color.black]]).action_({arg button;
5556 if(button.value == 1, {
5557 12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([~sg2a1,~sg2a2,~sg2a3,~sg2a4,~sg2a5,~sg2a6,~sg2a7,~sg2a8,~sg2a9,~sg2a10,~sg2a11,~sg2a12].at(x-1))});
5558 12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([~sg2b1,~sg2b2,~sg2b3,~sg2b4,~sg2b5,~sg2b6,~sg2b7,~sg2b8,~sg2b9,~sg2b10,~sg2b11,~sg2b12].at(x-1))});
5559 12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([~sg2c1,~sg2c2,~sg2c3,~sg2c4,~sg2c5,~sg2c6,~sg2c7,~sg2c8,~sg2c9,~sg2c10,~sg2c11,~sg2c12].at(x-1))});
5560 12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([~sg2d1,~sg2d2,~sg2d3,~sg2d4,~sg2d5,~sg2d6,~sg2d7,~sg2d8,~sg2d9,~sg2d10,~sg2d11,~sg2d12].at(x-1))});
5561 12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([~sg2e1,~sg2e2,~sg2e3,~sg2e4,~sg2e5,~sg2e6,~sg2e7,~sg2e8,~sg2e9,~sg2e10,~sg2e11,~sg2e12].at(x-1))});
5562 12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([~sg2f1,~sg2f2,~sg2f3,~sg2f4,~sg2f5,~sg2f6,~sg2f7,~sg2f8,~sg2f9,~sg2f10,~sg2f11,~sg2f12].at(x-1))});
5563 12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([~sg2g1,~sg2g2,~sg2g3,~sg2g4,~sg2g5,~sg2g6,~sg2g7,~sg2g8,~sg2g9,~sg2g10,~sg2g11,~sg2g12].at(x-1))});
5564 12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([~sg2h1,~sg2h2,~sg2h3,~sg2h4,~sg2h5,~sg2h6,~sg2h7,~sg2h8,~sg2h9,~sg2h10,~sg2h11,~sg2h12].at(x-1))});
5566 ~setgroup1.value = 0;
5567 ~setgroup3.value = 0;
5568 ~setgroup4.value = 0;
5569 ~setgroup5.value = 0;
5570 ~setgroup6.value = 0;
5571 ~setgroup7.value = 0;
5572 ~setgroup8.value = 0;
5577 ~setgroup3 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)-(20*2),~bpt+69+5,20,20/1.6180339887499)).states_([["g3",Color.white,Color.black],["s3",Color.green,Color.black]]).action_({arg button;
5579 if(button.value == 1, {
5580 12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([~sg3a1,~sg3a2,~sg3a3,~sg3a4,~sg3a5,~sg3a6,~sg3a7,~sg3a8,~sg3a9,~sg3a10,~sg3a11,~sg3a12].at(x-1))});
5581 12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([~sg3b1,~sg3b2,~sg3b3,~sg3b4,~sg3b5,~sg3b6,~sg3b7,~sg3b8,~sg3b9,~sg3b10,~sg3b11,~sg3b12].at(x-1))});
5582 12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([~sg3c1,~sg3c2,~sg3c3,~sg3c4,~sg3c5,~sg3c6,~sg3c7,~sg3c8,~sg3c9,~sg3c10,~sg3c11,~sg3c12].at(x-1))});
5583 12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([~sg3d1,~sg3d2,~sg3d3,~sg3d4,~sg3d5,~sg3d6,~sg3d7,~sg3d8,~sg3d9,~sg3d10,~sg3d11,~sg3d12].at(x-1))});
5584 12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([~sg3e1,~sg3e2,~sg3e3,~sg3e4,~sg3e5,~sg3e6,~sg3e7,~sg3e8,~sg3e9,~sg3e10,~sg3e11,~sg3e12].at(x-1))});
5585 12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([~sg3f1,~sg3f2,~sg3f3,~sg3f4,~sg3f5,~sg3f6,~sg3f7,~sg3f8,~sg3f9,~sg3f10,~sg3f11,~sg3f12].at(x-1))});
5586 12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([~sg3g1,~sg3g2,~sg3g3,~sg3g4,~sg3g5,~sg3g6,~sg3g7,~sg3g8,~sg3g9,~sg3g10,~sg3g11,~sg3g12].at(x-1))});
5587 12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([~sg3h1,~sg3h2,~sg3h3,~sg3h4,~sg3h5,~sg3h6,~sg3h7,~sg3h8,~sg3h9,~sg3h10,~sg3h11,~sg3h12].at(x-1))});
5589 ~setgroup1.value = 0;
5590 ~setgroup2.value = 0;
5591 ~setgroup4.value = 0;
5592 ~setgroup5.value = 0;
5593 ~setgroup6.value = 0;
5594 ~setgroup7.value = 0;
5595 ~setgroup8.value = 0;
5600 ~setgroup4 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)-(20*1),~bpt+69+5,20,20/1.6180339887499)).states_([["g4",Color.white,Color.black],["s4",Color.green,Color.black]]).action_({arg button;
5602 if(button.value == 1, {
5603 12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([~sg4a1,~sg4a2,~sg4a3,~sg4a4,~sg4a5,~sg4a6,~sg4a7,~sg4a8,~sg4a9,~sg4a10,~sg4a11,~sg4a12].at(x-1))});
5604 12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([~sg4b1,~sg4b2,~sg4b3,~sg4b4,~sg4b5,~sg4b6,~sg4b7,~sg4b8,~sg4b9,~sg4b10,~sg4b11,~sg4b12].at(x-1))});
5605 12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([~sg4c1,~sg4c2,~sg4c3,~sg4c4,~sg4c5,~sg4c6,~sg4c7,~sg4c8,~sg4c9,~sg4c10,~sg4c11,~sg4c12].at(x-1))});
5606 12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([~sg4d1,~sg4d2,~sg4d3,~sg4d4,~sg4d5,~sg4d6,~sg4d7,~sg4d8,~sg4d9,~sg4d10,~sg4d11,~sg4d12].at(x-1))});
5607 12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([~sg4e1,~sg4e2,~sg4e3,~sg4e4,~sg4e5,~sg4e6,~sg4e7,~sg4e8,~sg4e9,~sg4e10,~sg4e11,~sg4e12].at(x-1))});
5608 12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([~sg4f1,~sg4f2,~sg4f3,~sg4f4,~sg4f5,~sg4f6,~sg4f7,~sg4f8,~sg4f9,~sg4f10,~sg4f11,~sg4f12].at(x-1))});
5609 12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([~sg4g1,~sg4g2,~sg4g3,~sg4g4,~sg4g5,~sg4g6,~sg4g7,~sg4g8,~sg4g9,~sg4g10,~sg4g11,~sg4g12].at(x-1))});
5610 12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([~sg4h1,~sg4h2,~sg4h3,~sg4h4,~sg4h5,~sg4h6,~sg4h7,~sg4h8,~sg4h9,~sg4h10,~sg4h11,~sg4h12].at(x-1))});
5612 ~setgroup1.value = 0;
5613 ~setgroup2.value = 0;
5614 ~setgroup3.value = 0;
5615 ~setgroup5.value = 0;
5616 ~setgroup6.value = 0;
5617 ~setgroup7.value = 0;
5618 ~setgroup8.value = 0;
5623 ~setgroup5 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)+(0*1),~bpt+69+5,20,20/1.6180339887499)).states_([["g5",Color.white,Color.black],["s5",Color.green,Color.black]]).action_({arg button;
5625 if(button.value == 1, {
5626 12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([~sg5a1,~sg5a2,~sg5a3,~sg5a4,~sg5a5,~sg5a6,~sg5a7,~sg5a8,~sg5a9,~sg5a10,~sg5a11,~sg5a12].at(x-1))});
5627 12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([~sg5b1,~sg5b2,~sg5b3,~sg5b4,~sg5b5,~sg5b6,~sg5b7,~sg5b8,~sg5b9,~sg5b10,~sg5b11,~sg5b12].at(x-1))});
5628 12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([~sg5c1,~sg5c2,~sg5c3,~sg5c4,~sg5c5,~sg5c6,~sg5c7,~sg5c8,~sg5c9,~sg5c10,~sg5c11,~sg5c12].at(x-1))});
5629 12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([~sg5d1,~sg5d2,~sg5d3,~sg5d4,~sg5d5,~sg5d6,~sg5d7,~sg5d8,~sg5d9,~sg5d10,~sg5d11,~sg5d12].at(x-1))});
5630 12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([~sg5e1,~sg5e2,~sg5e3,~sg5e4,~sg5e5,~sg5e6,~sg5e7,~sg5e8,~sg5e9,~sg5e10,~sg5e11,~sg5e12].at(x-1))});
5631 12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([~sg5f1,~sg5f2,~sg5f3,~sg5f4,~sg5f5,~sg5f6,~sg5f7,~sg5f8,~sg5f9,~sg5f10,~sg5f11,~sg5f12].at(x-1))});
5632 12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([~sg5g1,~sg5g2,~sg5g3,~sg5g4,~sg5g5,~sg5g6,~sg5g7,~sg5g8,~sg5g9,~sg5g10,~sg5g11,~sg5g12].at(x-1))});
5633 12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([~sg5h1,~sg5h2,~sg5h3,~sg5h4,~sg5h5,~sg5h6,~sg5h7,~sg5h8,~sg5h9,~sg5h10,~sg5h11,~sg5h12].at(x-1))});
5635 ~setgroup1.value = 0;
5636 ~setgroup2.value = 0;
5637 ~setgroup3.value = 0;
5638 ~setgroup4.value = 0;
5639 ~setgroup6.value = 0;
5640 ~setgroup7.value = 0;
5641 ~setgroup8.value = 0;
5646 ~setgroup6 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)+(20*1),~bpt+69+5,20,20/1.6180339887499)).states_([["g6",Color.white,Color.black],["s6",Color.green,Color.black]]).action_({arg button;
5648 if(button.value == 1, {
5649 12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([~sg6a1,~sg6a2,~sg6a3,~sg6a4,~sg6a5,~sg6a6,~sg6a7,~sg6a8,~sg6a9,~sg6a10,~sg6a11,~sg6a12].at(x-1))});
5650 12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([~sg6b1,~sg6b2,~sg6b3,~sg6b4,~sg6b5,~sg6b6,~sg6b7,~sg6b8,~sg6b9,~sg6b10,~sg6b11,~sg6b12].at(x-1))});
5651 12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([~sg6c1,~sg6c2,~sg6c3,~sg6c4,~sg6c5,~sg6c6,~sg6c7,~sg6c8,~sg6c9,~sg6c10,~sg6c11,~sg6c12].at(x-1))});
5652 12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([~sg6d1,~sg6d2,~sg6d3,~sg6d4,~sg6d5,~sg6d6,~sg6d7,~sg6d8,~sg6d9,~sg6d10,~sg6d11,~sg6d12].at(x-1))});
5653 12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([~sg6e1,~sg6e2,~sg6e3,~sg6e4,~sg6e5,~sg6e6,~sg6e7,~sg6e8,~sg6e9,~sg6e10,~sg6e11,~sg6e12].at(x-1))});
5654 12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([~sg6f1,~sg6f2,~sg6f3,~sg6f4,~sg6f5,~sg6f6,~sg6f7,~sg6f8,~sg6f9,~sg6f10,~sg6f11,~sg6f12].at(x-1))});
5655 12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([~sg6g1,~sg6g2,~sg6g3,~sg6g4,~sg6g5,~sg6g6,~sg6g7,~sg6g8,~sg6g9,~sg6g10,~sg6g11,~sg6g12].at(x-1))});
5656 12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([~sg6h1,~sg6h2,~sg6h3,~sg6h4,~sg6h5,~sg6h6,~sg6h7,~sg6h8,~sg6h9,~sg6h10,~sg6h11,~sg6h12].at(x-1))});
5658 ~setgroup1.value = 0;
5659 ~setgroup2.value = 0;
5660 ~setgroup3.value = 0;
5661 ~setgroup4.value = 0;
5662 ~setgroup5.value = 0;
5663 ~setgroup7.value = 0;
5664 ~setgroup8.value = 0;
5669 ~setgroup7 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)+(20*2),~bpt+69+5,20,20/1.6180339887499)).states_([["g7",Color.white,Color.black],["s7",Color.green,Color.black]]).action_({arg button;
5671 if(button.value == 1, {
5672 12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([~sg7a1,~sg7a2,~sg7a3,~sg7a4,~sg7a5,~sg7a6,~sg7a7,~sg7a8,~sg7a9,~sg7a10,~sg7a11,~sg7a12].at(x-1))});
5673 12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([~sg7b1,~sg7b2,~sg7b3,~sg7b4,~sg7b5,~sg7b6,~sg7b7,~sg7b8,~sg7b9,~sg7b10,~sg7b11,~sg7b12].at(x-1))});
5674 12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([~sg7c1,~sg7c2,~sg7c3,~sg7c4,~sg7c5,~sg7c6,~sg7c7,~sg7c8,~sg7c9,~sg7c10,~sg7c11,~sg7c12].at(x-1))});
5675 12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([~sg7d1,~sg7d2,~sg7d3,~sg7d4,~sg7d5,~sg7d6,~sg7d7,~sg7d8,~sg7d9,~sg7d10,~sg7d11,~sg7d12].at(x-1))});
5676 12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([~sg7e1,~sg7e2,~sg7e3,~sg7e4,~sg7e5,~sg7e6,~sg7e7,~sg7e8,~sg7e9,~sg7e10,~sg7e11,~sg7e12].at(x-1))});
5677 12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([~sg7f1,~sg7f2,~sg7f3,~sg7f4,~sg7f5,~sg7f6,~sg7f7,~sg7f8,~sg7f9,~sg7f10,~sg7f11,~sg7f12].at(x-1))});
5678 12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([~sg7g1,~sg7g2,~sg7g3,~sg7g4,~sg7g5,~sg7g6,~sg7g7,~sg7g8,~sg7g9,~sg7g10,~sg7g11,~sg7g12].at(x-1))});
5679 12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([~sg7h1,~sg7h2,~sg7h3,~sg7h4,~sg7h5,~sg7h6,~sg7h7,~sg7h8,~sg7h9,~sg7h10,~sg7h11,~sg7h12].at(x-1))});
5681 ~setgroup1.value = 0;
5682 ~setgroup2.value = 0;
5683 ~setgroup3.value = 0;
5684 ~setgroup4.value = 0;
5685 ~setgroup5.value = 0;
5686 ~setgroup6.value = 0;
5687 ~setgroup8.value = 0;
5692 ~setgroup8 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)+(20*3),~bpt+69+5,20,20/1.6180339887499)).states_([["g8",Color.white,Color.black],["s8",Color.green,Color.black]]).action_({arg button;
5694 if(button.value == 1, {
5695 12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([~sg8a1,~sg8a2,~sg8a3,~sg8a4,~sg8a5,~sg8a6,~sg8a7,~sg8a8,~sg8a9,~sg8a10,~sg8a11,~sg8a12].at(x-1))});
5696 12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([~sg8b1,~sg8b2,~sg8b3,~sg8b4,~sg8b5,~sg8b6,~sg8b7,~sg8b8,~sg8b9,~sg8b10,~sg8b11,~sg8b12].at(x-1))});
5697 12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([~sg8c1,~sg8c2,~sg8c3,~sg8c4,~sg8c5,~sg8c6,~sg8c7,~sg8c8,~sg8c9,~sg8c10,~sg8c11,~sg8c12].at(x-1))});
5698 12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([~sg8d1,~sg8d2,~sg8d3,~sg8d4,~sg8d5,~sg8d6,~sg8d7,~sg8d8,~sg8d9,~sg8d10,~sg8d11,~sg8d12].at(x-1))});
5699 12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([~sg8e1,~sg8e2,~sg8e3,~sg8e4,~sg8e5,~sg8e6,~sg8e7,~sg8e8,~sg8e9,~sg8e10,~sg8e11,~sg8e12].at(x-1))});
5700 12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([~sg8f1,~sg8f2,~sg8f3,~sg8f4,~sg8f5,~sg8f6,~sg8f7,~sg8f8,~sg8f9,~sg8f10,~sg8f11,~sg8f12].at(x-1))});
5701 12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([~sg8g1,~sg8g2,~sg8g3,~sg8g4,~sg8g5,~sg8g6,~sg8g7,~sg8g8,~sg8g9,~sg8g10,~sg8g11,~sg8g12].at(x-1))});
5702 12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([~sg8h1,~sg8h2,~sg8h3,~sg8h4,~sg8h5,~sg8h6,~sg8h7,~sg8h8,~sg8h9,~sg8h10,~sg8h11,~sg8h12].at(x-1))});
5704 ~setgroup1.value = 0;
5705 ~setgroup2.value = 0;
5706 ~setgroup3.value = 0;
5707 ~setgroup4.value = 0;
5708 ~setgroup5.value = 0;
5709 ~setgroup6.value = 0;
5710 ~setgroup7.value = 0;
5717 //if setgroup values are nil
5719 if(~setgroupval == nil, {~setgroup1.value = 1;});
5720 if(~setgroupval == 1, {~setgroup1.value = 1;});
5721 if(~setgroupval == 2, {~setgroup2.value = 1;});
5722 if(~setgroupval == 3, {~setgroup3.value = 1;});
5723 if(~setgroupval == 4, {~setgroup4.value = 1;});
5724 if(~setgroupval == 5, {~setgroup5.value = 1;});
5725 if(~setgroupval == 6, {~setgroup6.value = 1;});
5726 if(~setgroupval == 7, {~setgroup7.value = 1;});
5727 if(~setgroupval == 8, {~setgroup8.value = 1;});
5730 //save chord notes buttons, s1-s8
5732 n1 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)-(60*2),Window.screenBounds.height-88,60,60/1.6180339887499)).states_([["s1",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button; if(((button.value == 0) or: (button.value == 1)), {~r1=~fp1;~r2=~fp2;~r3=~fp3;~r4=~fp4;~r5=~fp5;~r6=~fp6;~r7=~fp7;~r8=~fp8;~r9=~fp9;~r10=~fp10;~r11=~fp11;~r12=~fp12; 12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))}); "s"++"\n"++[ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].asString.postString; ~u1=~f1;~u2=~f2;~u3=~f3;~u4=~f4;~u5=~f5;~u6=~f6;~u7=~f7;~u8=~f8;~u9=~f9;~u10=~f10;~u11=~f11;~u12=~f12; ~si1aset.value;~si1bset.value;
5734 if(~setgroup1.value == 1, {12.do(x = 0; {("sg1a"++(x=x+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(x-1))});});
5735 if(~setgroup2.value == 1, {12.do(x = 0; {("sg2a"++(x=x+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(x-1))});});
5736 if(~setgroup3.value == 1, {12.do(x = 0; {("sg3a"++(x=x+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(x-1))});});
5737 if(~setgroup4.value == 1, {12.do(x = 0; {("sg4a"++(x=x+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(x-1))});});
5738 if(~setgroup5.value == 1, {12.do(x = 0; {("sg5a"++(x=x+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(x-1))});});
5739 if(~setgroup6.value == 1, {12.do(x = 0; {("sg6a"++(x=x+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(x-1))});});
5740 if(~setgroup7.value == 1, {12.do(x = 0; {("sg7a"++(x=x+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(x-1))});});
5741 if(~setgroup8.value == 1, {12.do(x = 0; {("sg8a"++(x=x+1)).asSymbol.envirPut([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12].at(x-1))});});
5743 n1.states_([["s1",Color.green,Color.black]]);
5744 n2.states_([["s2",Color.white,Color.black]]);
5745 n3.states_([["s3",Color.white,Color.black]]);
5746 n4.states_([["s4",Color.white,Color.black]]);
5747 n5.states_([["s5",Color.white,Color.black]]);
5748 n6.states_([["s6",Color.white,Color.black]]);
5749 n7.states_([["s7",Color.white,Color.black]]);
5750 n8.states_([["s8",Color.white,Color.black]]);
5753 n2 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)-(60*1),Window.screenBounds.height-88,60,60/1.6180339887499)).states_([["s2",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button; if(((button.value == 0) or: (button.value == 1)), {~r1b=~fp1b;~r2b=~fp2b;~r3b=~fp3b;~r4b=~fp4b;~r5b=~fp5b;~r6b=~fp6b;~r7b=~fp7b;~r8b=~fp8b;~r9b=~fp9b;~r10b=~fp10b;~r11b=~fp11b;~r12b=~fp12b; 12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))}); "s"++"\n"++[ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].asString.postString; ~u1b=~f1;~u2b=~f2;~u3b=~f3;~u4b=~f4;~u5b=~f5;~u6b=~f6;~u7b=~f7;~u8b=~f8;~u9b=~f9;~u10b=~f10;~u11b=~f11;~u12b=~f12; ~si2set.value;
5755 if(~setgroup1.value == 1, {12.do(x = 0; {("sg1b"++(x=x+1)).asSymbol.envirPut([~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b].at(x-1))});});
5756 if(~setgroup2.value == 1, {12.do(x = 0; {("sg2b"++(x=x+1)).asSymbol.envirPut([~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b].at(x-1))});});
5757 if(~setgroup3.value == 1, {12.do(x = 0; {("sg3b"++(x=x+1)).asSymbol.envirPut([~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b].at(x-1))});});
5758 if(~setgroup4.value == 1, {12.do(x = 0; {("sg4b"++(x=x+1)).asSymbol.envirPut([~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b].at(x-1))});});
5759 if(~setgroup5.value == 1, {12.do(x = 0; {("sg5b"++(x=x+1)).asSymbol.envirPut([~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b].at(x-1))});});
5760 if(~setgroup6.value == 1, {12.do(x = 0; {("sg6b"++(x=x+1)).asSymbol.envirPut([~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b].at(x-1))});});
5761 if(~setgroup7.value == 1, {12.do(x = 0; {("sg7b"++(x=x+1)).asSymbol.envirPut([~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b].at(x-1))});});
5762 if(~setgroup8.value == 1, {12.do(x = 0; {("sg8b"++(x=x+1)).asSymbol.envirPut([~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b].at(x-1))});});
5764 n1.states_([["s1",Color.white,Color.black]]);
5765 n2.states_([["s2",Color.green,Color.black]]);
5766 n3.states_([["s3",Color.white,Color.black]]);
5767 n4.states_([["s4",Color.white,Color.black]]);
5768 n5.states_([["s5",Color.white,Color.black]]);
5769 n6.states_([["s6",Color.white,Color.black]]);
5770 n7.states_([["s7",Color.white,Color.black]]);
5771 n8.states_([["s8",Color.white,Color.black]]);
5773 n3 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)+(0), Window.screenBounds.height-88,60,60/1.6180339887499)).states_([["s3",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button; if(((button.value == 0) or: (button.value == 1)), {~r1c=~fp1c;~r2c=~fp2c;~r3c=~fp3c;~r4c=~fp4c;~r5c=~fp5c;~r6c=~fp6c;~r7c=~fp7c;~r8c=~fp8c;~r9c=~fp9c;~r10c=~fp10c;~r11c=~fp11c;~r12c=~fp12c; 12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))}); "s"++"\n"++[ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].asString.postString; ~u1c=~f1;~u2c=~f2;~u3c=~f3;~u4c=~f4;~u5c=~f5;~u6c=~f6;~u7c=~f7;~u8c=~f8;~u9c=~f9;~u10c=~f10;~u11c=~f11;~u12c=~f12; ~si3set.value;
5775 if(~setgroup1.value == 1, {12.do(x = 0; {("sg1c"++(x=x+1)).asSymbol.envirPut([~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c].at(x-1))});});
5776 if(~setgroup2.value == 1, {12.do(x = 0; {("sg2c"++(x=x+1)).asSymbol.envirPut([~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c].at(x-1))});});
5777 if(~setgroup3.value == 1, {12.do(x = 0; {("sg3c"++(x=x+1)).asSymbol.envirPut([~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c].at(x-1))});});
5778 if(~setgroup4.value == 1, {12.do(x = 0; {("sg4c"++(x=x+1)).asSymbol.envirPut([~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c].at(x-1))});});
5779 if(~setgroup5.value == 1, {12.do(x = 0; {("sg5c"++(x=x+1)).asSymbol.envirPut([~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c].at(x-1))});});
5780 if(~setgroup6.value == 1, {12.do(x = 0; {("sg6c"++(x=x+1)).asSymbol.envirPut([~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c].at(x-1))});});
5781 if(~setgroup7.value == 1, {12.do(x = 0; {("sg7c"++(x=x+1)).asSymbol.envirPut([~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c].at(x-1))});});
5782 if(~setgroup8.value == 1, {12.do(x = 0; {("sg8c"++(x=x+1)).asSymbol.envirPut([~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c].at(x-1))});});
5784 n1.states_([["s1",Color.white,Color.black]]);
5785 n2.states_([["s2",Color.white,Color.black]]);
5786 n3.states_([["s3",Color.green,Color.black]]);
5787 n4.states_([["s4",Color.white,Color.black]]);
5788 n5.states_([["s5",Color.white,Color.black]]);
5789 n6.states_([["s6",Color.white,Color.black]]);
5790 n7.states_([["s7",Color.white,Color.black]]);
5791 n8.states_([["s8",Color.white,Color.black]]);
5793 n4 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)+(60*1),Window.screenBounds.height-88,60,60/1.6180339887499)).states_([["s4",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button; if(((button.value == 0) or: (button.value == 1)), {~r1d=~fp1d;~r2d=~fp2d;~r3d=~fp3d;~r4d=~fp4d;~r5d=~fp5d;~r6d=~fp6d;~r7d=~fp7d;~r8d=~fp8d;~r9d=~fp9d;~r10d=~fp10d;~r11d=~fp11d;~r12d=~fp12d; 12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))}); "s"++"\n"++[ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].asString.postString; ~u1d=~f1;~u2d=~f2;~u3d=~f3;~u4d=~f4;~u5d=~f5;~u6d=~f6;~u7d=~f7;~u8d=~f8;~u9d=~f9;~u10d=~f10;~u11d=~f11;~u12d=~f12; ~si4set.value;
5795 if(~setgroup1.value == 1, {12.do(x = 0; {("sg1d"++(x=x+1)).asSymbol.envirPut([~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d].at(x-1))});});
5796 if(~setgroup2.value == 1, {12.do(x = 0; {("sg2d"++(x=x+1)).asSymbol.envirPut([~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d].at(x-1))});});
5797 if(~setgroup3.value == 1, {12.do(x = 0; {("sg3d"++(x=x+1)).asSymbol.envirPut([~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d].at(x-1))});});
5798 if(~setgroup4.value == 1, {12.do(x = 0; {("sg4d"++(x=x+1)).asSymbol.envirPut([~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d].at(x-1))});});
5799 if(~setgroup5.value == 1, {12.do(x = 0; {("sg5d"++(x=x+1)).asSymbol.envirPut([~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d].at(x-1))});});
5800 if(~setgroup6.value == 1, {12.do(x = 0; {("sg6d"++(x=x+1)).asSymbol.envirPut([~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d].at(x-1))});});
5801 if(~setgroup7.value == 1, {12.do(x = 0; {("sg7d"++(x=x+1)).asSymbol.envirPut([~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d].at(x-1))});});
5802 if(~setgroup8.value == 1, {12.do(x = 0; {("sg8d"++(x=x+1)).asSymbol.envirPut([~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d].at(x-1))});});
5804 n1.states_([["s1",Color.white,Color.black]]);
5805 n2.states_([["s2",Color.white,Color.black]]);
5806 n3.states_([["s3",Color.white,Color.black]]);
5807 n4.states_([["s4",Color.green,Color.black]]);
5808 n5.states_([["s5",Color.white,Color.black]]);
5809 n6.states_([["s6",Color.white,Color.black]]);
5810 n7.states_([["s7",Color.white,Color.black]]);
5811 n8.states_([["s8",Color.white,Color.black]]);
5813 n5 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)-(60*2),Window.screenBounds.height-52,60,60/1.6180339887499)).states_([["s5",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button; if(((button.value == 0) or: (button.value == 1)), {~r1e=~fp1e;~r2e=~fp2e;~r3e=~fp3e;~r4e=~fp4e;~r5e=~fp5e;~r6e=~fp6e;~r7e=~fp7e;~r8e=~fp8e;~r9e=~fp9e;~r10e=~fp10e;~r11e=~fp11e;~r12e=~fp12e; 12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))}); "s"++"\n"++[ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].asString.postString; ~u1e=~f1;~u2e=~f2;~u3e=~f3;~u4e=~f4;~u5e=~f5;~u6e=~f6;~u7e=~f7;~u8e=~f8;~u9e=~f9;~u10e=~f10;~u11e=~f11;~u12e=~f12; ~si5set.value;
5815 if(~setgroup1.value == 1, {12.do(x = 0; {("sg1e"++(x=x+1)).asSymbol.envirPut([~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e].at(x-1))});});
5816 if(~setgroup2.value == 1, {12.do(x = 0; {("sg2e"++(x=x+1)).asSymbol.envirPut([~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e].at(x-1))});});
5817 if(~setgroup3.value == 1, {12.do(x = 0; {("sg3e"++(x=x+1)).asSymbol.envirPut([~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e].at(x-1))});});
5818 if(~setgroup4.value == 1, {12.do(x = 0; {("sg4e"++(x=x+1)).asSymbol.envirPut([~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e].at(x-1))});});
5819 if(~setgroup5.value == 1, {12.do(x = 0; {("sg5e"++(x=x+1)).asSymbol.envirPut([~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e].at(x-1))});});
5820 if(~setgroup6.value == 1, {12.do(x = 0; {("sg6e"++(x=x+1)).asSymbol.envirPut([~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e].at(x-1))});});
5821 if(~setgroup7.value == 1, {12.do(x = 0; {("sg7e"++(x=x+1)).asSymbol.envirPut([~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e].at(x-1))});});
5822 if(~setgroup8.value == 1, {12.do(x = 0; {("sg8e"++(x=x+1)).asSymbol.envirPut([~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e].at(x-1))});});
5824 n1.states_([["s1",Color.white,Color.black]]);
5825 n2.states_([["s2",Color.white,Color.black]]);
5826 n3.states_([["s3",Color.white,Color.black]]);
5827 n4.states_([["s4",Color.white,Color.black]]);
5828 n5.states_([["s5",Color.green,Color.black]]);
5829 n6.states_([["s6",Color.white,Color.black]]);
5830 n7.states_([["s7",Color.white,Color.black]]);
5831 n8.states_([["s8",Color.white,Color.black]]);
5833 n6 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)-(60*1),Window.screenBounds.height-52,60,60/1.6180339887499)).states_([["s6",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button; if(((button.value == 0) or: (button.value == 1)), {~r1f=~fp1f;~r2f=~fp2f;~r3f=~fp3f;~r4f=~fp4f;~r5f=~fp5f;~r6f=~fp6f;~r7f=~fp7f;~r8f=~fp8f;~r9f=~fp9f;~r10f=~fp10f;~r11f=~fp11f;~r12f=~fp12f; 12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))}); "s"++"\n"++[ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].asString.postString; ~u1f=~f1;~u2f=~f2;~u3f=~f3;~u4f=~f4;~u5f=~f5;~u6f=~f6;~u7f=~f7;~u8f=~f8;~u9f=~f9;~u10f=~f10;~u11e=~f11;~u12f=~f12; ~si6set.value;
5835 if(~setgroup1.value == 1, {12.do(x = 0; {("sg1f"++(x=x+1)).asSymbol.envirPut([~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f].at(x-1))});});
5836 if(~setgroup2.value == 1, {12.do(x = 0; {("sg2f"++(x=x+1)).asSymbol.envirPut([~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f].at(x-1))});});
5837 if(~setgroup3.value == 1, {12.do(x = 0; {("sg3f"++(x=x+1)).asSymbol.envirPut([~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f].at(x-1))});});
5838 if(~setgroup4.value == 1, {12.do(x = 0; {("sg4f"++(x=x+1)).asSymbol.envirPut([~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f].at(x-1))});});
5839 if(~setgroup5.value == 1, {12.do(x = 0; {("sg5f"++(x=x+1)).asSymbol.envirPut([~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f].at(x-1))});});
5840 if(~setgroup6.value == 1, {12.do(x = 0; {("sg6f"++(x=x+1)).asSymbol.envirPut([~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f].at(x-1))});});
5841 if(~setgroup7.value == 1, {12.do(x = 0; {("sg7f"++(x=x+1)).asSymbol.envirPut([~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f].at(x-1))});});
5842 if(~setgroup8.value == 1, {12.do(x = 0; {("sg8f"++(x=x+1)).asSymbol.envirPut([~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f].at(x-1))});});
5844 n1.states_([["s1",Color.white,Color.black]]);
5845 n2.states_([["s2",Color.white,Color.black]]);
5846 n3.states_([["s3",Color.white,Color.black]]);
5847 n4.states_([["s4",Color.white,Color.black]]);
5848 n5.states_([["s5",Color.white,Color.black]]);
5849 n6.states_([["s6",Color.green,Color.black]]);
5850 n7.states_([["s7",Color.white,Color.black]]);
5851 n8.states_([["s8",Color.white,Color.black]]);
5853 n7 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)+(0), Window.screenBounds.height-52,60,60/1.6180339887499)).states_([["s7",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button; if(((button.value == 0) or: (button.value == 1)), {~r1g=~fp1g;~r2g=~fp2g;~r3g=~fp3g;~r4g=~fp4g;~r5g=~fp5g;~r6g=~fp6g;~r7g=~fp7g;~r8g=~fp8g;~r9g=~fp9g;~r10g=~fp10g;~r11g=~fp11g;~r12g=~fp12g; 12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))}); "s"++"\n"++[ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].asString.postString; ~u1g=~f1;~u2g=~f2;~u3g=~f3;~u4g=~f4;~u5g=~f5;~u6g=~f6;~u7g=~f7;~u8g=~f8;~u9g=~f9;~u10g=~f10;~u11f=~f11;~u12g=~f12; ~si7set.value;
5855 if(~setgroup1.value == 1, {12.do(x = 0; {("sg1g"++(x=x+1)).asSymbol.envirPut([~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g].at(x-1))});});
5856 if(~setgroup2.value == 1, {12.do(x = 0; {("sg2g"++(x=x+1)).asSymbol.envirPut([~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g].at(x-1))});});
5857 if(~setgroup3.value == 1, {12.do(x = 0; {("sg3g"++(x=x+1)).asSymbol.envirPut([~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g].at(x-1))});});
5858 if(~setgroup4.value == 1, {12.do(x = 0; {("sg4g"++(x=x+1)).asSymbol.envirPut([~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g].at(x-1))});});
5859 if(~setgroup5.value == 1, {12.do(x = 0; {("sg5g"++(x=x+1)).asSymbol.envirPut([~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g].at(x-1))});});
5860 if(~setgroup6.value == 1, {12.do(x = 0; {("sg6g"++(x=x+1)).asSymbol.envirPut([~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g].at(x-1))});});
5861 if(~setgroup7.value == 1, {12.do(x = 0; {("sg7g"++(x=x+1)).asSymbol.envirPut([~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g].at(x-1))});});
5862 if(~setgroup8.value == 1, {12.do(x = 0; {("sg8g"++(x=x+1)).asSymbol.envirPut([~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g].at(x-1))});});
5864 n1.states_([["s1",Color.white,Color.black]]);
5865 n2.states_([["s2",Color.white,Color.black]]);
5866 n3.states_([["s3",Color.white,Color.black]]);
5867 n4.states_([["s4",Color.white,Color.black]]);
5868 n5.states_([["s5",Color.white,Color.black]]);
5869 n6.states_([["s6",Color.white,Color.black]]);
5870 n7.states_([["s7",Color.green,Color.black]]);
5871 n8.states_([["s8",Color.white,Color.black]]);
5873 n8 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/2)+(60*1),Window.screenBounds.height-52,60,60/1.6180339887499)).states_([["s8",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button; if(((button.value == 0) or: (button.value == 1)), {~r1h=~fp1h;~r2h=~fp2h;~r3h=~fp3h;~r4h=~fp4h;~r5h=~fp5h;~r6h=~fp6h;~r7h=~fp7h;~r8h=~fp8h;~r9h=~fp9h;~r10h=~fp10h;~r11h=~fp11h;~r12h=~fp12h; 12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].at(x-1))}); "s"++"\n"++[ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].asString.postString; ~u1h=~f1;~u2h=~f2;~u3h=~f3;~u4h=~f4;~u5h=~f5;~u6h=~f6;~u7h=~f7;~u8h=~f8;~u9h=~f9;~u10h=~f10;~u11g=~f11;~u12h=~f12; ~si8set.value;
5875 if(~setgroup1.value == 1, {12.do(x = 0; {("sg1h"++(x=x+1)).asSymbol.envirPut([~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h].at(x-1))});});
5876 if(~setgroup2.value == 1, {12.do(x = 0; {("sg2h"++(x=x+1)).asSymbol.envirPut([~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h].at(x-1))});});
5877 if(~setgroup3.value == 1, {12.do(x = 0; {("sg3h"++(x=x+1)).asSymbol.envirPut([~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h].at(x-1))});});
5878 if(~setgroup4.value == 1, {12.do(x = 0; {("sg4h"++(x=x+1)).asSymbol.envirPut([~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h].at(x-1))});});
5879 if(~setgroup5.value == 1, {12.do(x = 0; {("sg5h"++(x=x+1)).asSymbol.envirPut([~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h].at(x-1))});});
5880 if(~setgroup6.value == 1, {12.do(x = 0; {("sg6h"++(x=x+1)).asSymbol.envirPut([~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h].at(x-1))});});
5881 if(~setgroup7.value == 1, {12.do(x = 0; {("sg7h"++(x=x+1)).asSymbol.envirPut([~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h].at(x-1))});});
5882 if(~setgroup8.value == 1, {12.do(x = 0; {("sg8h"++(x=x+1)).asSymbol.envirPut([~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h].at(x-1))});});
5884 n1.states_([["s1",Color.white,Color.black]]);
5885 n2.states_([["s2",Color.white,Color.black]]);
5886 n3.states_([["s3",Color.white,Color.black]]);
5887 n4.states_([["s4",Color.white,Color.black]]);
5888 n5.states_([["s5",Color.white,Color.black]]);
5889 n6.states_([["s6",Color.white,Color.black]]);
5890 n7.states_([["s7",Color.white,Color.black]]);
5891 n8.states_([["s8",Color.green,Color.black]]);
5895 //undo saved chord pop-up menu
5897 ~undo = PopUpMenu(w, Rect(Window.screenBounds.width-(Window.screenBounds.width/3)+39,Window.screenBounds.height-52+19.777087639995-(40/1.6180339887499)-8,40,40/1.6180339887499)).items_(["uc","u1","u2","u3","u4","u5","u6","u7","u8"]).background_(Color.black).stringColor_(Color.white).action_({arg button;});
5900 //set button for undo pop-up menu
5902 set2 = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/3)+40+39,Window.screenBounds.height-52+19.777087639995-(40/1.6180339887499)-8,40,40/1.6180339887499)).states_([["set",Color.white,Color.black]]).action_({arg button;
5904 {~undo.value == 0}{if(([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ] != [~undof1,~undof2,~undof3,~undof4,~undof5,~undof6,~undof7,~undof8,~undof9,~undof10,~undof11,~undof12]).postln, {12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([~undof1,~undof2,~undof3,~undof4,~undof5,~undof6,~undof7,~undof8,~undof9,~undof10,~undof11,~undof12].at(x-1))});}/*,{12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut([~redof1,~redof2,~redof3,~redof4,~redof5,~redof6,~redof7,~redof8,~redof9,~redof10,~redof11,~redof12].at(x-1))});}*/);~undo.value = 0;}
5905 {~undo.value == 1}{if(([~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12] == [~r1,~r2,~r3,~r4,~r5,~r6,~r7,~r8,~r9,~r10,~r11,~r12]).postln, {12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([~u1,~u2,~u3,~u4,~u5,~u6,~u7,~u8,~u9,~u10,~u11,~u12].at(x-1))});},{12.do(x = 0; {("fp"++(x=x+1)).asSymbol.envirPut([~r1,~r2,~r3,~r4,~r5,~r6,~r7,~r8,~r9,~r10,~r11,~r12].at(x-1))});});~undo.value = 0;}
5906 {~undo.value == 2}{if([~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b] == [~r1b,~r2b,~r3b,~r4b,~r5b,~r6b,~r7b,~r8b,~r9b,~r10b,~r11b,~r12b], {12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([~u1b,~u2b,~u3b,~u4b,~u5b,~u6b,~u7b,~u8b,~u9b,~u10b,~u11b,~u12b].at(x-1))});},{12.do(x = 0; {("fp"++(x=x+1)++"b").asSymbol.envirPut([~r1b,~r2b,~r3b,~r4b,~r5b,~r6b,~r7b,~r8b,~r9b,~r10b,~r11b,~r12b].at(x-1))});});~undo.value = 0;}
5907 {~undo.value == 3}{if([~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c] == [~r1c,~r2c,~r3c,~r4c,~r5c,~r6c,~r7c,~r8c,~r9c,~r10c,~r11c,~r12c], {12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([~u1c,~u2c,~u3c,~u4c,~u5c,~u6c,~u7c,~u8c,~u9c,~u10c,~u11c,~u12c].at(x-1))});},{12.do(x = 0; {("fp"++(x=x+1)++"c").asSymbol.envirPut([~r1c,~r2c,~r3c,~r4c,~r5c,~r6c,~r7c,~r8c,~r9c,~r10c,~r11c,~r12c].at(x-1))});});~undo.value = 0;}
5908 {~undo.value == 4}{if([~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d] == [~r1d,~r2d,~r3d,~r4d,~r5d,~r6d,~r7d,~r8d,~r9d,~r10d,~r11d,~r12d], {12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([~u1d,~u2d,~u3d,~u4d,~u5d,~u6d,~u7d,~u8d,~u9d,~u10d,~u11d,~u12d].at(x-1))});},{12.do(x = 0; {("fp"++(x=x+1)++"d").asSymbol.envirPut([~r1d,~r2d,~r3d,~r4d,~r5d,~r6d,~r7d,~r8d,~r9d,~r10d,~r11d,~r12d].at(x-1))});});~undo.value = 0;}
5909 {~undo.value == 5}{if([~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e] == [~r1e,~r2e,~r3e,~r4e,~r5e,~r6e,~r7e,~r8e,~r9e,~r10e,~r11e,~r12e], {12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([~u1e,~u2e,~u3e,~u4e,~u5e,~u6e,~u7e,~u8e,~u9e,~u10e,~u11e,~u12e].at(x-1))});},{12.do(x = 0; {("fp"++(x=x+1)++"e").asSymbol.envirPut([~r1e,~r2e,~r3e,~r4e,~r5e,~r6e,~r7e,~r8e,~r9e,~r10e,~r11e,~r12e].at(x-1))});});~undo.value = 0;}
5910 {~undo.value == 6}{if([~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f] == [~r1f,~r2f,~r3f,~r4f,~r5f,~r6f,~r7f,~r8f,~r9f,~r10f,~r11f,~r12f], {12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([~u1f,~u2f,~u3f,~u4f,~u5f,~u6f,~u7f,~u8f,~u9f,~u10f,~u11f,~u12f].at(x-1))});},{12.do(x = 0; {("fp"++(x=x+1)++"f").asSymbol.envirPut([~r1f,~r2f,~r3f,~r4f,~r5f,~r6f,~r7f,~r8f,~r9f,~r10f,~r11f,~r12f].at(x-1))});});~undo.value = 0;}
5911 {~undo.value == 7}{if([~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g] == [~r1g,~r2g,~r3g,~r4g,~r5g,~r6g,~r7g,~r8g,~r9g,~r10g,~r11g,~r12g], {12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([~u1g,~u2g,~u3g,~u4g,~u5g,~u6g,~u7g,~u8g,~u9g,~u10g,~u11g,~u12g].at(x-1))});},{12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([~r1g,~r2g,~r3g,~r4g,~r5g,~r6g,~r7g,~r8g,~r9g,~r10g,~r11g,~r12g].at(x-1))});});~undo.value = 0;}
5912 {~undo.value == 8}{if([~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h] == [~r1h,~r2h,~r3h,~r4h,~r5h,~r6h,~r7h,~r8h,~r9h,~r10h,~r11h,~r12h], {12.do(x = 0; {("fp"++(x=x+1)++"h").asSymbol.envirPut([~u1h,~u2h,~u3h,~u4h,~u5h,~u6h,~u7h,~u8h,~u9h,~u10h,~u11h,~u12h].at(x-1))});},{12.do(x = 0; {("fp"++(x=x+1)++"g").asSymbol.envirPut([~r1h,~r2h,~r3h,~r4h,~r5h,~r6h,~r7h,~r8h,~r9h,~r10h,~r11h,~r12h].at(x-1))});});~undo.value = 0;};
5916 //record/stop record button
5918 ~startrecord = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/3)+39,Window.screenBounds.height-52+19.777087639995,28,28/1.6180339887499)).states_([["rc",Color.white,Color.black],["/rc",Color.black,Color.red]]).action_({arg button;
5920 if(button.value == 1, {~numsynths.stop; s.record; if(button.value == 0, {button.value = 1});},
5921 {s.stopRecording; ~startrecord.value = 0; ~pauserecord.value = 0; ~numsynths.stop; ~numsynths.play;});
5925 //pause record button
5927 ~pauserecord = Button.new(w,Rect(Window.screenBounds.width-(Window.screenBounds.width/3)+28+39,Window.screenBounds.height-52+19.777087639995,28,28/1.6180339887499)).states_([["prc",Color.white,Color.black],["/prc",Color.black,Color.blue]]).action_({arg button; if(button == 1, {s.pauseRecording;}, {s.record});});
5930 //minimize GUI window button
5932 ~min = Button.new(w,Rect(Window.screenBounds.width-20,~bpt+69+5-(20/1.6180339887499),20,20/1.6180339887499)).states_([["m",Color.white,Color.black]]).action_({arg button; w.minimize;
5934 ~fullscreen_correct = {w.fullScreen};
5935 ~fscview = UserView(w, Rect(0,0, Window.screenBounds.width-100, Window.screenBounds.height;));
5936 ~fullscreen_button = Button.new(w,Rect(Window.screenBounds.width/2-35,Window.screenBounds.height/2+120,150,20)).states_([["re-adjust to fullscreen",Color.white,Color.black]]).action_({arg button; w.fullScreen; ~fullscreen_button.close; ~fullscreen_button = nil;});
5937 ~fscview.mouseEnterAction_{|v, x, y| ~fullscreen_correct.value; ~fullscreen_correct = nil; ~fscview.close; ~fscview = nil; ~fullscreen_button.close; ~fullscreen_button = nil;};
5941 //close GUI window button
5943 ~close = Button.new(w,Rect(Window.screenBounds.width-20,~bpt+69+5,20,20/1.6180339887499)).states_([["c",Color.white,Color.black]]).action_({arg button;
5945 if(~closemessage != nil, {~closemessage.close}, {nil});
5946 ~closemessage = View(w, Rect(Window.screenBounds.width-(340+46),Window.screenBounds.height-(340+46/1.6180339887499)-110,340+46,340+46/1.6180339887499)).background_(Color.black).front;
5947 ~closemessagestring = StaticText(~closemessage, Rect(0,0,340+46,340+46/1.6180339887499)).background_(Color.black);
5948 ~closemessagestring.align = \center;
5949 ~closemessagestring.string ="Close Timewave Synth?";
5950 ~closemessagestring.stringColor = Color.white;
5951 ~closemessagebutton1 = Button.new(~closemessage,Rect(120-46+40,340/1.6180339887499-30,46,46/1.6180339887499)).states_([["Yes",Color.white,Color.black]]).action_({AppClock.sched(0, {~cpumonitorroutine.stop; ~metronome.stop; ~loop.stop; ~loop.reset; ~numsynths.stop; w.close; Task({1.do({if(~l1a.isRunning == true or: ~l1a1.isRunning == true, {~synthfree.value;}, {nil}); 1.wait; Server.freeAll;});}).play;});});
5952 ~closemessagebutton2 = Button.new(~closemessage,Rect(320+46-130,340/1.6180339887499-30,46,46/1.6180339887499)).states_([["No",Color.white,Color.black]]).action_({AppClock.sched(0, {~closemessage.close;});});
5953 ~closemessage.front;
5958 w.front; w.fullScreen;
5960 /* e-mail: ken_brant@ymail.com */
5967 //Interpreted King Wen Sequences
5971 (#a,b,c,d,e,f = /*[ 128.43436842029,128.43436842029,128.43436842029,128.43436842029,128.43436842029,128.43436842029 ]*/
5972 [ ~basefreq,~basefreq,~basefreq,~basefreq,~basefreq,~basefreq ];
5973 ~a = a; ~b = b; ~c =c; ~d = d; ~e = e;~f=f;);
5975 ~fth = 1.4142135623729;
5976 ~bi = ~fth; (~bi = "binary interval" - intverval of key change to a hexagram line's opposite in King Wen sequence)
5981 /*1*/ #a,b,c,d,e,f=[ ~a,~b,~c,~d,~e,~f ],
5982 /*2*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d/~bi, e = e/~bi, f = f/~bi ],
5983 /*3*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],
5984 /*4*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],
5985 /*5*/ [ a = a/~bi, b = b*~bi, c = c, d = d*~bi, e = e, f = f*~bi ],
5986 /*6*/ [ a = a*~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f/~bi ],
5987 /*7*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d, e = e, f = f ],
5988 /*8*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
5989 /*9*/ [ a = a*~bi, b = b, c = c, d = d*~bi, e = e*~bi, f = f*~bi ],
5990 /*10*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],
5991 /*11*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e, f = f ],
5992 /*12*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d/~bi, e = e/~bi, f = f/~bi ],
5993 /*13*/ [ a = a, b = b, c = c, d = d*~bi, e = e, f = f*~bi ],
5994 /*14*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],
5995 /*15*/ [ a = a/~bi, b = b, c = c/~bi, d = d, e = e/~bi, f = f/~bi ],
5996 /*16*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],
5997 /*17*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],
5998 /*18*/ [ a = a*~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f/~bi ],
5999 /*19*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e, f = f*~bi ],
6000 /*20*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f/~bi ],
6001 /*21*/ [ a = a, b = b/~bi, c = c*~bi, d = d, e = e, f = f*~bi ],
6002 /*22*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],
6003 /*23*/ [ a = a, b = b, c = c, d = d/~bi, e = e, f = f/~bi ],
6004 /*24*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],
6005 /*25*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d, e = e, f = f ],
6006 /*26*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],
6007 /*27*/ [ a = a, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],
6008 /*28*/ [ a = a/~bi, b = b*~bi, c = c*~bi, d = d*~bi, e = e*~bi, f = f/~bi ],
6009 /*29*/ [ a = a, b = b, c = c/~bi, d = d/~bi, e = e, f = f ],
6010 /*30*/ [ a = a*~bi, b = b/~bi, c = c*~bi, d = d*~bi, e = e/~bi, f = f*~bi ],
6011 /*31*/ [ a = a/~bi, b = b*~bi, c = c, d = d, e = e, f = f/~bi ],
6012 /*32*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],
6013 /*33*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
6014 /*34*/ [ a = a/~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f*~bi ],
6015 /*35*/ [ a = a*~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f/~bi ],
6016 /*36*/ [ a = a/~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f*~bi ],
6017 /*37*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e, f = f ],
6018 /*38*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],
6019 /*39*/ [ a = a/~bi, b = b*~bi, c = c/~bi, d = d*~bi, e = e/~bi, f = f/~bi ],
6020 /*40*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],
6021 /*41*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f*~bi ],
6022 /*42*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
6023 /*43*/ [ a = a/~bi, b = b, c = c*~bi, d = d*~bi, e = e*~bi, f = f ],
6024 /*44*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],
6025 /*45*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],
6026 /*46*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],
6027 /*47*/ [ a = a, b = b*~bi, c = c*~bi, d = d/~bi, e = e, f = f ],
6028 /*48*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],
6029 /*49*/ [ a = a, b = b, c = c*~bi, d = d, e = e/~bi, f = f*~bi ],
6030 /*50*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],
6031 /*51*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f*~bi ],
6032 /*52*/ [ a = a*~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f/~bi ],
6033 /*53*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f ],
6034 /*54*/ [ a = a/~bi, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f*~bi ],
6035 /*55*/ [ a = a, b = b, c = c, d = d*~bi, e = e/~bi, f = f ],
6036 /*56*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],
6037 /*57*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e*~bi, f = f ],
6038 /*58*/ [ a = a/~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f*~bi ],
6039 /*59*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f/~bi ],
6040 /*60*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],
6041 /*61*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f ],
6042 /*62*/ [ a = a/~bi, b = b/~bi, c = c*~bi, d = d*~bi, e = e/~bi, f = f/~bi ],
6043 /*63*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e, f = f*~bi ],
6044 /*64*/ [ a = a*~bi, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f/~bi ]
6046 /*1*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],...
6051 /*1*/ #a,b,c,d,e,f=[ ~a,~b,~c,~d,~e,~f ],
6052 /*2*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],
6053 /*3*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],
6054 /*4*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],
6055 /*5*/ [ a = a/~bi, b = b*~bi, c = c, d = d*~bi, e = e, f = f*~bi ],
6056 /*6*/ [ a = a*~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f/~bi ],
6057 /*7*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d, e = e, f = f ],
6058 /*8*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
6059 /*9*/ [ a = a*~bi, b = b, c = c, d = d*~bi, e = e*~bi, f = f*~bi ],
6060 /*10*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],
6061 /*11*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e, f = f ],
6062 /*12*/ [ a = a*~n2*~bi, b = b*~n2*~bi, c = c*~n2*~bi, d = d*~n2/~bi, e = e*~n2/~bi, f = f*~n2/~bi ],
6063 /*13*/ [ a = a, b = b, c = c, d = d*~bi, e = e, f = f*~bi ],
6064 /*14*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],
6065 /*15*/ [ a = a/~bi, b = b, c = c/~bi, d = d, e = e/~bi, f = f/~bi ],
6066 /*16*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],
6067 /*17*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],
6068 /*18*/ [ a = a*~n3*~bi, b = b*~n3/~bi, c = c*~n3/~bi, d = d*~n3*~bi, e = e*~n3*~bi, f = f*~n3/~bi ],
6069 /*19*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e, f = f*~bi ],
6070 /*20*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f/~bi ],
6071 /*21*/ [ a = a, b = b/~bi, c = c*~bi, d = d, e = e, f = f*~bi ],
6072 /*22*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],
6073 /*23*/ [ a = a, b = b, c = c, d = d/~bi, e = e, f = f/~bi ],
6074 /*24*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],
6075 /*25*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d, e = e, f = f ],
6076 /*26*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],
6077 /*27*/ [ a = a, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],
6078 /*28*/ [ a = a*~n4/~bi, b = b*~n4*~bi, c = c*~n4*~bi, d = d*~n4*~bi, e = e*~n4*~bi, f = f*~n4/~bi ],
6079 /*29*/ [ a = a, b = b, c = c/~bi, d = d/~bi, e = e, f = f ],
6080 /*30*/ [ a = a*~n5*~bi, b = b*~n5/~bi, c = c*~n5*~bi, d = d*~n5*~bi, e = e*~n5/~bi, f = f*~n5*~bi ],
6081 /*31*/ [ a = a/~bi, b = b*~bi, c = c, d = d, e = e, f = f/~bi ],
6082 /*32*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],
6083 /*33*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
6084 /*34*/ [ a = a/~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f*~bi ],
6085 /*35*/ [ a = a*~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f/~bi ],
6086 /*36*/ [ a = a/~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f*~bi ],
6087 /*37*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e, f = f ],
6088 /*38*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],
6089 /*39*/ [ a = a*~n6/~bi, b = b*~n6*~bi, c = c*~n6/~bi, d = d*~n6*~bi, e = e*~n6/~bi, f = f*~n6/~bi ],
6090 /*40*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],
6091 /*41*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f*~bi ],
6092 /*42*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
6093 /*43*/ [ a = a/~bi, b = b, c = c*~bi, d = d*~bi, e = e*~bi, f = f ],
6094 /*44*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],
6095 /*45*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],
6096 /*46*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],
6097 /*47*/ [ a = a, b = b*~bi, c = c*~bi, d = d/~bi, e = e, f = f ],
6098 /*48*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],
6099 /*49*/ [ a = a, b = b, c = c*~bi, d = d, e = e/~bi, f = f*~bi ],
6100 /*50*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],
6101 /*51*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f*~bi ],
6102 /*52*/ [ a = a*~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f/~bi ],
6103 /*53*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f ],
6104 /*54*/ [ a = a*~n7/~bi, b = b*~n7/~bi, c = c*~n7*~bi, d = d*~n7/~bi, e = e*~n7*~bi, f = f*~n7*~bi ],
6105 /*55*/ [ a = a, b = b, c = c, d = d*~bi, e = e/~bi, f = f ],
6106 /*56*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],
6107 /*57*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e*~bi, f = f ],
6108 /*58*/ [ a = a/~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f*~bi ],
6109 /*59*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f/~bi ],
6110 /*60*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],
6111 /*61*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f ],
6112 /*62*/ [ a = a*~n8/~bi, b = b*~n8/~bi, c = c*~n8*~bi, d = d*~n8*~bi, e = e*~n8/~bi, f = f*~n8/~bi ],
6113 /*63*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e, f = f*~bi ],
6114 /*64*/ [ a = a*~n9*~bi, b = b*~n9/~bi, c = c*~n9*~bi, d = d*~n9/~bi, e = e*~n9*~bi, f = f*~n9/~bi ]
6116 /*1*/ [ a = a, b = b*~bi, c = c, d = d*~bi, e = e, f = f*~bi ],...
6121 /*1*/ #a,b,c,d,e,f=[ ~a,~b,~c,~d,~e,~f ],
6122 /*2*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],
6123 /*3*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
6124 /*4*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1/~bi ],
6125 /*5*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],
6126 /*6*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1/~bi ],
6127 /*7*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1 ],
6128 /*8*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],
6129 /*9*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1*~bi ],
6130 /*10*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],
6131 /*11*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],
6132 /*12*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],
6133 /*13*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],
6134 /*14*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],
6135 /*15*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1/~bi, f = f*~n1/~bi ],
6136 /*16*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],
6137 /*17*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
6138 /*18*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1/~bi ],
6139 /*19*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1, f = f*~n1*~bi ],
6140 /*20*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1/~bi ],
6141 /*21*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
6142 /*22*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],
6143 /*23*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1, f = f*~n1/~bi ],
6144 /*24*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
6145 /*25*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1, e = e*~n1, f = f*~n1 ],
6146 /*26*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],
6147 /*27*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1 ],
6148 /*28*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1/~bi ],
6149 /*29*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],
6150 /*30*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1*~bi ],
6151 /*31*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],
6152 /*32*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],
6153 /*33*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],
6154 /*34*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1*~bi ],
6155 /*35*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],
6156 /*36*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],
6157 /*37*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],
6158 /*38*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1 ],
6159 /*39*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1/~bi ],
6160 /*40*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1 ],
6161 /*41*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
6162 /*42*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],
6163 /*43*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],
6164 /*44*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],
6165 /*45*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1 ],
6166 /*46*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],
6167 /*47*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],
6168 /*48*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],
6169 /*49*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1, e = e*~n1/~bi, f = f*~n1*~bi ],
6170 /*50*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1/~bi ],
6171 /*51*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1*~bi ],
6172 /*52*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1/~bi ],
6173 /*53*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],
6174 /*54*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1*~bi ],
6175 /*55*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1 ],
6176 /*56*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],
6177 /*57*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],
6178 /*58*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1*~bi ],
6179 /*59*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],
6180 /*60*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
6181 /*61*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],
6182 /*62*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1/~bi ],
6183 /*63*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
6184 /*64*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1/~bi ]
6186 /*1*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],...