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/4;
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 ~base_frequency = ~freqmap.at(38); //default 38 (72.081352125182 hz), replace "~freqmap.at(#)" for custom value
49 //starting synthdef setting
51 if((~kws_setting == nil) or: (~ratio_setting == nil), {
53 ~kws_setting = 1; //default type of King Wen sequence interpretation
55 ~ratio_setting = "psine1"; //default ratio setting for synthdef
59 //low-pass filter settings
61 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.
63 if(~low_pass_filter_set_value == nil, {~low_pass_filter_freq_limit = 2100; //frequency limit for low-pass filter in synthdefs. default is 2100.
68 ~vol = 0.005; //default 0.005
83 //Key codes for keyboard functions - either unicode or keycode. To find key codes, see below:
85 ~rightarrow_keycode = 65363; //next note change increase
86 ~leftarrow_keycode = 65361; //next note change decrease
87 ~uparrow_keycode = 65362; //change synth up
88 ~downarrow_keycode = 65364; //change synth down
90 ~rightarrow_keycode1 = 124; //next note change increase (old version - may not work)
91 ~leftarrow_keycode1 = 123; //next note change decrease (old version - may not work)
92 ~uparrow_keycode1 = 126; //change synth up (old version - may not work)
93 ~downarrow_keycode1 = 125; //change synth down (old version - may not work)
95 ~enter_unicode = 13; //
96 ~s_unicode = 115; //start synth
97 ~m_unicode = 109; //mute/unmute all synths
98 ~r_unicode = 114; //routine/loop function
100 ~t_unicode = 116; //timer function
101 ~c_unicode = 99; //copy function
102 ~i_unicode = 105; //change synth up
103 ~k_unicode = 107; //change synth down
104 ~j_unicode = 106; //next note change decrease
105 ~l_unicode = 108; //next note change increase
106 ~spacebar_unicode = 32; //pause all synths
107 ~one_unicode = 49; //choose synth 1
108 ~two_unicode = 50; //choose synth 2
109 ~three_unicode = 51; //choose synth 3
110 ~four_unicode = 52; //choose synth 4
111 ~five_unicode = 53; //choose synth 5
112 ~six_unicode = 54; //choose synth 6
113 ~seven_unicode = 55; //choose synth 7
114 ~eight_unicode = 56; //choose synth 8
115 ~nine_unicode = 57; //choose synth 9
116 ~ten_unicode = 48; //choose synth 10
117 ~eleven_unicode = 45; //choose synth 11
118 ~twelve_unicode = 61; //choose synth 12
119 ~escape_unicode = 27; //escape function
122 //To find key codes in post window... Hightlight the function and its parenthesis in red below,
123 //and press "ctrl - enter" or "cmd - return" - then a small window called "test" will pop up...
124 //Press the "type" button inside of the window, then press anywhere on the keyboard to find
125 //the key codes in the right-hand side post window. Layout: [unicode, keycode, modifiers]. It is either a unicode
126 //or a keycode. Do not delete the /* and */ characters, or else the
127 //program will not run.
132 var win = Window(\test, Rect(10, 100, 100, 50)),
133 btn = Button(win, Rect(5, 5, 90, 40)).states_([["type"]]);
135 { arg view, char, modifiers, unicode, keycode;
136 ["unicode:"+unicode, "keycode:"+keycode, "modifiers:"+modifiers].postln;
144 //gui set frequency ranges - currently set at the lowest and highest notes on a 128 key range using 432 hz A tuning
145 //you can change the tuning near top
146 //to insert custom ranges, replace "~freqmap.at()" with a hz frequency
148 ~outmin1 = ~freqmap.at(0); // 8.0271480262684 hz //base frequency of upper set
149 ~outmax1 = ~freqmap.at(127); // 12315.783879572 hz //high frequency of upper set
150 ~outmin2 = ~freqmap.at(0)*8; // (8.0271480262684)*8 hz //base frequency of lower set
151 ~outmax2 = ~freqmap.at(127)/8; // (12315.783879572)/8 hz; //high frequency of lower set
159 //increase or decrease magnitude of second and third harmonics for synthdefs and synth functions (not recommend changing if uncertain of effects)
163 ~first_harmonic = 1; //1
164 ~second_harmonic = 2; //2
165 ~third_harmonic = 6; //6
175 ~fth = 1.4142135623729; //default kws binary interval
176 ~bi = ~fth; //~bi = "binary interval" - intverval of key change to a hexagram line's opposite in King Wen sequence
177 ~stepratio = 1.0594630943593;
178 ~nval = 1.0355417528;
180 ~n9 = 1.080059789899;
181 ~n18 = 1.0392592260319;
182 ~n27 = 1.0260044847071;
183 ~n36 = 1.0194406437022;
184 ~n45 = 1.0155225125043;
185 ~n54 = 1.012918794725;
186 ~n63 = 1.0110630844869;
187 ~n72 = 1.0096735332285;
188 ~gm = 1.6180339887499; //phi (golden mean), scaled on 1 key change per King Wen sequence
189 ~gm2 = 1.2720196495141;
190 ~gm6 = 1.0835058821738;
191 ~ngm1 = 1.0549232131786; //phi (golden mean), scaled on 9 key changes per King Wen sequence
192 ~ngm2 = 1.0270945492887;
193 ~ngm6 = 1.0089511542031;
194 ~nngm1 = 1.0075472729363; //phi (golden mean), scaled on 64 key changes per King Wen sequence
195 ~nngm2 = 1.0037665430449;
196 ~nngm6 = 1.0012539413222;
197 ~h1 = 11.10101010101; //based on 19.47:360, scaled on 1 key change per King Wen sequence
198 ~h2 = 4.2999982083345;
199 ~h6 = 1.6261331058274;
200 ~nh1 = 1.3828361607663; //based on 19.47:360, scaled on 9 key changes per King Wen sequence
201 ~nh2 = 1.1759405430404;
202 ~nh6 = 1.0555086286213;
203 ~nnh1 = 1.0466365180627; //based on 19.47:360, scaled on 64 key changes per King Wen sequence
204 ~nnh2 = 1.0230525490231;
205 ~nnh6 = 1.0076258811195;
208 //edit SAVED s1-s8 frequencies/chords. Replace any "[ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]" with desired frequencies.
209 //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]
210 //You can find frequencies in the "copy" section of GUI under "saved open/flow 1-8 frequencies:" or "saved slide 1-8 frequencies:".
211 //Remove both the "/*" and "*/" around the code to make evaluable. Put them back to make it unevaluable.
215 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))});
216 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))});
217 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))});
218 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))});
219 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))});
220 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))});
221 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))});
222 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))});
227 //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.
228 //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]
229 //You can find frequencies in the "copy" section of GUI under "current chord/frequencies".
230 //Remove both the "/*" and "*/" around the code to make evaluable. Put them back to make it unevaluable again.
234 12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut(
236 [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]
242 //^Imoprtant note: "edit STARTING frequencies/chord" must be placed after "edit SAVED frequencies/chords" in code in order for it to work correctly
245 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
248 //default starting notes
250 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]), {
251 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [
252 (~freqmap.at(127)/8).rand,
253 (~freqmap.at(127)/8).rand,
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,
267 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))});});
269 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))});});
270 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))});});
271 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))});});
272 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))});});
273 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))});});
274 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))});});
275 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))});});
276 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))});});
278 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))});
279 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))});
280 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))});
281 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))});
282 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))});
283 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))});
284 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))});
285 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))});
287 if([~sg1a1,~sg1a2,~sg1a3,~sg1a4,~sg1a5,~sg1a6,~sg1a7,~sg1a8,~sg1a9,~sg1a10,~sg1a11,~sg1a12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg1a1=~f1,~sg1a2=~f2,~sg1a3=~f3,~sg1a4=~f4,~sg1a5=~f5,~sg1a6=~f6,~sg1a7=~f7,~sg1a8=~f8,~sg1a9=~f9,~sg1a10=~f10,~sg1a11=~f11,~sg1a12=~f12];});
288 if([~sg1b1,~sg1b2,~sg1b3,~sg1b4,~sg1b5,~sg1b6,~sg1b7,~sg1b8,~sg1b9,~sg1b10,~sg1b11,~sg1b12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg1b1=~f1,~sg1b2=~f2,~sg1b3=~f3,~sg1b4=~f4,~sg1b5=~f5,~sg1b6=~f6,~sg1b7=~f7,~sg1b8=~f8,~sg1b9=~f9,~sg1b10=~f10,~sg1b11=~f11,~sg1b12=~f12];});
289 if([~sg1c1,~sg1c2,~sg1c3,~sg1c4,~sg1c5,~sg1c6,~sg1c7,~sg1c8,~sg1c9,~sg1c10,~sg1c11,~sg1c12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg1c1=~f1,~sg1c2=~f2,~sg1c3=~f3,~sg1c4=~f4,~sg1c5=~f5,~sg1c6=~f6,~sg1c7=~f7,~sg1c8=~f8,~sg1c9=~f9,~sg1c10=~f10,~sg1c11=~f11,~sg1c12=~f12];});
290 if([~sg1d1,~sg1d2,~sg1d3,~sg1d4,~sg1d5,~sg1d6,~sg1d7,~sg1d8,~sg1d9,~sg1d10,~sg1d11,~sg1d12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg1d1=~f1,~sg1d2=~f2,~sg1d3=~f3,~sg1d4=~f4,~sg1d5=~f5,~sg1d6=~f6,~sg1d7=~f7,~sg1d8=~f8,~sg1d9=~f9,~sg1d10=~f10,~sg1d11=~f11,~sg1d12=~f12];});
291 if([~sg1e1,~sg1e2,~sg1e3,~sg1e4,~sg1e5,~sg1e6,~sg1e7,~sg1e8,~sg1e9,~sg1e10,~sg1e11,~sg1e12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg1e1=~f1,~sg1e2=~f2,~sg1e3=~f3,~sg1e4=~f4,~sg1e5=~f5,~sg1e6=~f6,~sg1e7=~f7,~sg1e8=~f8,~sg1e9=~f9,~sg1e10=~f10,~sg1e11=~f11,~sg1e12=~f12];});
292 if([~sg1f1,~sg1f2,~sg1f3,~sg1f4,~sg1f5,~sg1f6,~sg1f7,~sg1f8,~sg1f9,~sg1f10,~sg1f11,~sg1f12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg1f1=~f1,~sg1f2=~f2,~sg1f3=~f3,~sg1f4=~f4,~sg1f5=~f5,~sg1f6=~f6,~sg1f7=~f7,~sg1f8=~f8,~sg1f9=~f9,~sg1f10=~f10,~sg1f11=~f11,~sg1f12=~f12];});
293 if([~sg1g1,~sg1g2,~sg1g3,~sg1g4,~sg1g5,~sg1g6,~sg1g7,~sg1g8,~sg1g9,~sg1g10,~sg1g11,~sg1g12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg1g1=~f1,~sg1g2=~f2,~sg1g3=~f3,~sg1g4=~f4,~sg1g5=~f5,~sg1g6=~f6,~sg1g7=~f7,~sg1g8=~f8,~sg1g9=~f9,~sg1g10=~f10,~sg1g11=~f11,~sg1g12=~f12];});
294 if([~sg1h1,~sg1h2,~sg1h3,~sg1h4,~sg1h5,~sg1h6,~sg1h7,~sg1h8,~sg1h9,~sg1h10,~sg1h11,~sg1h12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg1h1=~f1,~sg1h2=~f2,~sg1h3=~f3,~sg1h4=~f4,~sg1h5=~f5,~sg1h6=~f6,~sg1h7=~f7,~sg1h8=~f8,~sg1h9=~f9,~sg1h10=~f10,~sg1h11=~f11,~sg1h12=~f12];});
295 if([~sg2a1,~sg2a2,~sg2a3,~sg2a4,~sg2a5,~sg2a6,~sg2a7,~sg2a8,~sg2a9,~sg2a10,~sg2a11,~sg2a12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg2a1=~f1,~sg2a2=~f2,~sg2a3=~f3,~sg2a4=~f4,~sg2a5=~f5,~sg2a6=~f6,~sg2a7=~f7,~sg2a8=~f8,~sg2a9=~f9,~sg2a10=~f10,~sg2a11=~f11,~sg2a12=~f12];});
296 if([~sg2b1,~sg2b2,~sg2b3,~sg2b4,~sg2b5,~sg2b6,~sg2b7,~sg2b8,~sg2b9,~sg2b10,~sg2b11,~sg2b12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg2b1=~f1,~sg2b2=~f2,~sg2b3=~f3,~sg2b4=~f4,~sg2b5=~f5,~sg2b6=~f6,~sg2b7=~f7,~sg2b8=~f8,~sg2b9=~f9,~sg2b10=~f10,~sg2b11=~f11,~sg2b12=~f12];});
297 if([~sg2c1,~sg2c2,~sg2c3,~sg2c4,~sg2c5,~sg2c6,~sg2c7,~sg2c8,~sg2c9,~sg2c10,~sg2c11,~sg2c12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg2c1=~f1,~sg2c2=~f2,~sg2c3=~f3,~sg2c4=~f4,~sg2c5=~f5,~sg2c6=~f6,~sg2c7=~f7,~sg2c8=~f8,~sg2c9=~f9,~sg2c10=~f10,~sg2c11=~f11,~sg2c12=~f12];});
298 if([~sg2d1,~sg2d2,~sg2d3,~sg2d4,~sg2d5,~sg2d6,~sg2d7,~sg2d8,~sg2d9,~sg2d10,~sg2d11,~sg2d12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg2d1=~f1,~sg2d2=~f2,~sg2d3=~f3,~sg2d4=~f4,~sg2d5=~f5,~sg2d6=~f6,~sg2d7=~f7,~sg2d8=~f8,~sg2d9=~f9,~sg2d10=~f10,~sg2d11=~f11,~sg2d12=~f12];});
299 if([~sg2e1,~sg2e2,~sg2e3,~sg2e4,~sg2e5,~sg2e6,~sg2e7,~sg2e8,~sg2e9,~sg2e10,~sg2e11,~sg2e12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg2e1=~f1,~sg2e2=~f2,~sg2e3=~f3,~sg2e4=~f4,~sg2e5=~f5,~sg2e6=~f6,~sg2e7=~f7,~sg2e8=~f8,~sg2e9=~f9,~sg2e10=~f10,~sg2e11=~f11,~sg2e12=~f12];});
300 if([~sg2f1,~sg2f2,~sg2f3,~sg2f4,~sg2f5,~sg2f6,~sg2f7,~sg2f8,~sg2f9,~sg2f10,~sg2f11,~sg2f12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg2f1=~f1,~sg2f2=~f2,~sg2f3=~f3,~sg2f4=~f4,~sg2f5=~f5,~sg2f6=~f6,~sg2f7=~f7,~sg2f8=~f8,~sg2f9=~f9,~sg2f10=~f10,~sg2f11=~f11,~sg2f12=~f12];});
301 if([~sg2g1,~sg2g2,~sg2g3,~sg2g4,~sg2g5,~sg2g6,~sg2g7,~sg2g8,~sg2g9,~sg2g10,~sg2g11,~sg2g12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg2g1=~f1,~sg2g2=~f2,~sg2g3=~f3,~sg2g4=~f4,~sg2g5=~f5,~sg2g6=~f6,~sg2g7=~f7,~sg2g8=~f8,~sg2g9=~f9,~sg2g10=~f10,~sg2g11=~f11,~sg2g12=~f12];});
302 if([~sg2h1,~sg2h2,~sg2h3,~sg2h4,~sg2h5,~sg2h6,~sg2h7,~sg2h8,~sg2h9,~sg2h10,~sg2h11,~sg2h12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg2h1=~f1,~sg2h2=~f2,~sg2h3=~f3,~sg2h4=~f4,~sg2h5=~f5,~sg2h6=~f6,~sg2h7=~f7,~sg2h8=~f8,~sg2h9=~f9,~sg2h10=~f10,~sg2h11=~f11,~sg2h12=~f12];});
303 if([~sg3a1,~sg3a2,~sg3a3,~sg3a4,~sg3a5,~sg3a6,~sg3a7,~sg3a8,~sg3a9,~sg3a10,~sg3a11,~sg3a12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg3a1=~f1,~sg3a2=~f2,~sg3a3=~f3,~sg3a4=~f4,~sg3a5=~f5,~sg3a6=~f6,~sg3a7=~f7,~sg3a8=~f8,~sg3a9=~f9,~sg3a10=~f10,~sg3a11=~f11,~sg3a12=~f12];});
304 if([~sg3b1,~sg3b2,~sg3b3,~sg3b4,~sg3b5,~sg3b6,~sg3b7,~sg3b8,~sg3b9,~sg3b10,~sg3b11,~sg3b12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg3b1=~f1,~sg3b2=~f2,~sg3b3=~f3,~sg3b4=~f4,~sg3b5=~f5,~sg3b6=~f6,~sg3b7=~f7,~sg3b8=~f8,~sg3b9=~f9,~sg3b10=~f10,~sg3b11=~f11,~sg3b12=~f12];});
305 if([~sg3c1,~sg3c2,~sg3c3,~sg3c4,~sg3c5,~sg3c6,~sg3c7,~sg3c8,~sg3c9,~sg3c10,~sg3c11,~sg3c12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg3c1=~f1,~sg3c2=~f2,~sg3c3=~f3,~sg3c4=~f4,~sg3c5=~f5,~sg3c6=~f6,~sg3c7=~f7,~sg3c8=~f8,~sg3c9=~f9,~sg3c10=~f10,~sg3c11=~f11,~sg3c12=~f12];});
306 if([~sg3d1,~sg3d2,~sg3d3,~sg3d4,~sg3d5,~sg3d6,~sg3d7,~sg3d8,~sg3d9,~sg3d10,~sg3d11,~sg3d12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg3d1=~f1,~sg3d2=~f2,~sg3d3=~f3,~sg3d4=~f4,~sg3d5=~f5,~sg3d6=~f6,~sg3d7=~f7,~sg3d8=~f8,~sg3d9=~f9,~sg3d10=~f10,~sg3d11=~f11,~sg3d12=~f12];});
307 if([~sg3e1,~sg3e2,~sg3e3,~sg3e4,~sg3e5,~sg3e6,~sg3e7,~sg3e8,~sg3e9,~sg3e10,~sg3e11,~sg3e12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg3e1=~f1,~sg3e2=~f2,~sg3e3=~f3,~sg3e4=~f4,~sg3e5=~f5,~sg3e6=~f6,~sg3e7=~f7,~sg3e8=~f8,~sg3e9=~f9,~sg3e10=~f10,~sg3e11=~f11,~sg3e12=~f12];});
308 if([~sg3f1,~sg3f2,~sg3f3,~sg3f4,~sg3f5,~sg3f6,~sg3f7,~sg3f8,~sg3f9,~sg3f10,~sg3f11,~sg3f12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg3f1=~f1,~sg3f2=~f2,~sg3f3=~f3,~sg3f4=~f4,~sg3f5=~f5,~sg3f6=~f6,~sg3f7=~f7,~sg3f8=~f8,~sg3f9=~f9,~sg3f10=~f10,~sg3f11=~f11,~sg3f12=~f12];});
309 if([~sg3g1,~sg3g2,~sg3g3,~sg3g4,~sg3g5,~sg3g6,~sg3g7,~sg3g8,~sg3g9,~sg3g10,~sg3g11,~sg3g12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg3g1=~f1,~sg3g2=~f2,~sg3g3=~f3,~sg3g4=~f4,~sg3g5=~f5,~sg3g6=~f6,~sg3g7=~f7,~sg3g8=~f8,~sg3g9=~f9,~sg3g10=~f10,~sg3g11=~f11,~sg3g12=~f12];});
310 if([~sg3h1,~sg3h2,~sg3h3,~sg3h4,~sg3h5,~sg3h6,~sg3h7,~sg3h8,~sg3h9,~sg3h10,~sg3h11,~sg3h12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg3h1=~f1,~sg3h2=~f2,~sg3h3=~f3,~sg3h4=~f4,~sg3h5=~f5,~sg3h6=~f6,~sg3h7=~f7,~sg3h8=~f8,~sg3h9=~f9,~sg3h10=~f10,~sg3h11=~f11,~sg3h12=~f12];});
311 if([~sg4a1,~sg4a2,~sg4a3,~sg4a4,~sg4a5,~sg4a6,~sg4a7,~sg4a8,~sg4a9,~sg4a10,~sg4a11,~sg4a12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg4a1=~f1,~sg4a2=~f2,~sg4a3=~f3,~sg4a4=~f4,~sg4a5=~f5,~sg4a6=~f6,~sg4a7=~f7,~sg4a8=~f8,~sg4a9=~f9,~sg4a10=~f10,~sg4a11=~f11,~sg4a12=~f12];});
312 if([~sg4b1,~sg4b2,~sg4b3,~sg4b4,~sg4b5,~sg4b6,~sg4b7,~sg4b8,~sg4b9,~sg4b10,~sg4b11,~sg4b12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg4b1=~f1,~sg4b2=~f2,~sg4b3=~f3,~sg4b4=~f4,~sg4b5=~f5,~sg4b6=~f6,~sg4b7=~f7,~sg4b8=~f8,~sg4b9=~f9,~sg4b10=~f10,~sg4b11=~f11,~sg4b12=~f12];});
313 if([~sg4c1,~sg4c2,~sg4c3,~sg4c4,~sg4c5,~sg4c6,~sg4c7,~sg4c8,~sg4c9,~sg4c10,~sg4c11,~sg4c12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg4c1=~f1,~sg4c2=~f2,~sg4c3=~f3,~sg4c4=~f4,~sg4c5=~f5,~sg4c6=~f6,~sg4c7=~f7,~sg4c8=~f8,~sg4c9=~f9,~sg4c10=~f10,~sg4c11=~f11,~sg4c12=~f12];});
314 if([~sg4d1,~sg4d2,~sg4d3,~sg4d4,~sg4d5,~sg4d6,~sg4d7,~sg4d8,~sg4d9,~sg4d10,~sg4d11,~sg4d12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg4d1=~f1,~sg4d2=~f2,~sg4d3=~f3,~sg4d4=~f4,~sg4d5=~f5,~sg4d6=~f6,~sg4d7=~f7,~sg4d8=~f8,~sg4d9=~f9,~sg4d10=~f10,~sg4d11=~f11,~sg4d12=~f12];});
315 if([~sg4e1,~sg4e2,~sg4e3,~sg4e4,~sg4e5,~sg4e6,~sg4e7,~sg4e8,~sg4e9,~sg4e10,~sg4e11,~sg4e12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg4e1=~f1,~sg4e2=~f2,~sg4e3=~f3,~sg4e4=~f4,~sg4e5=~f5,~sg4e6=~f6,~sg4e7=~f7,~sg4e8=~f8,~sg4e9=~f9,~sg4e10=~f10,~sg4e11=~f11,~sg4e12=~f12];});
316 if([~sg4f1,~sg4f2,~sg4f3,~sg4f4,~sg4f5,~sg4f6,~sg4f7,~sg4f8,~sg4f9,~sg4f10,~sg4f11,~sg4f12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg4f1=~f1,~sg4f2=~f2,~sg4f3=~f3,~sg4f4=~f4,~sg4f5=~f5,~sg4f6=~f6,~sg4f7=~f7,~sg4f8=~f8,~sg4f9=~f9,~sg4f10=~f10,~sg4f11=~f11,~sg4f12=~f12];});
317 if([~sg4g1,~sg4g2,~sg4g3,~sg4g4,~sg4g5,~sg4g6,~sg4g7,~sg4g8,~sg4g9,~sg4g10,~sg4g11,~sg4g12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg4g1=~f1,~sg4g2=~f2,~sg4g3=~f3,~sg4g4=~f4,~sg4g5=~f5,~sg4g6=~f6,~sg4g7=~f7,~sg4g8=~f8,~sg4g9=~f9,~sg4g10=~f10,~sg4g11=~f11,~sg4g12=~f12];});
318 if([~sg4h1,~sg4h2,~sg4h3,~sg4h4,~sg4h5,~sg4h6,~sg4h7,~sg4h8,~sg4h9,~sg4h10,~sg4h11,~sg4h12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg4h1=~f1,~sg4h2=~f2,~sg4h3=~f3,~sg4h4=~f4,~sg4h5=~f5,~sg4h6=~f6,~sg4h7=~f7,~sg4h8=~f8,~sg4h9=~f9,~sg4h10=~f10,~sg4h11=~f11,~sg4h12=~f12];});
319 if([~sg5a1,~sg5a2,~sg5a3,~sg5a4,~sg5a5,~sg5a6,~sg5a7,~sg5a8,~sg5a9,~sg5a10,~sg5a11,~sg5a12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg5a1=~f1,~sg5a2=~f2,~sg5a3=~f3,~sg5a4=~f4,~sg5a5=~f5,~sg5a6=~f6,~sg5a7=~f7,~sg5a8=~f8,~sg5a9=~f9,~sg5a10=~f10,~sg5a11=~f11,~sg5a12=~f12];});
320 if([~sg5b1,~sg5b2,~sg5b3,~sg5b4,~sg5b5,~sg5b6,~sg5b7,~sg5b8,~sg5b9,~sg5b10,~sg5b11,~sg5b12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg5b1=~f1,~sg5b2=~f2,~sg5b3=~f3,~sg5b4=~f4,~sg5b5=~f5,~sg5b6=~f6,~sg5b7=~f7,~sg5b8=~f8,~sg5b9=~f9,~sg5b10=~f10,~sg5b11=~f11,~sg5b12=~f12];});
321 if([~sg5c1,~sg5c2,~sg5c3,~sg5c4,~sg5c5,~sg5c6,~sg5c7,~sg5c8,~sg5c9,~sg5c10,~sg5c11,~sg5c12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg5c1=~f1,~sg5c2=~f2,~sg5c3=~f3,~sg5c4=~f4,~sg5c5=~f5,~sg5c6=~f6,~sg5c7=~f7,~sg5c8=~f8,~sg5c9=~f9,~sg5c10=~f10,~sg5c11=~f11,~sg5c12=~f12];});
322 if([~sg5d1,~sg5d2,~sg5d3,~sg5d4,~sg5d5,~sg5d6,~sg5d7,~sg5d8,~sg5d9,~sg5d10,~sg5d11,~sg5d12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg5d1=~f1,~sg5d2=~f2,~sg5d3=~f3,~sg5d4=~f4,~sg5d5=~f5,~sg5d6=~f6,~sg5d7=~f7,~sg5d8=~f8,~sg5d9=~f9,~sg5d10=~f10,~sg5d11=~f11,~sg5d12=~f12];});
323 if([~sg5e1,~sg5e2,~sg5e3,~sg5e4,~sg5e5,~sg5e6,~sg5e7,~sg5e8,~sg5e9,~sg5e10,~sg5e11,~sg5e12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg5e1=~f1,~sg5e2=~f2,~sg5e3=~f3,~sg5e4=~f4,~sg5e5=~f5,~sg5e6=~f6,~sg5e7=~f7,~sg5e8=~f8,~sg5e9=~f9,~sg5e10=~f10,~sg5e11=~f11,~sg5e12=~f12];});
324 if([~sg5f1,~sg5f2,~sg5f3,~sg5f4,~sg5f5,~sg5f6,~sg5f7,~sg5f8,~sg5f9,~sg5f10,~sg5f11,~sg5f12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg5f1=~f1,~sg5f2=~f2,~sg5f3=~f3,~sg5f4=~f4,~sg5f5=~f5,~sg5f6=~f6,~sg5f7=~f7,~sg5f8=~f8,~sg5f9=~f9,~sg5f10=~f10,~sg5f11=~f11,~sg5f12=~f12];});
325 if([~sg5g1,~sg5g2,~sg5g3,~sg5g4,~sg5g5,~sg5g6,~sg5g7,~sg5g8,~sg5g9,~sg5g10,~sg5g11,~sg5g12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg5g1=~f1,~sg5g2=~f2,~sg5g3=~f3,~sg5g4=~f4,~sg5g5=~f5,~sg5g6=~f6,~sg5g7=~f7,~sg5g8=~f8,~sg5g9=~f9,~sg5g10=~f10,~sg5g11=~f11,~sg5g12=~f12];});
326 if([~sg5h1,~sg5h2,~sg5h3,~sg5h4,~sg5h5,~sg5h6,~sg5h7,~sg5h8,~sg5h9,~sg5h10,~sg5h11,~sg5h12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg5h1=~f1,~sg5h2=~f2,~sg5h3=~f3,~sg5h4=~f4,~sg5h5=~f5,~sg5h6=~f6,~sg5h7=~f7,~sg5h8=~f8,~sg5h9=~f9,~sg5h10=~f10,~sg5h11=~f11,~sg5h12=~f12];});
327 if([~sg6a1,~sg6a2,~sg6a3,~sg6a4,~sg6a5,~sg6a6,~sg6a7,~sg6a8,~sg6a9,~sg6a10,~sg6a11,~sg6a12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg6a1=~f1,~sg6a2=~f2,~sg6a3=~f3,~sg6a4=~f4,~sg6a5=~f5,~sg6a6=~f6,~sg6a7=~f7,~sg6a8=~f8,~sg6a9=~f9,~sg6a10=~f10,~sg6a11=~f11,~sg6a12=~f12];});
328 if([~sg6b1,~sg6b2,~sg6b3,~sg6b4,~sg6b5,~sg6b6,~sg6b7,~sg6b8,~sg6b9,~sg6b10,~sg6b11,~sg6b12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg6b1=~f1,~sg6b2=~f2,~sg6b3=~f3,~sg6b4=~f4,~sg6b5=~f5,~sg6b6=~f6,~sg6b7=~f7,~sg6b8=~f8,~sg6b9=~f9,~sg6b10=~f10,~sg6b11=~f11,~sg6b12=~f12];});
329 if([~sg6c1,~sg6c2,~sg6c3,~sg6c4,~sg6c5,~sg6c6,~sg6c7,~sg6c8,~sg6c9,~sg6c10,~sg6c11,~sg6c12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg6c1=~f1,~sg6c2=~f2,~sg6c3=~f3,~sg6c4=~f4,~sg6c5=~f5,~sg6c6=~f6,~sg6c7=~f7,~sg6c8=~f8,~sg6c9=~f9,~sg6c10=~f10,~sg6c11=~f11,~sg6c12=~f12];});
330 if([~sg6d1,~sg6d2,~sg6d3,~sg6d4,~sg6d5,~sg6d6,~sg6d7,~sg6d8,~sg6d9,~sg6d10,~sg6d11,~sg6d12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg6d1=~f1,~sg6d2=~f2,~sg6d3=~f3,~sg6d4=~f4,~sg6d5=~f5,~sg6d6=~f6,~sg6d7=~f7,~sg6d8=~f8,~sg6d9=~f9,~sg6d10=~f10,~sg6d11=~f11,~sg6d12=~f12];});
331 if([~sg6e1,~sg6e2,~sg6e3,~sg6e4,~sg6e5,~sg6e6,~sg6e7,~sg6e8,~sg6e9,~sg6e10,~sg6e11,~sg6e12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg6e1=~f1,~sg6e2=~f2,~sg6e3=~f3,~sg6e4=~f4,~sg6e5=~f5,~sg6e6=~f6,~sg6e7=~f7,~sg6e8=~f8,~sg6e9=~f9,~sg6e10=~f10,~sg6e11=~f11,~sg6e12=~f12];});
332 if([~sg6f1,~sg6f2,~sg6f3,~sg6f4,~sg6f5,~sg6f6,~sg6f7,~sg6f8,~sg6f9,~sg6f10,~sg6f11,~sg6f12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg6f1=~f1,~sg6f2=~f2,~sg6f3=~f3,~sg6f4=~f4,~sg6f5=~f5,~sg6f6=~f6,~sg6f7=~f7,~sg6f8=~f8,~sg6f9=~f9,~sg6f10=~f10,~sg6f11=~f11,~sg6f12=~f12];});
333 if([~sg6g1,~sg6g2,~sg6g3,~sg6g4,~sg6g5,~sg6g6,~sg6g7,~sg6g8,~sg6g9,~sg6g10,~sg6g11,~sg6g12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg6g1=~f1,~sg6g2=~f2,~sg6g3=~f3,~sg6g4=~f4,~sg6g5=~f5,~sg6g6=~f6,~sg6g7=~f7,~sg6g8=~f8,~sg6g9=~f9,~sg6g10=~f10,~sg6g11=~f11,~sg6g12=~f12];});
334 if([~sg6h1,~sg6h2,~sg6h3,~sg6h4,~sg6h5,~sg6h6,~sg6h7,~sg6h8,~sg6h9,~sg6h10,~sg6h11,~sg6h12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg6h1=~f1,~sg6h2=~f2,~sg6h3=~f3,~sg6h4=~f4,~sg6h5=~f5,~sg6h6=~f6,~sg6h7=~f7,~sg6h8=~f8,~sg6h9=~f9,~sg6h10=~f10,~sg6h11=~f11,~sg6h12=~f12];});
335 if([~sg7a1,~sg7a2,~sg7a3,~sg7a4,~sg7a5,~sg7a6,~sg7a7,~sg7a8,~sg7a9,~sg7a10,~sg7a11,~sg7a12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg7a1=~f1,~sg7a2=~f2,~sg7a3=~f3,~sg7a4=~f4,~sg7a5=~f5,~sg7a6=~f6,~sg7a7=~f7,~sg7a8=~f8,~sg7a9=~f9,~sg7a10=~f10,~sg7a11=~f11,~sg7a12=~f12];});
336 if([~sg7b1,~sg7b2,~sg7b3,~sg7b4,~sg7b5,~sg7b6,~sg7b7,~sg7b8,~sg7b9,~sg7b10,~sg7b11,~sg7b12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg7b1=~f1,~sg7b2=~f2,~sg7b3=~f3,~sg7b4=~f4,~sg7b5=~f5,~sg7b6=~f6,~sg7b7=~f7,~sg7b8=~f8,~sg7b9=~f9,~sg7b10=~f10,~sg7b11=~f11,~sg7b12=~f12];});
337 if([~sg7c1,~sg7c2,~sg7c3,~sg7c4,~sg7c5,~sg7c6,~sg7c7,~sg7c8,~sg7c9,~sg7c10,~sg7c11,~sg7c12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg7c1=~f1,~sg7c2=~f2,~sg7c3=~f3,~sg7c4=~f4,~sg7c5=~f5,~sg7c6=~f6,~sg7c7=~f7,~sg7c8=~f8,~sg7c9=~f9,~sg7c10=~f10,~sg7c11=~f11,~sg7c12=~f12];});
338 if([~sg7d1,~sg7d2,~sg7d3,~sg7d4,~sg7d5,~sg7d6,~sg7d7,~sg7d8,~sg7d9,~sg7d10,~sg7d11,~sg7d12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg7d1=~f1,~sg7d2=~f2,~sg7d3=~f3,~sg7d4=~f4,~sg7d5=~f5,~sg7d6=~f6,~sg7d7=~f7,~sg7d8=~f8,~sg7d9=~f9,~sg7d10=~f10,~sg7d11=~f11,~sg7d12=~f12];});
339 if([~sg7e1,~sg7e2,~sg7e3,~sg7e4,~sg7e5,~sg7e6,~sg7e7,~sg7e8,~sg7e9,~sg7e10,~sg7e11,~sg7e12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg7e1=~f1,~sg7e2=~f2,~sg7e3=~f3,~sg7e4=~f4,~sg7e5=~f5,~sg7e6=~f6,~sg7e7=~f7,~sg7e8=~f8,~sg7e9=~f9,~sg7e10=~f10,~sg7e11=~f11,~sg7e12=~f12];});
340 if([~sg7f1,~sg7f2,~sg7f3,~sg7f4,~sg7f5,~sg7f6,~sg7f7,~sg7f8,~sg7f9,~sg7f10,~sg7f11,~sg7f12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg7f1=~f1,~sg7f2=~f2,~sg7f3=~f3,~sg7f4=~f4,~sg7f5=~f5,~sg7f6=~f6,~sg7f7=~f7,~sg7f8=~f8,~sg7f9=~f9,~sg7f10=~f10,~sg7f11=~f11,~sg7f12=~f12];});
341 if([~sg7g1,~sg7g2,~sg7g3,~sg7g4,~sg7g5,~sg7g6,~sg7g7,~sg7g8,~sg7g9,~sg7g10,~sg7g11,~sg7g12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg7g1=~f1,~sg7g2=~f2,~sg7g3=~f3,~sg7g4=~f4,~sg7g5=~f5,~sg7g6=~f6,~sg7g7=~f7,~sg7g8=~f8,~sg7g9=~f9,~sg7g10=~f10,~sg7g11=~f11,~sg7g12=~f12];});
342 if([~sg7h1,~sg7h2,~sg7h3,~sg7h4,~sg7h5,~sg7h6,~sg7h7,~sg7h8,~sg7h9,~sg7h10,~sg7h11,~sg7h12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg7h1=~f1,~sg7h2=~f2,~sg7h3=~f3,~sg7h4=~f4,~sg7h5=~f5,~sg7h6=~f6,~sg7h7=~f7,~sg7h8=~f8,~sg7h9=~f9,~sg7h10=~f10,~sg7h11=~f11,~sg7h12=~f12];});
343 if([~sg8a1,~sg8a2,~sg8a3,~sg8a4,~sg8a5,~sg8a6,~sg8a7,~sg8a8,~sg8a9,~sg8a10,~sg8a11,~sg8a12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg8a1=~f1,~sg8a2=~f2,~sg8a3=~f3,~sg8a4=~f4,~sg8a5=~f5,~sg8a6=~f6,~sg8a7=~f7,~sg8a8=~f8,~sg8a9=~f9,~sg8a10=~f10,~sg8a11=~f11,~sg8a12=~f12];});
344 if([~sg8b1,~sg8b2,~sg8b3,~sg8b4,~sg8b5,~sg8b6,~sg8b7,~sg8b8,~sg8b9,~sg8b10,~sg8b11,~sg8b12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg8b1=~f1,~sg8b2=~f2,~sg8b3=~f3,~sg8b4=~f4,~sg8b5=~f5,~sg8b6=~f6,~sg8b7=~f7,~sg8b8=~f8,~sg8b9=~f9,~sg8b10=~f10,~sg8b11=~f11,~sg8b12=~f12];});
345 if([~sg8c1,~sg8c2,~sg8c3,~sg8c4,~sg8c5,~sg8c6,~sg8c7,~sg8c8,~sg8c9,~sg8c10,~sg8c11,~sg8c12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg8c1=~f1,~sg8c2=~f2,~sg8c3=~f3,~sg8c4=~f4,~sg8c5=~f5,~sg8c6=~f6,~sg8c7=~f7,~sg8c8=~f8,~sg8c9=~f9,~sg8c10=~f10,~sg8c11=~f11,~sg8c12=~f12];});
346 if([~sg8d1,~sg8d2,~sg8d3,~sg8d4,~sg8d5,~sg8d6,~sg8d7,~sg8d8,~sg8d9,~sg8d10,~sg8d11,~sg8d12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg8d1=~f1,~sg8d2=~f2,~sg8d3=~f3,~sg8d4=~f4,~sg8d5=~f5,~sg8d6=~f6,~sg8d7=~f7,~sg8d8=~f8,~sg8d9=~f9,~sg8d10=~f10,~sg8d11=~f11,~sg8d12=~f12];});
347 if([~sg8e1,~sg8e2,~sg8e3,~sg8e4,~sg8e5,~sg8e6,~sg8e7,~sg8e8,~sg8e9,~sg8e10,~sg8e11,~sg8e12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg8e1=~f1,~sg8e2=~f2,~sg8e3=~f3,~sg8e4=~f4,~sg8e5=~f5,~sg8e6=~f6,~sg8e7=~f7,~sg8e8=~f8,~sg8e9=~f9,~sg8e10=~f10,~sg8e11=~f11,~sg8e12=~f12];});
348 if([~sg8f1,~sg8f2,~sg8f3,~sg8f4,~sg8f5,~sg8f6,~sg8f7,~sg8f8,~sg8f9,~sg8f10,~sg8f11,~sg8f12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg8f1=~f1,~sg8f2=~f2,~sg8f3=~f3,~sg8f4=~f4,~sg8f5=~f5,~sg8f6=~f6,~sg8f7=~f7,~sg8f8=~f8,~sg8f9=~f9,~sg8f10=~f10,~sg8f11=~f11,~sg8f12=~f12];});
349 if([~sg8g1,~sg8g2,~sg8g3,~sg8g4,~sg8g5,~sg8g6,~sg8g7,~sg8g8,~sg8g9,~sg8g10,~sg8g11,~sg8g12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg8g1=~f1,~sg8g2=~f2,~sg8g3=~f3,~sg8g4=~f4,~sg8g5=~f5,~sg8g6=~f6,~sg8g7=~f7,~sg8g8=~f8,~sg8g9=~f9,~sg8g10=~f10,~sg8g11=~f11,~sg8g12=~f12];});
350 if([~sg8h1,~sg8h2,~sg8h3,~sg8h4,~sg8h5,~sg8h6,~sg8h7,~sg8h8,~sg8h9,~sg8h10,~sg8h11,~sg8h12] == [nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil], {[~sg8h1=~f1,~sg8h2=~f2,~sg8h3=~f3,~sg8h4=~f4,~sg8h5=~f5,~sg8h6=~f6,~sg8h7=~f7,~sg8h8=~f8,~sg8h9=~f9,~sg8h10=~f10,~sg8h11=~f11,~sg8h12=~f12];});
353 //set n1-n9 ratio values
356 {~ratio_setting == "psine1";}{~n_value1 = ~gm; ~n_value2 = ~gm2; ~n_value6 = ~gm6;}
357 {~ratio_setting == "psine2";}{~n_value1 = ~ngm1; ~n_value2 = ~ngm2; ~n_value6 = ~ngm6;}
358 {~ratio_setting == "psine3";}{~n_value1 = ~nngm1; ~n_value2 = ~nngm2; ~n_value6 = ~nngm6;}
359 {~ratio_setting == "hsine1";}{~n_value1 = ~h1; ~n_value2 = ~h2; ~n_value6 = ~h6;}
360 {~ratio_setting == "hsine2";}{~n_value1 = ~nh1; ~n_value2 = ~nh2; ~n_value6 = ~nh6;}
361 {~ratio_setting == "hsine3";}{~n_value1 = ~nnh1; ~n_value2 = ~nnh2; ~n_value6 = ~nnh6;};
364 //King Wen sequence interpretation settings 1-3 for synthdefs
366 ~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 ]]};
367 ~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 ]]};
369 ~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 ]]};
370 ~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 ]]};
372 ~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 ]]};
373 ~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 ]]};
380 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,
381 a, b, c, d, e, f, pan=0, fc = 1;
382 var s1, out, env1, s2, dseq;
383 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
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*~first_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, 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(\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,
399 a, b, c, d, e, f, pan=0, fc = 1, id = -1;
400 var s1, out, env1, s2, dseq;
401 9.do(x = 0; {("n"++(x=x+1)).asSymbol.envirPut(~n_value1)});
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*~first_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].flatten.reverse, 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(\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,
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_value2)});
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*~second_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, 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 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,
435 a, b, c, d, e, f, pan=0, fc = 1, id = -1;
436 var s1, out, env1, s2, dseq;
437 9.do(x = 0; {("n"++(x=x+1)).asSymbol.envirPut(~n_value2)});
440 {~kws_setting == 1}{~kws_setting_1_a.value;}
441 {~kws_setting == 2}{~kws_setting_2_a.value;}
442 {~kws_setting == 3}{~kws_setting_3_a.value;} ++ Array.fill((~gsinenum*~second_harmonic -1), {
444 {~kws_setting == 1}{~kws_setting_1_b.value;}
445 {~kws_setting == 2}{~kws_setting_2_b.value;}
446 {~kws_setting == 3}{~kws_setting_3_b.value;}}).flatten].flatten.reverse, inf);
447 s1 = GrainSin.ar(1, Impulse.ar(dur), 1/(dur), Demand.ar(Impulse.ar(dur), 0, dseq));
448 if(~low_pass_filter_on == 1, {s1 = BLowPass.ar(s1, ~low_pass_filter_freq_limit);}, {s1 = s1});
449 OffsetOut.ar(0, s1.dup*vol);
452 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,
453 a, b, c, d, e, f, pan=0, fc = 1;
454 var s1, out, env1, s2, dseq;
455 9.do(x = 0; {("n"++(x=x+1)).asSymbol.envirPut(~n_value6)});
458 {~kws_setting == 1}{~kws_setting_1_a.value;}
459 {~kws_setting == 2}{~kws_setting_2_a.value;}
460 {~kws_setting == 3}{~kws_setting_3_a.value;} ++ Array.fill((~gsinenum*~third_harmonic -1), {
462 {~kws_setting == 1}{~kws_setting_1_b.value;}
463 {~kws_setting == 2}{~kws_setting_2_b.value;}
464 {~kws_setting == 3}{~kws_setting_3_b.value;}}).flatten, inf);
465 s1 = GrainSin.ar(1, Impulse.ar(dur), 1/(dur),Demand.ar(Impulse.ar(dur), 0, dseq));
466 if(~low_pass_filter_on == 1, {s1 = BLowPass.ar(s1, ~low_pass_filter_freq_limit);}, {s1 = s1});
467 OffsetOut.ar(0, s1.dup*vol);
470 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,
471 a, b, c, d, e, f, pan=0, fc = 1;
472 var s1, out, env1, s2, dseq;
473 9.do(x = 0; {("n"++(x=x+1)).asSymbol.envirPut(~n_value6)});
476 {~kws_setting == 1}{~kws_setting_1_a.value;}
477 {~kws_setting == 2}{~kws_setting_2_a.value;}
478 {~kws_setting == 3}{~kws_setting_3_a.value;} ++ Array.fill((~gsinenum*~third_harmonic -1), {
480 {~kws_setting == 1}{~kws_setting_1_b.value;}
481 {~kws_setting == 2}{~kws_setting_2_b.value;}
482 {~kws_setting == 3}{~kws_setting_3_b.value;}}).flatten].flatten.reverse, inf);
483 s1 = GrainSin.ar(1, Impulse.ar(dur), 1/(dur), Demand.ar(Impulse.ar(dur), 0, dseq));
484 if(~low_pass_filter_on == 1, {s1 = BLowPass.ar(s1, ~low_pass_filter_freq_limit);}, {s1 = s1});
485 OffsetOut.ar(0, s1.dup*vol);
490 //set base (lowest) frequencies, set starting values for synthdef, and load synthdef on server boot
492 if((~gsinenum == nil) or: (~synthdef != "gsineicld"), {
494 if(~basefreq == nil, {~basefreq = ~base_frequency});
496 (#a,b,c,d,e,f = [ ~basefreq,~basefreq,~basefreq,~basefreq,~basefreq,~basefreq ];
497 ~a = a; ~b = b; ~c =c; ~d = d; ~e = e;~f=f;);
499 ~synthdef = "gsineicld"; ~gsinenum = ~synthdefnum;
506 //generate GUI window
508 w = Window("Timewave Synth", Rect(0,0,Window.screenBounds.width,Window.screenBounds.height), border:true);
510 view = UserView(w, Window.screenBounds);
511 view.clearOnRefresh = false;
512 view.background = Color.black;
514 //vertical grid (inactive)
516 /*~b1 = Window.screenBounds.width/(12*4) /*25.462962962963*/; ~btu = 31; ~btd = 375; ~bw = 0.5; ~bh = 120; ~bcolor = Color.grey;
517 CompositeView(w, Rect(~b1, ~btu, ~bw, ~bh)).background = ~bcolor;
518 CompositeView(w, Rect(~b1, ~btd, ~bw, ~bh)).background = ~bcolor;
519 54.do({CompositeView(w, Rect(~b1 = ~b1+(Window.screenBounds.width/(12*4)), ~btu, ~bw, ~bh)).background = ~bcolor;});
520 ~b1 = Window.screenBounds.width/(12*4);
521 54.do({CompositeView(w, Rect(~b1 = ~b1+(Window.screenBounds.width/(12*4)), ~btd, ~bw, ~bh)).background = ~bcolor;});*/
524 ~nw = ~nh*1.6180339887499;
527 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
529 ~dc1 = ~tgrid-5; ~dc2 = ~bgrid-5; ~dca = 10;
533 13.do(x=~tgrid-10; {CompositeView(w, Rect(1, x=x+10, Window.screenBounds.width, 0.5)).background = Color.new255(51, 51, 51)});
534 13.do(x=~bgrid-10; {CompositeView(w, Rect(1, x=x+10, Window.screenBounds.width, 0.5)).background = Color.new255(51, 51, 51)});
536 ~z1 = (CompositeView(w, Rect((if(~f1 == nil, {f1.value},{~f1.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
537 ~z2 = (CompositeView(w, Rect((if(~f2 == nil, {f2.value},{~f2.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
538 ~z3 = (CompositeView(w, Rect((if(~f3 == nil, {f3.value},{~f3.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
539 ~z4 = (CompositeView(w, Rect((if(~f4 == nil, {f4.value},{~f4.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
540 ~z5 = (CompositeView(w, Rect((if(~f5 == nil, {f5.value},{~f5.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
541 ~z6 = (CompositeView(w, Rect((if(~f6 == nil, {f6.value},{~f6.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
542 ~z7 = (CompositeView(w, Rect((if(~f7 == nil, {f7.value},{~f7.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
543 ~z8 = (CompositeView(w, Rect((if(~f8 == nil, {f8.value},{~f8.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
544 ~z9 = (CompositeView(w, Rect((if(~f9 == nil, {f9.value},{~f9.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
545 ~z10 = (CompositeView(w, Rect((if(~f10 == nil, {f10.value},{~f10.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
546 ~z11 = (CompositeView(w, Rect((if(~f11 == nil, {f11.value},{~f11.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
547 ~z12 = (CompositeView(w, Rect((if(~f12 == nil, {f12.value},{~f12.value}).explin(~outmin1,~outmax1,0,Window.screenBounds.width)), ~dc1=~dc1+10, ~nw, 2)).background = Color.white;);
548 ~zmid = (CompositeView(w, Rect(x, 280, ~nw, 2)).background = Color.clear;);
549 ~z25 = (CompositeView(w, Rect((if(~f1 == nil, {f1.value},{~f1.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
550 ~z26 = (CompositeView(w, Rect((if(~f2 == nil, {f2.value},{~f2.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
551 ~z27 = (CompositeView(w, Rect((if(~f3 == nil, {f3.value},{~f3.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
552 ~z28 = (CompositeView(w, Rect((if(~f4 == nil, {f4.value},{~f4.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
553 ~z29 = (CompositeView(w, Rect((if(~f5 == nil, {f5.value},{~f5.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
554 ~z30 = (CompositeView(w, Rect((if(~f6 == nil, {f6.value},{~f6.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
555 ~z31 = (CompositeView(w, Rect((if(~f7 == nil, {f7.value},{~f7.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
556 ~z32 = (CompositeView(w, Rect((if(~f8 == nil, {f8.value},{~f8.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
557 ~z33 = (CompositeView(w, Rect((if(~f9 == nil, {f9.value},{~f9.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
558 ~z34 = (CompositeView(w, Rect((if(~f10 == nil, {f10.value},{~f10.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
559 ~z35 = (CompositeView(w, Rect((if(~f11 == nil, {f11.value},{~f11.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
560 ~z36 = (CompositeView(w, Rect((if(~f12 == nil, {f12.value},{~f12.value}).explin(~outmin2,~outmax2,0,Window.screenBounds.width)), ~dc2=~dc2+10, ~nw, 2)).background = Color.white;);
563 ~dc1 = ~tgrid-5; ~dc2 = ~bgrid-5; ~dca = 10;
566 //synth functions (open, flow, slide, pause, free)
570 {((~l1a.isRunning == false) and: (~l1a1.isRunning == false)) or: ~l1a1.isRunning == true}{
571 if(~l1a1.isRunning == true, {
572 (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;
573 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
574 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
575 ~l1a1.set(\dur, f1, \vol, vol1); ~l1b1.set(\dur, f1, \vol, vol1);
576 ~l1c1.set(\dur, f1/~icd3, \vol, vol1); ~l1d1.set(\dur, f1/~icd3, \vol, vol1);
577 ~l1e1.set(\dur, f1/~icd6, \vol, vol1); ~l1f1.set(\dur, f1/~icd6, \vol, vol1);
578 ~l2a1.set(\dur, f2, \vol, vol2); ~l2b1.set(\dur, f2, \vol, vol2);
579 ~l2c1.set(\dur, f2/~icd3, \vol, vol2); ~l2d1.set(\dur, f2/~icd3, \vol, vol2);
580 ~l2e1.set(\dur, f2/~icd6, \vol, vol2); ~l2f1.set(\dur, f2/~icd6, \vol, vol2);
581 ~l3a1.set(\dur, f3, \vol, vol3); ~l3b1.set(\dur, f3, \vol, vol3);
582 ~l3c1.set(\dur, f3/~icd3, \vol, vol3); ~l3d1.set(\dur, f3/~icd3, \vol, vol3);
583 ~l3e1.set(\dur, f3/~icd6, \vol, vol3); ~l3f1.set(\dur, f3/~icd6, \vol, vol3);
584 ~l4a1.set(\dur, f4, \vol, vol4); ~l4b1.set(\dur, f4, \vol, vol4);
585 ~l4c1.set(\dur, f4/~icd3, \vol, vol4); ~l4d1.set(\dur, f4/~icd3, \vol, vol4);
586 ~l4e1.set(\dur, f4/~icd6, \vol, vol4); ~l4f1.set(\dur, f4/~icd6, \vol, vol4);
587 ~l5a1.set(\dur, f5, \vol, vol5); ~l5b1.set(\dur, f5, \vol, vol5);
588 ~l5c1.set(\dur, f5/~icd3, \vol, vol5); ~l5d1.set(\dur, f5/~icd3, \vol, vol5);
589 ~l5e1.set(\dur, f5/~icd6, \vol, vol5); ~l5f1.set(\dur, f5/~icd6, \vol, vol5);
590 ~l6a1.set(\dur, f6, \vol, vol6); ~l6b1.set(\dur, f6, \vol, vol6);
591 ~l6c1.set(\dur, f6/~icd3, \vol, vol6); ~l6d1.set(\dur, f6/~icd3, \vol, vol6);
592 ~l6e1.set(\dur, f6/~icd6, \vol, vol6); ~l6f1.set(\dur, f6/~icd6, \vol, vol6);
593 ~l7a1.set(\dur, f7, \vol, vol7); ~l7b1.set(\dur, f7, \vol, vol7);
594 ~l7c1.set(\dur, f7/~icd3, \vol, vol7); ~l7d1.set(\dur, f7/~icd3, \vol, vol7);
595 ~l7e1.set(\dur, f7/~icd6, \vol, vol7); ~l7f1.set(\dur, f7/~icd6, \vol, vol7);
596 ~l8a1.set(\dur, f8, \vol, vol8); ~l8b1.set(\dur, f8, \vol, vol8);
597 ~l8c1.set(\dur, f8/~icd3, \vol, vol8); ~l8d1.set(\dur, f8/~icd3, \vol, vol8);
598 ~l8e1.set(\dur, f8/~icd6, \vol, vol8); ~l8f1.set(\dur, f8/~icd6, \vol, vol8);
599 ~l9a1.set(\dur, f9, \vol, vol9); ~l9b1.set(\dur, f9, \vol, vol9);
600 ~l9c1.set(\dur, f9/~icd3, \vol, vol9); ~l9d1.set(\dur, f9/~icd3, \vol, vol9);
601 ~l9e1.set(\dur, f9/~icd6, \vol, vol9); ~l9f1.set(\dur, f9/~icd6, \vol, vol9);
602 ~l10a1.set(\dur, f10, \vol, vol10); ~l10b1.set(\dur, f10, \vol, vol10);
603 ~l10c1.set(\dur, f10/~icd3, \vol, vol10);~l10d1.set(\dur, f10/~icd3, \vol, vol10);
604 ~l10e1.set(\dur, f10/~icd6, \vol, vol10);~l10f1.set(\dur, f10/~icd6, \vol, vol10);
605 ~l11a1.set(\dur, f11, \vol, vol11); ~l11b1.set(\dur, f11, \vol, vol11);
606 ~l11c1.set(\dur, f11/~icd3, \vol, vol11);~l11d1.set(\dur, f11/~icd3, \vol, vol11);
607 ~l11e1.set(\dur, f11/~icd6, \vol, vol11);~l11f1.set(\dur, f11/~icd6, \vol, vol11);
608 ~l12a1.set(\dur, f12, \vol, vol12); ~l12b1.set(\dur, f12, \vol, vol12);
609 ~l12c1.set(\dur, f12/~icd3, \vol, vol12);~l12d1.set(\dur, f12/~icd3, \vol, vol12);
610 ~l12e1.set(\dur, f12/~icd6, \vol, vol12);~l12f1.set(\dur, f12/~icd6, \vol, vol12);
615 1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6;
616 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
617 #s1,s2,s3,s4,s5,s6 = [\gsineicfld6, \gsineicrld6, \gsineicfld2, \gsineicrld2, \gsineicfld1, \gsineicrld1];
618 ~l1a = Synth(s1, [\dur, ~f1, \vol, vol1]).register; ~l1b = Synth(s2, [\dur, ~f1, \vol, vol1]);
619 ~l1c = Synth(s3, [\dur, ~f1/~icd3, \vol, vol1]); ~l1d = Synth(s4, [\dur, ~f1/~icd3, \vol, vol1]);
620 ~l1e = Synth(s5, [\dur, ~f1/~icd6, \vol, vol1]); ~l1f = Synth(s6, [\dur, ~f1/~icd6, \vol, vol1]);
621 ~l2a = Synth(s1, [\dur, ~f2, \vol, vol2]); ~l2b = Synth(s2, [\dur, ~f2, \vol, vol2]);
622 ~l2c = Synth(s3, [\dur, ~f2/~icd3, \vol, vol2]); ~l2d = Synth(s4, [\dur, ~f2/~icd3, \vol, vol2]);
623 ~l2e = Synth(s5, [\dur, ~f2/~icd6, \vol, vol2]); ~l2f = Synth(s6, [\dur, ~f2/~icd6, \vol, vol2]);
624 ~l3a = Synth(s1, [\dur, ~f3, \vol, vol3]); ~l3b = Synth(s2, [\dur, ~f3, \vol, vol3]);
625 ~l3c = Synth(s3, [\dur, ~f3/~icd3, \vol, vol3]); ~l3d = Synth(s4, [\dur, ~f3/~icd3, \vol, vol3]);
626 ~l3e = Synth(s5, [\dur, ~f3/~icd6, \vol, vol3]); ~l3f = Synth(s6, [\dur, ~f3/~icd6, \vol, vol3]);
627 ~l4a = Synth(s1, [\dur, ~f4, \vol, vol4]); ~l4b = Synth(s2, [\dur, ~f4, \vol, vol4]);
628 ~l4c = Synth(s3, [\dur, ~f4/~icd3, \vol, vol4]); ~l4d = Synth(s4, [\dur, ~f4/~icd3, \vol, vol4]);
629 ~l4e = Synth(s5, [\dur, ~f4/~icd6, \vol, vol4]); ~l4f = Synth(s6, [\dur, ~f4/~icd6, \vol, vol4]);
630 ~l5a = Synth(s1, [\dur, ~f5, \vol, vol5]); ~l5b = Synth(s2, [\dur, ~f5, \vol, vol5]);
631 ~l5c = Synth(s3, [\dur, ~f5/~icd3, \vol, vol5]); ~l5d = Synth(s4, [\dur, ~f5/~icd3, \vol, vol5]);
632 ~l5e = Synth(s5, [\dur, ~f5/~icd6, \vol, vol5]); ~l5f = Synth(s6, [\dur, ~f5/~icd6, \vol, vol5]);
633 ~l6a = Synth(s1, [\dur, ~f6, \vol, vol6]); ~l6b = Synth(s2, [\dur, ~f6, \vol, vol6]);
634 ~l6c = Synth(s3, [\dur, ~f6/~icd3, \vol, vol6]); ~l6d = Synth(s4, [\dur, ~f6/~icd3, \vol, vol6]);
635 ~l6e = Synth(s5, [\dur, ~f6/~icd6, \vol, vol6]); ~l6f = Synth(s6, [\dur, ~f6/~icd6, \vol, vol6]);
636 ~l7a = Synth(s1, [\dur, ~f7, \vol, vol7]); ~l7b = Synth(s2, [\dur, ~f7, \vol, vol7]);
637 ~l7c = Synth(s3, [\dur, ~f7/~icd3, \vol, vol7]); ~l7d = Synth(s4, [\dur, ~f7/~icd3, \vol, vol7]);
638 ~l7e = Synth(s5, [\dur, ~f7/~icd6, \vol, vol7]); ~l7f = Synth(s6, [\dur, ~f7/~icd6, \vol, vol7]);
639 ~l8a = Synth(s1, [\dur, ~f8, \vol, vol8]); ~l8b = Synth(s2, [\dur, ~f8, \vol, vol8]);
640 ~l8c = Synth(s3, [\dur, ~f8/~icd3, \vol, vol8]); ~l8d = Synth(s4, [\dur, ~f8/~icd3, \vol, vol8]);
641 ~l8e = Synth(s5, [\dur, ~f8/~icd6, \vol, vol8]); ~l8f = Synth(s6, [\dur, ~f8/~icd6, \vol, vol8]);
642 ~l9a = Synth(s1, [\dur, ~f9, \vol, vol9]); ~l9b = Synth(s2, [\dur, ~f9, \vol, vol9]);
643 ~l9c = Synth(s3, [\dur, ~f9/~icd3, \vol, vol9]); ~l9d = Synth(s4, [\dur, ~f9/~icd3, \vol, vol9]);
644 ~l9e = Synth(s5, [\dur, ~f9/~icd6, \vol, vol9]); ~l9f = Synth(s6, [\dur, ~f9/~icd6, \vol, vol9]);
645 ~l10a = Synth(s1, [\dur,~f10, \vol, vol10]); ~l10b = Synth(s2, [\dur, ~f10, \vol, vol10]);
646 ~l10c = Synth(s3, [\dur, ~f10/~icd3, \vol, vol10]);~l10d = Synth(s4, [\dur, ~f10/~icd3, \vol, vol10]);
647 ~l10e = Synth(s5, [\dur, ~f10/~icd6, \vol, vol10]);~l10f = Synth(s6, [\dur, ~f10/~icd6, \vol, vol10]);
648 ~l11a = Synth(s1, [\dur,~f11, \vol, vol11]); ~l11b = Synth(s2, [\dur, ~f11, \vol, vol11]);
649 ~l11c = Synth(s3, [\dur, ~f11/~icd3, \vol, vol11]);~l11d = Synth(s4, [\dur, ~f11/~icd3, \vol, vol11]);
650 ~l11e = Synth(s5, [\dur, ~f11/~icd6, \vol, vol11]);~l11f = Synth(s6, [\dur, ~f11/~icd6, \vol, vol11]);
651 ~l12a = Synth(s1, [\dur,~f12, \vol, vol12]); ~l12b = Synth(s2, [\dur, ~f12, \vol, vol12]);
652 ~l12c = Synth(s3, [\dur, ~f12/~icd3, \vol, vol12]);~l12d = Synth(s4, [\dur, ~f12/~icd3, \vol, vol12]);
653 ~l12e = Synth(s5, [\dur, ~f12/~icd6, \vol, vol12]);~l12f = Synth(s6, [\dur, ~f12/~icd6, \vol, vol12]);
656 if(~l1a1.isRunning == true, {
657 AppClock.sched(0.161803398875,{
658 ([~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;
662 {~l1a.isRunning == true}{
663 (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;
664 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
665 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
666 ~l1a.set(\dur, f1, \vol, vol1); ~l1b.set(\dur, f1, \vol, vol1);
667 ~l1c.set(\dur, f1/~icd3, \vol, vol1); ~l1d.set(\dur, f1/~icd3, \vol, vol1);
668 ~l1e.set(\dur, f1/~icd6, \vol, vol1); ~l1f.set(\dur, f1/~icd6, \vol, vol1);
669 ~l2a.set(\dur, f2, \vol, vol2); ~l2b.set(\dur, f2, \vol, vol2);
670 ~l2c.set(\dur, f2/~icd3, \vol, vol2); ~l2d.set(\dur, f2/~icd3, \vol, vol2);
671 ~l2e.set(\dur, f2/~icd6, \vol, vol2); ~l2f.set(\dur, f2/~icd6, \vol, vol2);
672 ~l3a.set(\dur, f3, \vol, vol3); ~l3b.set(\dur, f3, \vol, vol3);
673 ~l3c.set(\dur, f3/~icd3, \vol, vol3); ~l3d.set(\dur, f3/~icd3, \vol, vol3);
674 ~l3e.set(\dur, f3/~icd6, \vol, vol3); ~l3f.set(\dur, f3/~icd6, \vol, vol3);
675 ~l4a.set(\dur, f4, \vol, vol4); ~l4b.set(\dur, f4, \vol, vol4);
676 ~l4c.set(\dur, f4/~icd3, \vol, vol4); ~l4d.set(\dur, f4/~icd3, \vol, vol4);
677 ~l4e.set(\dur, f4/~icd6, \vol, vol4); ~l4f.set(\dur, f4/~icd6, \vol, vol4);
678 ~l5a.set(\dur, f5, \vol, vol5); ~l5b.set(\dur, f5, \vol, vol5);
679 ~l5c.set(\dur, f5/~icd3, \vol, vol5); ~l5d.set(\dur, f5/~icd3, \vol, vol5);
680 ~l5e.set(\dur, f5/~icd6, \vol, vol5); ~l5f.set(\dur, f5/~icd6, \vol, vol5);
681 ~l6a.set(\dur, f6, \vol, vol6); ~l6b.set(\dur, f6, \vol, vol6);
682 ~l6c.set(\dur, f6/~icd3, \vol, vol6); ~l6d.set(\dur, f6/~icd3, \vol, vol6);
683 ~l6e.set(\dur, f6/~icd6, \vol, vol6); ~l6f.set(\dur, f6/~icd6, \vol, vol6);
684 ~l7a.set(\dur, f7, \vol, vol7); ~l7b.set(\dur, f7, \vol, vol7);
685 ~l7c.set(\dur, f7/~icd3, \vol, vol7); ~l7d.set(\dur, f7/~icd3, \vol, vol7);
686 ~l7e.set(\dur, f7/~icd6, \vol, vol7); ~l7f.set(\dur, f7/~icd6, \vol, vol7);
687 ~l8a.set(\dur, f8, \vol, vol8); ~l8b.set(\dur, f8, \vol, vol8);
688 ~l8c.set(\dur, f8/~icd3, \vol, vol8); ~l8d.set(\dur, f8/~icd3, \vol, vol8);
689 ~l8e.set(\dur, f8/~icd6, \vol, vol8); ~l8f.set(\dur, f8/~icd6, \vol, vol8);
690 ~l9a.set(\dur, f9, \vol, vol9); ~l9b.set(\dur, f9, \vol, vol9);
691 ~l9c.set(\dur, f9/~icd3, \vol, vol9); ~l9d.set(\dur, f9/~icd3, \vol, vol9);
692 ~l9e.set(\dur, f9/~icd6, \vol, vol9); ~l9f.set(\dur, f9/~icd6, \vol, vol9);
693 ~l10a.set(\dur, f10, \vol, vol10); ~l10b.set(\dur, f10, \vol, vol10);
694 ~l10c.set(\dur, f10/~icd3, \vol, vol10);~l10d.set(\dur, f10/~icd3, \vol, vol10);
695 ~l10e.set(\dur, f10/~icd6, \vol, vol10);~l10f.set(\dur, f10/~icd6, \vol, vol10);
696 ~l11a.set(\dur, f11, \vol, vol11); ~l11b.set(\dur, f11, \vol, vol11);
697 ~l11c.set(\dur, f11/~icd3, \vol, vol11,);~l11d.set(\dur, f11/~icd3, \vol, vol11);
698 ~l11e.set(\dur, f11/~icd6, \vol, vol11);~l11f.set(\dur, f11/~icd6, \vol, vol11);
699 ~l12a.set(\dur, f12, \vol, vol12); ~l12b.set(\dur, f12, \vol, vol12);
700 ~l12c.set(\dur, f12/~icd3, \vol, vol12,);~l12d.set(\dur, f12/~icd3, \vol, vol12);
701 ~l12e.set(\dur, f12/~icd6, \vol, vol12);~l12f.set(\dur, f12/~icd6, \vol, vol12);
705 1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6;
706 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
707 #s1,s2,s3,s4,s5,s6 = [\gsineicfld6, \gsineicrld6, \gsineicfld2, \gsineicrld2, \gsineicfld1, \gsineicrld1];
708 ~l1a1 = Synth(s1, [\dur, ~f1, \vol, vol1]).register; ~l1b1 = Synth(s2, [\dur, ~f1, \vol, vol1]);
709 ~l1c1 = Synth(s3, [\dur, ~f1/~icd3, \vol, vol1]); ~l1d1 = Synth(s4, [\dur, ~f1/~icd3, \vol, vol1]);
710 ~l1e1 = Synth(s5, [\dur, ~f1/~icd6, \vol, vol1]); ~l1f1 = Synth(s6, [\dur, ~f1/~icd6, \vol, vol1]);
711 ~l2a1 = Synth(s1, [\dur, ~f2, \vol, vol2]); ~l2b1 = Synth(s2, [\dur, ~f2, \vol, vol2]);
712 ~l2c1 = Synth(s3, [\dur, ~f2/~icd3, \vol, vol2]); ~l2d1 = Synth(s4, [\dur, ~f2/~icd3, \vol, vol2]);
713 ~l2e1 = Synth(s5, [\dur, ~f2/~icd6, \vol, vol2]); ~l2f1 = Synth(s6, [\dur, ~f2/~icd6, \vol, vol2]);
714 ~l3a1 = Synth(s1, [\dur, ~f3, \vol, vol3]); ~l3b1 = Synth(s2, [\dur, ~f3, \vol, vol3]);
715 ~l3c1 = Synth(s3, [\dur, ~f3/~icd3, \vol, vol3]); ~l3d1 = Synth(s4, [\dur, ~f3/~icd3, \vol, vol3]);
716 ~l3e1 = Synth(s5, [\dur, ~f3/~icd6, \vol, vol3]); ~l3f1 = Synth(s6, [\dur, ~f3/~icd6, \vol, vol3]);
717 ~l4a1 = Synth(s1, [\dur, ~f4, \vol, vol4]); ~l4b1 = Synth(s2, [\dur, ~f4, \vol, vol4]);
718 ~l4c1 = Synth(s3, [\dur, ~f4/~icd3, \vol, vol4]); ~l4d1 = Synth(s4, [\dur, ~f4/~icd3, \vol, vol4]);
719 ~l4e1 = Synth(s5, [\dur, ~f4/~icd6, \vol, vol4]); ~l4f1 = Synth(s6, [\dur, ~f4/~icd6, \vol, vol4]);
720 ~l5a1 = Synth(s1, [\dur, ~f5, \vol, vol5]); ~l5b1 = Synth(s2, [\dur, ~f5, \vol, vol5]);
721 ~l5c1 = Synth(s3, [\dur, ~f5/~icd3, \vol, vol5]); ~l5d1 = Synth(s4, [\dur, ~f5/~icd3, \vol, vol5]);
722 ~l5e1 = Synth(s5, [\dur, ~f5/~icd6, \vol, vol5]); ~l5f1 = Synth(s6, [\dur, ~f5/~icd6, \vol, vol5]);
723 ~l6a1 = Synth(s1, [\dur, ~f6, \vol, vol6]); ~l6b1 = Synth(s2, [\dur, ~f6, \vol, vol6]);
724 ~l6c1 = Synth(s3, [\dur, ~f6/~icd3, \vol, vol6]); ~l6d1 = Synth(s4, [\dur, ~f6/~icd3, \vol, vol6]);
725 ~l6e1 = Synth(s5, [\dur, ~f6/~icd6, \vol, vol6]); ~l6f1 = Synth(s6, [\dur, ~f6/~icd6, \vol, vol6]);
726 ~l7a1 = Synth(s1, [\dur, ~f7, \vol, vol7]); ~l7b1 = Synth(s2, [\dur, ~f7, \vol, vol7]);
727 ~l7c1 = Synth(s3, [\dur, ~f7/~icd3, \vol, vol7]); ~l7d1 = Synth(s4, [\dur, ~f7/~icd3, \vol, vol7]);
728 ~l7e1 = Synth(s5, [\dur, ~f7/~icd6, \vol, vol7]); ~l7f1 = Synth(s6, [\dur, ~f7/~icd6, \vol, vol7]);
729 ~l8a1 = Synth(s1, [\dur, ~f8, \vol, vol8]); ~l8b1 = Synth(s2, [\dur, ~f8, \vol, vol8]);
730 ~l8c1 = Synth(s3, [\dur, ~f8/~icd3, \vol, vol8]); ~l8d1 = Synth(s4, [\dur, ~f8/~icd3, \vol, vol8]);
731 ~l8e1 = Synth(s5, [\dur, ~f8/~icd6, \vol, vol8]); ~l8f1 = Synth(s6, [\dur, ~f8/~icd6, \vol, vol8]);
732 ~l9a1 = Synth(s1, [\dur, ~f9, \vol, vol9]); ~l9b1 = Synth(s2, [\dur, ~f9, \vol, vol9]);
733 ~l9c1 = Synth(s3, [\dur, ~f9/~icd3, \vol, vol9]); ~l9d1 = Synth(s4, [\dur, ~f9/~icd3, \vol, vol9]);
734 ~l9e1 = Synth(s5, [\dur, ~f9/~icd6, \vol, vol9]); ~l9f1 = Synth(s6, [\dur, ~f9/~icd6, \vol, vol9]);
735 ~l10a1 = Synth(s1, [\dur,~f10, \vol, vol10]); ~l10b1 = Synth(s2, [\dur, ~f10, \vol, vol10]);
736 ~l10c1 = Synth(s3, [\dur, ~f10/~icd3, \vol, vol10]);~l10d1 = Synth(s4, [\dur, ~f10/~icd3, \vol, vol10]);
737 ~l10e1 = Synth(s5, [\dur, ~f10/~icd6, \vol, vol10]);~l10f1 = Synth(s6, [\dur, ~f10/~icd6, \vol, vol10]);
738 ~l11a1 = Synth(s1, [\dur,~f11, \vol, vol11]); ~l11b1 = Synth(s2, [\dur, ~f11, \vol, vol11]);
739 ~l11c1 = Synth(s3, [\dur, ~f11/~icd3, \vol, vol11]);~l11d1 = Synth(s4, [\dur, ~f11/~icd3, \vol, vol11]);
740 ~l11e1 = Synth(s5, [\dur, ~f11/~icd6, \vol, vol11]);~l11f1 = Synth(s6, [\dur, ~f11/~icd6, \vol, vol11]);
741 ~l12a1 = Synth(s1, [\dur,~f12, \vol, vol12]); ~l12b1 = Synth(s2, [\dur, ~f12, \vol, vol12]);
742 ~l12c1 = Synth(s3, [\dur, ~f12/~icd3, \vol, vol12]);~l12d1 = Synth(s4, [\dur, ~f12/~icd3, \vol, vol12]);
743 ~l12e1 = Synth(s5, [\dur, ~f12/~icd6, \vol, vol12]);~l12f1 = Synth(s6, [\dur, ~f12/~icd6, \vol, vol12]);
747 AppClock.sched(0.161803398875,{
748 ([~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;
752 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (CompositeView(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (CompositeView(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
753 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (CompositeView(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (CompositeView(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
754 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (CompositeView(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (CompositeView(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
755 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (CompositeView(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (CompositeView(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
756 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (CompositeView(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (CompositeView(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
757 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (CompositeView(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (CompositeView(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
758 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (CompositeView(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (CompositeView(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
759 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (CompositeView(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (CompositeView(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
760 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (CompositeView(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (CompositeView(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
761 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (CompositeView(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (CompositeView(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
762 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (CompositeView(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (CompositeView(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
763 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (CompositeView(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (CompositeView(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
770 {~l1a1.isRunning == true}{
771 (1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6;
772 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
773 ~l1a1.set(\dur, ~f1, \vol, vol1); ~l1b1.set(\dur, ~f1, \vol, vol1);
774 ~l1c1.set(\dur, ~f1/~icd3, \vol, vol1); ~l1d1.set(\dur, ~f1/~icd3, \vol, vol1);
775 ~l1e1.set(\dur, ~f1/~icd6, \vol, vol1); ~l1f1.set(\dur, ~f1/~icd6, \vol, vol1);
776 ~l2a1.set(\dur, ~f2, \vol, vol2); ~l2b1.set(\dur, ~f2, \vol, vol2);
777 ~l2c1.set(\dur, ~f2/~icd3, \vol, vol2); ~l2d1.set(\dur, ~f2/~icd3, \vol, vol2);
778 ~l2e1.set(\dur, ~f2/~icd6, \vol, vol2); ~l2f1.set(\dur, ~f2/~icd6, \vol, vol2);
779 ~l3a1.set(\dur, ~f3, \vol, vol3); ~l3b1.set(\dur, ~f3, \vol, vol3);
780 ~l3c1.set(\dur, ~f3/~icd3, \vol, vol3); ~l3d1.set(\dur, ~f3/~icd3, \vol, vol3);
781 ~l3e1.set(\dur, ~f3/~icd6, \vol, vol3); ~l3f1.set(\dur, ~f3/~icd6, \vol, vol3);
782 ~l4a1.set(\dur, ~f4, \vol, vol4); ~l4b1.set(\dur, ~f4, \vol, vol4);
783 ~l4c1.set(\dur, ~f4/~icd3, \vol, vol4); ~l4d1.set(\dur, ~f4/~icd3, \vol, vol4);
784 ~l4e1.set(\dur, ~f4/~icd6, \vol, vol4); ~l4f1.set(\dur, ~f4/~icd6, \vol, vol4);
785 ~l5a1.set(\dur, ~f5, \vol, vol5); ~l5b1.set(\dur, ~f5, \vol, vol5);
786 ~l5c1.set(\dur, ~f5/~icd3, \vol, vol5); ~l5d1.set(\dur, ~f5/~icd3, \vol, vol5);
787 ~l5e1.set(\dur, ~f5/~icd6, \vol, vol5); ~l5f1.set(\dur, ~f5/~icd6, \vol, vol5);
788 ~l6a1.set(\dur, ~f6, \vol, vol6); ~l6b1.set(\dur, ~f6, \vol, vol6);
789 ~l6c1.set(\dur, ~f6/~icd3, \vol, vol6); ~l6d1.set(\dur, ~f6/~icd3, \vol, vol6);
790 ~l6e1.set(\dur, ~f6/~icd6, \vol, vol6); ~l6f1.set(\dur, ~f6/~icd6, \vol, vol6);
791 ~l7a1.set(\dur, ~f7, \vol, vol7); ~l7b1.set(\dur, ~f7, \vol, vol7);
792 ~l7c1.set(\dur, ~f7/~icd3, \vol, vol7); ~l7d1.set(\dur, ~f7/~icd3, \vol, vol7);
793 ~l7e1.set(\dur, ~f7/~icd6, \vol, vol7); ~l7f1.set(\dur, ~f7/~icd6, \vol, vol7);
794 ~l8a1.set(\dur, ~f8, \vol, vol8); ~l8b1.set(\dur, ~f8, \vol, vol8);
795 ~l8c1.set(\dur, ~f8/~icd3, \vol, vol8); ~l8d1.set(\dur, ~f8/~icd3, \vol, vol8);
796 ~l8e1.set(\dur, ~f8/~icd6, \vol, vol8); ~l8f1.set(\dur, ~f8/~icd6, \vol, vol8);
797 ~l9a1.set(\dur, ~f9, \vol, vol9); ~l9b1.set(\dur, ~f9, \vol, vol9);
798 ~l9c1.set(\dur, ~f9/~icd3, \vol, vol9); ~l9d1.set(\dur, ~f9/~icd3, \vol, vol9);
799 ~l9e1.set(\dur, ~f9/~icd6, \vol, vol9); ~l9f1.set(\dur, ~f9/~icd6, \vol, vol9);
800 ~l10a1.set(\dur, ~f10, \vol, vol10); ~l10b1.set(\dur, ~f10, \vol, vol10);
801 ~l10c1.set(\dur, ~f10/~icd3, \vol, vol10);~l10d1.set(\dur, ~f10/~icd3, \vol, vol10);
802 ~l10e1.set(\dur, ~f10/~icd6, \vol, vol10);~l10f1.set(\dur, ~f10/~icd6, \vol, vol10);
803 ~l11a1.set(\dur, ~f11, \vol, vol11); ~l11b1.set(\dur, ~f11, \vol, vol11);
804 ~l11c1.set(\dur, ~f11/~icd3, \vol, vol11);~l11d1.set(\dur, ~f11/~icd3, \vol, vol11);
805 ~l11e1.set(\dur, ~f11/~icd6, \vol, vol11);~l11f1.set(\dur, ~f11/~icd6, \vol, vol11);
806 ~l12a1.set(\dur, ~f12, \vol, vol12); ~l12b1.set(\dur, ~f12, \vol, vol12);
807 ~l12c1.set(\dur, ~f12/~icd3, \vol, vol12);~l12d1.set(\dur, ~f12/~icd3, \vol, vol12);
808 ~l12e1.set(\dur, ~f12/~icd6, \vol, vol12);~l12f1.set(\dur, ~f12/~icd6, \vol, vol12);
811 {~l1a.isRunning == true} {
812 (1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6;
813 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
814 ~l1a.set(\dur, ~f1, \vol, vol1); ~l1b.set(\dur, ~f1, \vol, vol1);
815 ~l1c.set(\dur, ~f1/~icd3, \vol, vol1); ~l1d.set(\dur, ~f1/~icd3, \vol, vol1);
816 ~l1e.set(\dur, ~f1/~icd6, \vol, vol1); ~l1f.set(\dur, ~f1/~icd6, \vol, vol1);
817 ~l2a.set(\dur, ~f2, \vol, vol2); ~l2b.set(\dur, ~f2, \vol, vol2);
818 ~l2c.set(\dur, ~f2/~icd3, \vol, vol2); ~l2d.set(\dur, ~f2/~icd3, \vol, vol2);
819 ~l2e.set(\dur, ~f2/~icd6, \vol, vol2); ~l2f.set(\dur, ~f2/~icd6, \vol, vol2);
820 ~l3a.set(\dur, ~f3, \vol, vol3); ~l3b.set(\dur, ~f3, \vol, vol3);
821 ~l3c.set(\dur, ~f3/~icd3, \vol, vol3); ~l3d.set(\dur, ~f3/~icd3, \vol, vol3);
822 ~l3e.set(\dur, ~f3/~icd6, \vol, vol3); ~l3f.set(\dur, ~f3/~icd6, \vol, vol3);
823 ~l4a.set(\dur, ~f4, \vol, vol4); ~l4b.set(\dur, ~f4, \vol, vol4);
824 ~l4c.set(\dur, ~f4/~icd3, \vol, vol4); ~l4d.set(\dur, ~f4/~icd3, \vol, vol4);
825 ~l4e.set(\dur, ~f4/~icd6, \vol, vol4); ~l4f.set(\dur, ~f4/~icd6, \vol, vol4);
826 ~l5a.set(\dur, ~f5, \vol, vol5); ~l5b.set(\dur, ~f5, \vol, vol5);
827 ~l5c.set(\dur, ~f5/~icd3, \vol, vol5); ~l5d.set(\dur, ~f5/~icd3, \vol, vol5);
828 ~l5e.set(\dur, ~f5/~icd6, \vol, vol5); ~l5f.set(\dur, ~f5/~icd6, \vol, vol5);
829 ~l6a.set(\dur, ~f6, \vol, vol6); ~l6b.set(\dur, ~f6, \vol, vol6);
830 ~l6c.set(\dur, ~f6/~icd3, \vol, vol6); ~l6d.set(\dur, ~f6/~icd3, \vol, vol6);
831 ~l6e.set(\dur, ~f6/~icd6, \vol, vol6); ~l6f.set(\dur, ~f6/~icd6, \vol, vol6);
832 ~l7a.set(\dur, ~f7, \vol, vol7); ~l7b.set(\dur, ~f7, \vol, vol7);
833 ~l7c.set(\dur, ~f7/~icd3, \vol, vol7); ~l7d.set(\dur, ~f7/~icd3, \vol, vol7);
834 ~l7e.set(\dur, ~f7/~icd6, \vol, vol7); ~l7f.set(\dur, ~f7/~icd6, \vol, vol7);
835 ~l8a.set(\dur, ~f8, \vol, vol8); ~l8b.set(\dur, ~f8, \vol, vol8);
836 ~l8c.set(\dur, ~f8/~icd3, \vol, vol8); ~l8d.set(\dur, ~f8/~icd3, \vol, vol8);
837 ~l8e.set(\dur, ~f8/~icd6, \vol, vol8); ~l8f.set(\dur, ~f8/~icd6, \vol, vol8);
838 ~l9a.set(\dur, ~f9, \vol, vol9); ~l9b.set(\dur, ~f9, \vol, vol9);
839 ~l9c.set(\dur, ~f9/~icd3, \vol, vol9); ~l9d.set(\dur, ~f9/~icd3, \vol, vol9);
840 ~l9e.set(\dur, ~f9/~icd6, \vol, vol9); ~l9f.set(\dur, ~f9/~icd6, \vol, vol9);
841 ~l10a.set(\dur, ~f10, \vol, vol10); ~l10b.set(\dur, ~f10, \vol, vol10);
842 ~l10c.set(\dur, ~f10/~icd3, \vol, vol10);~l10d.set(\dur, ~f10/~icd3, \vol, vol10);
843 ~l10e.set(\dur, ~f10/~icd6, \vol, vol10);~l10f.set(\dur, ~f10/~icd6, \vol, vol10);
844 ~l11a.set(\dur, ~f11, \vol, vol11); ~l11b.set(\dur, ~f11, \vol, vol11);
845 ~l11c.set(\dur, ~f11/~icd3, \vol, vol11);~l11d.set(\dur, ~f11/~icd3, \vol, vol11);
846 ~l11e.set(\dur, ~f11/~icd6, \vol, vol11);~l11f.set(\dur, ~f11/~icd6, \vol, vol11);
847 ~l12a.set(\dur, ~f12, \vol, vol12); ~l12b.set(\dur, ~f12, \vol, vol12);
848 ~l12c.set(\dur, ~f12/~icd3, \vol, vol12);~l12d.set(\dur, ~f12/~icd3, \vol, vol12);
849 ~l12e.set(\dur, ~f12/~icd6, \vol, vol12);~l12f.set(\dur, ~f12/~icd6, \vol, vol12);
854 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (CompositeView(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (CompositeView(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
855 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (CompositeView(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (CompositeView(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
856 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (CompositeView(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (CompositeView(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
857 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (CompositeView(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (CompositeView(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
858 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (CompositeView(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (CompositeView(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
859 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (CompositeView(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (CompositeView(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
860 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (CompositeView(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (CompositeView(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
861 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (CompositeView(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (CompositeView(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
862 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (CompositeView(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (CompositeView(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
863 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (CompositeView(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (CompositeView(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
864 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (CompositeView(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (CompositeView(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
865 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (CompositeView(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (CompositeView(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
871 {~l1a1.isRunning == true}{(//fprog
872 ~slideroutine = Routine({1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6;
873 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
874 ~slidedo.do({~slidecount=~slidecount-1;
876 [ ~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 ];
877 ~l1a1.set(\dur, ~f1, \vol, vol1); ~l1b1.set(\dur, ~f1, \vol, vol1);
878 ~l1c1.set(\dur, ~f1/~icd3, \vol, vol1); ~l1d1.set(\dur, ~f1/~icd3, \vol, vol1);
879 ~l1e1.set(\dur, ~f1/~icd6, \vol, vol1); ~l1f1.set(\dur, ~f1/~icd6, \vol, vol1);
880 ~l2a1.set(\dur, ~f2, \vol, vol2); ~l2b1.set(\dur, ~f2, \vol, vol2);
881 ~l2c1.set(\dur, ~f2/~icd3, \vol, vol2); ~l2d1.set(\dur, ~f2/~icd3, \vol, vol2);
882 ~l2e1.set(\dur, ~f2/~icd6, \vol, vol2); ~l2f1.set(\dur, ~f2/~icd6, \vol, vol2);
883 ~l3a1.set(\dur, ~f3, \vol, vol3); ~l3b1.set(\dur, ~f3, \vol, vol3);
884 ~l3c1.set(\dur, ~f3/~icd3, \vol, vol3); ~l3d1.set(\dur, ~f3/~icd3, \vol, vol3);
885 ~l3e1.set(\dur, ~f3/~icd6, \vol, vol3); ~l3f1.set(\dur, ~f3/~icd6, \vol, vol3);
886 ~l4a1.set(\dur, ~f4, \vol, vol4); ~l4b1.set(\dur, ~f4, \vol, vol4);
887 ~l4c1.set(\dur, ~f4/~icd3, \vol, vol4); ~l4d1.set(\dur, ~f4/~icd3, \vol, vol4);
888 ~l4e1.set(\dur, ~f4/~icd6, \vol, vol4); ~l4f1.set(\dur, ~f4/~icd6, \vol, vol4);
889 ~l5a1.set(\dur, ~f5, \vol, vol5); ~l5b1.set(\dur, ~f5, \vol, vol5);
890 ~l5c1.set(\dur, ~f5/~icd3, \vol, vol5); ~l5d1.set(\dur, ~f5/~icd3, \vol, vol5);
891 ~l5e1.set(\dur, ~f5/~icd6, \vol, vol5); ~l5f1.set(\dur, ~f5/~icd6, \vol, vol5);
892 ~l6a1.set(\dur, ~f6, \vol, vol6); ~l6b1.set(\dur, ~f6, \vol, vol6);
893 ~l6c1.set(\dur, ~f6/~icd3, \vol, vol6); ~l6d1.set(\dur, ~f6/~icd3, \vol, vol6);
894 ~l6e1.set(\dur, ~f6/~icd6, \vol, vol6); ~l6f1.set(\dur, ~f6/~icd6, \vol, vol6);
895 ~l7a1.set(\dur, ~f7, \vol, vol7); ~l7b1.set(\dur, ~f7, \vol, vol7);
896 ~l7c1.set(\dur, ~f7/~icd3, \vol, vol7); ~l7d1.set(\dur, ~f7/~icd3, \vol, vol7);
897 ~l7e1.set(\dur, ~f7/~icd6, \vol, vol7); ~l7f1.set(\dur, ~f7/~icd6, \vol, vol7);
898 ~l8a1.set(\dur, ~f8, \vol, vol8); ~l8b1.set(\dur, ~f8, \vol, vol8);
899 ~l8c1.set(\dur, ~f8/~icd3, \vol, vol8); ~l8d1.set(\dur, ~f8/~icd3, \vol, vol8);
900 ~l8e1.set(\dur, ~f8/~icd6, \vol, vol8); ~l8f1.set(\dur, ~f8/~icd6, \vol, vol8);
901 ~l9a1.set(\dur, ~f9, \vol, vol9); ~l9b1.set(\dur, ~f9, \vol, vol9);
902 ~l9c1.set(\dur, ~f9/~icd3, \vol, vol9); ~l9d1.set(\dur, ~f9/~icd3, \vol, vol9);
903 ~l9e1.set(\dur, ~f9/~icd6, \vol, vol9); ~l9f1.set(\dur, ~f9/~icd6, \vol, vol9);
904 ~l10a1.set(\dur, ~f10, \vol, vol10); ~l10b1.set(\dur, ~f10, \vol, vol10);
905 ~l10c1.set(\dur, ~f10/~icd3, \vol, vol10);~l10d1.set(\dur, ~f10/~icd3, \vol, vol10);
906 ~l10e1.set(\dur, ~f10/~icd6, \vol, vol10);~l10f1.set(\dur, ~f10/~icd6, \vol, vol10);
907 ~l11a1.set(\dur, ~f11, \vol, vol11); ~l11b1.set(\dur, ~f11, \vol, vol11);
908 ~l11c1.set(\dur, ~f11/~icd3, \vol, vol11);~l11d1.set(\dur, ~f11/~icd3, \vol, vol11);
909 ~l11e1.set(\dur, ~f11/~icd6, \vol, vol11);~l11f1.set(\dur, ~f11/~icd6, \vol, vol11);
910 ~l12a1.set(\dur, ~f12, \vol, vol12); ~l12b1.set(\dur, ~f12, \vol, vol12);
911 ~l12c1.set(\dur, ~f12/~icd3, \vol, vol12);~l12d1.set(\dur, ~f12/~icd3, \vol, vol12);
912 ~l12e1.set(\dur, ~f12/~icd6, \vol, vol12);~l12f1.set(\dur, ~f12/~icd6, \vol, vol12);
917 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (CompositeView(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (CompositeView(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
918 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (CompositeView(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (CompositeView(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
919 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (CompositeView(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (CompositeView(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
920 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (CompositeView(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (CompositeView(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
921 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (CompositeView(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (CompositeView(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
922 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (CompositeView(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (CompositeView(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
923 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (CompositeView(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (CompositeView(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
924 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (CompositeView(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (CompositeView(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
925 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (CompositeView(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (CompositeView(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
926 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (CompositeView(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (CompositeView(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
927 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (CompositeView(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (CompositeView(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
928 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (CompositeView(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (CompositeView(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
931 (~slidetime/~slidedo).wait;});});}).play;);}
932 {~l1a.isRunning == true} {(//fprog
933 ~slideroutine = Routine({1.do({var vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12,s1,s2,s3,s4,s5,s6;
934 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
935 ~slidedo.do({~slidecount=~slidecount-1;
937 [ ~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 ];
938 ~l1a.set(\dur, ~f1, \vol, vol1); ~l1b.set(\dur, ~f1, \vol, vol1);
939 ~l1c.set(\dur, ~f1/~icd3, \vol, vol1); ~l1d.set(\dur, ~f1/~icd3, \vol, vol1);
940 ~l1e.set(\dur, ~f1/~icd6, \vol, vol1); ~l1f.set(\dur, ~f1/~icd6, \vol, vol1);
941 ~l2a.set(\dur, ~f2, \vol, vol2); ~l2b.set(\dur, ~f2, \vol, vol2);
942 ~l2c.set(\dur, ~f2/~icd3, \vol, vol2); ~l2d.set(\dur, ~f2/~icd3, \vol, vol2);
943 ~l2e.set(\dur, ~f2/~icd6, \vol, vol2); ~l2f.set(\dur, ~f2/~icd6, \vol, vol2);
944 ~l3a.set(\dur, ~f3, \vol, vol3); ~l3b.set(\dur, ~f3, \vol, vol3);
945 ~l3c.set(\dur, ~f3/~icd3, \vol, vol3); ~l3d.set(\dur, ~f3/~icd3, \vol, vol3);
946 ~l3e.set(\dur, ~f3/~icd6, \vol, vol3); ~l3f.set(\dur, ~f3/~icd6, \vol, vol3);
947 ~l4a.set(\dur, ~f4, \vol, vol4); ~l4b.set(\dur, ~f4, \vol, vol4);
948 ~l4c.set(\dur, ~f4/~icd3, \vol, vol4); ~l4d.set(\dur, ~f4/~icd3, \vol, vol4);
949 ~l4e.set(\dur, ~f4/~icd6, \vol, vol4); ~l4f.set(\dur, ~f4/~icd6, \vol, vol4);
950 ~l5a.set(\dur, ~f5, \vol, vol5); ~l5b.set(\dur, ~f5, \vol, vol5);
951 ~l5c.set(\dur, ~f5/~icd3, \vol, vol5); ~l5d.set(\dur, ~f5/~icd3, \vol, vol5);
952 ~l5e.set(\dur, ~f5/~icd6, \vol, vol5); ~l5f.set(\dur, ~f5/~icd6, \vol, vol5);
953 ~l6a.set(\dur, ~f6, \vol, vol6); ~l6b.set(\dur, ~f6, \vol, vol6);
954 ~l6c.set(\dur, ~f6/~icd3, \vol, vol6); ~l6d.set(\dur, ~f6/~icd3, \vol, vol6);
955 ~l6e.set(\dur, ~f6/~icd6, \vol, vol6); ~l6f.set(\dur, ~f6/~icd6, \vol, vol6);
956 ~l7a.set(\dur, ~f7, \vol, vol7); ~l7b.set(\dur, ~f7, \vol, vol7);
957 ~l7c.set(\dur, ~f7/~icd3, \vol, vol7); ~l7d.set(\dur, ~f7/~icd3, \vol, vol7);
958 ~l7e.set(\dur, ~f7/~icd6, \vol, vol7); ~l7f.set(\dur, ~f7/~icd6, \vol, vol7);
959 ~l8a.set(\dur, ~f8, \vol, vol8); ~l8b.set(\dur, ~f8, \vol, vol8);
960 ~l8c.set(\dur, ~f8/~icd3, \vol, vol8); ~l8d.set(\dur, ~f8/~icd3, \vol, vol8);
961 ~l8e.set(\dur, ~f8/~icd6, \vol, vol8); ~l8f.set(\dur, ~f8/~icd6, \vol, vol8);
962 ~l9a.set(\dur, ~f9, \vol, vol9); ~l9b.set(\dur, ~f9, \vol, vol9);
963 ~l9c.set(\dur, ~f9/~icd3, \vol, vol9); ~l9d.set(\dur, ~f9/~icd3, \vol, vol9);
964 ~l9e.set(\dur, ~f9/~icd6, \vol, vol9); ~l9f.set(\dur, ~f9/~icd6, \vol, vol9);
965 ~l10a.set(\dur, ~f10, \vol, vol10); ~l10b.set(\dur, ~f10, \vol, vol10);
966 ~l10c.set(\dur, ~f10/~icd3, \vol, vol10);~l10d.set(\dur, ~f10/~icd3, \vol, vol10);
967 ~l10e.set(\dur, ~f10/~icd6, \vol, vol10);~l10f.set(\dur, ~f10/~icd6, \vol, vol10);
968 ~l11a.set(\dur, ~f11, \vol, vol11); ~l11b.set(\dur, ~f11, \vol, vol11);
969 ~l11c.set(\dur, ~f11/~icd3, \vol, vol11);~l11d.set(\dur, ~f11/~icd3, \vol, vol11);
970 ~l11e.set(\dur, ~f11/~icd6, \vol, vol11);~l11f.set(\dur, ~f11/~icd6, \vol, vol11);
971 ~l12a.set(\dur, ~f12, \vol, vol12); ~l12b.set(\dur, ~f12, \vol, vol12);
972 ~l12c.set(\dur, ~f12/~icd3, \vol, vol12);~l12d.set(\dur, ~f12/~icd3, \vol, vol12);
973 ~l12e.set(\dur, ~f12/~icd6, \vol, vol12);~l12f.set(\dur, ~f12/~icd6, \vol, vol12);
979 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (CompositeView(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (CompositeView(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
980 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (CompositeView(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (CompositeView(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
981 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (CompositeView(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (CompositeView(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
982 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (CompositeView(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (CompositeView(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
983 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (CompositeView(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (CompositeView(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
984 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (CompositeView(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (CompositeView(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
985 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (CompositeView(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (CompositeView(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
986 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (CompositeView(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (CompositeView(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
987 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (CompositeView(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (CompositeView(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
988 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (CompositeView(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (CompositeView(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
989 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (CompositeView(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (CompositeView(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
990 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (CompositeView(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (CompositeView(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
993 (~slidetime/~slidedo).wait;});});}).play;);};
998 {~l1a1.isRunning == true}{
999 (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;
1000 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
1001 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
1002 ~l1a1.set(\dur, f1, \vol, vol1); ~l1b1.set(\dur, f1, \vol, vol1);
1003 ~l1c1.set(\dur, f1/~icd3, \vol, vol1); ~l1d1.set(\dur, f1/~icd3, \vol, vol1);
1004 ~l1e1.set(\dur, f1/~icd6, \vol, vol1); ~l1f1.set(\dur, f1/~icd6, \vol, vol1);
1005 ~l2a1.set(\dur, f2, \vol, vol2); ~l2b1.set(\dur, f2, \vol, vol2);
1006 ~l2c1.set(\dur, f2/~icd3, \vol, vol2); ~l2d1.set(\dur, f2/~icd3, \vol, vol2);
1007 ~l2e1.set(\dur, f2/~icd6, \vol, vol2); ~l2f1.set(\dur, f2/~icd6, \vol, vol2);
1008 ~l3a1.set(\dur, f3, \vol, vol3); ~l3b1.set(\dur, f3, \vol, vol3);
1009 ~l3c1.set(\dur, f3/~icd3, \vol, vol3); ~l3d1.set(\dur, f3/~icd3, \vol, vol3);
1010 ~l3e1.set(\dur, f3/~icd6, \vol, vol3); ~l3f1.set(\dur, f3/~icd6, \vol, vol3);
1011 ~l4a1.set(\dur, f4, \vol, vol4); ~l4b1.set(\dur, f4, \vol, vol4);
1012 ~l4c1.set(\dur, f4/~icd3, \vol, vol4); ~l4d1.set(\dur, f4/~icd3, \vol, vol4);
1013 ~l4e1.set(\dur, f4/~icd6, \vol, vol4); ~l4f1.set(\dur, f4/~icd6, \vol, vol4);
1014 ~l5a1.set(\dur, f5, \vol, vol5); ~l5b1.set(\dur, f5, \vol, vol5);
1015 ~l5c1.set(\dur, f5/~icd3, \vol, vol5); ~l5d1.set(\dur, f5/~icd3, \vol, vol5);
1016 ~l5e1.set(\dur, f5/~icd6, \vol, vol5); ~l5f1.set(\dur, f5/~icd6, \vol, vol5);
1017 ~l6a1.set(\dur, f6, \vol, vol6); ~l6b1.set(\dur, f6, \vol, vol6);
1018 ~l6c1.set(\dur, f6/~icd3, \vol, vol6); ~l6d1.set(\dur, f6/~icd3, \vol, vol6);
1019 ~l6e1.set(\dur, f6/~icd6, \vol, vol6); ~l6f1.set(\dur, f6/~icd6, \vol, vol6);
1020 ~l7a1.set(\dur, f7, \vol, vol7); ~l7b1.set(\dur, f7, \vol, vol7);
1021 ~l7c1.set(\dur, f7/~icd3, \vol, vol7); ~l7d1.set(\dur, f7/~icd3, \vol, vol7);
1022 ~l7e1.set(\dur, f7/~icd6, \vol, vol7); ~l7f1.set(\dur, f7/~icd6, \vol, vol7);
1023 ~l8a1.set(\dur, f8, \vol, vol8); ~l8b1.set(\dur, f8, \vol, vol8);
1024 ~l8c1.set(\dur, f8/~icd3, \vol, vol8); ~l8d1.set(\dur, f8/~icd3, \vol, vol8);
1025 ~l8e1.set(\dur, f8/~icd6, \vol, vol8); ~l8f1.set(\dur, f8/~icd6, \vol, vol8);
1026 ~l9a1.set(\dur, f9, \vol, vol9); ~l9b1.set(\dur, f9, \vol, vol9);
1027 ~l9c1.set(\dur, f9/~icd3, \vol, vol9); ~l9d1.set(\dur, f9/~icd3, \vol, vol9);
1028 ~l9e1.set(\dur, f9/~icd6, \vol, vol9); ~l9f1.set(\dur, f9/~icd6, \vol, vol9);
1029 ~l10a1.set(\dur, f10, \vol, vol10); ~l10b1.set(\dur, f10, \vol, vol10);
1030 ~l10c1.set(\dur, f10/~icd3, \vol, vol10);~l10d1.set(\dur, f10/~icd3, \vol, vol10);
1031 ~l10e1.set(\dur, f10/~icd6, \vol, vol10);~l10f1.set(\dur, f10/~icd6, \vol, vol10);
1032 ~l11a1.set(\dur, f11, \vol, vol11); ~l11b1.set(\dur, f11, \vol, vol11);
1033 ~l11c1.set(\dur, f11/~icd3, \vol, vol11);~l11d1.set(\dur, f11/~icd3, \vol, vol11);
1034 ~l11e1.set(\dur, f11/~icd6, \vol, vol11);~l11f1.set(\dur, f11/~icd6, \vol, vol11);
1035 ~l12a1.set(\dur, f12, \vol, vol12); ~l12b1.set(\dur, f12, \vol, vol12);
1036 ~l12c1.set(\dur, f12/~icd3, \vol, vol12);~l12d1.set(\dur, f12/~icd3, \vol, vol12);
1037 ~l12e1.set(\dur, f12/~icd6, \vol, vol12);~l12f1.set(\dur, f12/~icd6, \vol, vol12);
1040 {~l1a.isRunning == true} {
1041 (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;
1042 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
1043 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
1044 ~l1a.set(\dur, f1, \vol, vol1); ~l1b.set(\dur, f1, \vol, vol1);
1045 ~l1c.set(\dur, f1/~icd3, \vol, vol1); ~l1d.set(\dur, f1/~icd3, \vol, vol1);
1046 ~l1e.set(\dur, f1/~icd6, \vol, vol1); ~l1f.set(\dur, f1/~icd6, \vol, vol1);
1047 ~l2a.set(\dur, f2, \vol, vol2); ~l2b.set(\dur, f2, \vol, vol2);
1048 ~l2c.set(\dur, f2/~icd3, \vol, vol2); ~l2d.set(\dur, f2/~icd3, \vol, vol2);
1049 ~l2e.set(\dur, f2/~icd6, \vol, vol2); ~l2f.set(\dur, f2/~icd6, \vol, vol2);
1050 ~l3a.set(\dur, f3, \vol, vol3); ~l3b.set(\dur, f3, \vol, vol3);
1051 ~l3c.set(\dur, f3/~icd3, \vol, vol3); ~l3d.set(\dur, f3/~icd3, \vol, vol3);
1052 ~l3e.set(\dur, f3/~icd6, \vol, vol3); ~l3f.set(\dur, f3/~icd6, \vol, vol3);
1053 ~l4a.set(\dur, f4, \vol, vol4); ~l4b.set(\dur, f4, \vol, vol4);
1054 ~l4c.set(\dur, f4/~icd3, \vol, vol4); ~l4d.set(\dur, f4/~icd3, \vol, vol4);
1055 ~l4e.set(\dur, f4/~icd6, \vol, vol4); ~l4f.set(\dur, f4/~icd6, \vol, vol4);
1056 ~l5a.set(\dur, f5, \vol, vol5); ~l5b.set(\dur, f5, \vol, vol5);
1057 ~l5c.set(\dur, f5/~icd3, \vol, vol5); ~l5d.set(\dur, f5/~icd3, \vol, vol5);
1058 ~l5e.set(\dur, f5/~icd6, \vol, vol5); ~l5f.set(\dur, f5/~icd6, \vol, vol5);
1059 ~l6a.set(\dur, f6, \vol, vol6); ~l6b.set(\dur, f6, \vol, vol6);
1060 ~l6c.set(\dur, f6/~icd3, \vol, vol6); ~l6d.set(\dur, f6/~icd3, \vol, vol6);
1061 ~l6e.set(\dur, f6/~icd6, \vol, vol6); ~l6f.set(\dur, f6/~icd6, \vol, vol6);
1062 ~l7a.set(\dur, f7, \vol, vol7); ~l7b.set(\dur, f7, \vol, vol7);
1063 ~l7c.set(\dur, f7/~icd3, \vol, vol7); ~l7d.set(\dur, f7/~icd3, \vol, vol7);
1064 ~l7e.set(\dur, f7/~icd6, \vol, vol7); ~l7f.set(\dur, f7/~icd6, \vol, vol7);
1065 ~l8a.set(\dur, f8, \vol, vol8); ~l8b.set(\dur, f8, \vol, vol8);
1066 ~l8c.set(\dur, f8/~icd3, \vol, vol8); ~l8d.set(\dur, f8/~icd3, \vol, vol8);
1067 ~l8e.set(\dur, f8/~icd6, \vol, vol8); ~l8f.set(\dur, f8/~icd6, \vol, vol8);
1068 ~l9a.set(\dur, f9, \vol, vol9); ~l9b.set(\dur, f9, \vol, vol9);
1069 ~l9c.set(\dur, f9/~icd3, \vol, vol9); ~l9d.set(\dur, f9/~icd3, \vol, vol9);
1070 ~l9e.set(\dur, f9/~icd6, \vol, vol9); ~l9f.set(\dur, f9/~icd6, \vol, vol9);
1071 ~l10a.set(\dur, f10, \vol, vol10); ~l10b.set(\dur, f10, \vol, vol10);
1072 ~l10c.set(\dur, f10/~icd3, \vol, vol10);~l10d.set(\dur, f10/~icd3, \vol, vol10);
1073 ~l10e.set(\dur, f10/~icd6, \vol, vol10);~l10f.set(\dur, f10/~icd6, \vol, vol10);
1074 ~l11a.set(\dur, f11, \vol, vol11); ~l11b.set(\dur, f11, \vol, vol11);
1075 ~l11c.set(\dur, f11/~icd3, \vol, vol11);~l11d.set(\dur, f11/~icd3, \vol, vol11);
1076 ~l11e.set(\dur, f11/~icd6, \vol, vol11);~l11f.set(\dur, f11/~icd6, \vol, vol11);
1077 ~l12a.set(\dur, f12, \vol, vol12); ~l12b.set(\dur, f12, \vol, vol12);
1078 ~l12c.set(\dur, f12/~icd3, \vol, vol12);~l12d.set(\dur, f12/~icd3, \vol, vol12);
1079 ~l12e.set(\dur, f12/~icd6, \vol, vol12);~l12f.set(\dur, f12/~icd6, \vol, vol12);
1089 {~l1a1.isRunning == true}{
1090 (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;
1091 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
1092 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
1093 ~l1a1.set(\dur, f1, \vol, vol1); ~l1b1.set(\dur, f1, \vol, vol1);
1094 ~l1c1.set(\dur, f1/~icd3, \vol, vol1); ~l1d1.set(\dur, f1/~icd3, \vol, vol1);
1095 ~l1e1.set(\dur, f1/~icd6, \vol, vol1); ~l1f1.set(\dur, f1/~icd6, \vol, vol1);
1096 ~l2a1.set(\dur, f2, \vol, vol2); ~l2b1.set(\dur, f2, \vol, vol2);
1097 ~l2c1.set(\dur, f2/~icd3, \vol, vol2); ~l2d1.set(\dur, f2/~icd3, \vol, vol2);
1098 ~l2e1.set(\dur, f2/~icd6, \vol, vol2); ~l2f1.set(\dur, f2/~icd6, \vol, vol2);
1099 ~l3a1.set(\dur, f3, \vol, vol3); ~l3b1.set(\dur, f3, \vol, vol3);
1100 ~l3c1.set(\dur, f3/~icd3, \vol, vol3); ~l3d1.set(\dur, f3/~icd3, \vol, vol3);
1101 ~l3e1.set(\dur, f3/~icd6, \vol, vol3); ~l3f1.set(\dur, f3/~icd6, \vol, vol3);
1102 ~l4a1.set(\dur, f4, \vol, vol4); ~l4b1.set(\dur, f4, \vol, vol4);
1103 ~l4c1.set(\dur, f4/~icd3, \vol, vol4); ~l4d1.set(\dur, f4/~icd3, \vol, vol4);
1104 ~l4e1.set(\dur, f4/~icd6, \vol, vol4); ~l4f1.set(\dur, f4/~icd6, \vol, vol4);
1105 ~l5a1.set(\dur, f5, \vol, vol5); ~l5b1.set(\dur, f5, \vol, vol5);
1106 ~l5c1.set(\dur, f5/~icd3, \vol, vol5); ~l5d1.set(\dur, f5/~icd3, \vol, vol5);
1107 ~l5e1.set(\dur, f5/~icd6, \vol, vol5); ~l5f1.set(\dur, f5/~icd6, \vol, vol5);
1108 ~l6a1.set(\dur, f6, \vol, vol6); ~l6b1.set(\dur, f6, \vol, vol6);
1109 ~l6c1.set(\dur, f6/~icd3, \vol, vol6); ~l6d1.set(\dur, f6/~icd3, \vol, vol6);
1110 ~l6e1.set(\dur, f6/~icd6, \vol, vol6); ~l6f1.set(\dur, f6/~icd6, \vol, vol6);
1111 ~l7a1.set(\dur, f7, \vol, vol7); ~l7b1.set(\dur, f7, \vol, vol7);
1112 ~l7c1.set(\dur, f7/~icd3, \vol, vol7); ~l7d1.set(\dur, f7/~icd3, \vol, vol7);
1113 ~l7e1.set(\dur, f7/~icd6, \vol, vol7); ~l7f1.set(\dur, f7/~icd6, \vol, vol7);
1114 ~l8a1.set(\dur, f8, \vol, vol8); ~l8b1.set(\dur, f8, \vol, vol8);
1115 ~l8c1.set(\dur, f8/~icd3, \vol, vol8); ~l8d1.set(\dur, f8/~icd3, \vol, vol8);
1116 ~l8e1.set(\dur, f8/~icd6, \vol, vol8); ~l8f1.set(\dur, f8/~icd6, \vol, vol8);
1117 ~l9a1.set(\dur, f9, \vol, vol9); ~l9b1.set(\dur, f9, \vol, vol9);
1118 ~l9c1.set(\dur, f9/~icd3, \vol, vol9); ~l9d1.set(\dur, f9/~icd3, \vol, vol9);
1119 ~l9e1.set(\dur, f9/~icd6, \vol, vol9); ~l9f1.set(\dur, f9/~icd6, \vol, vol9);
1120 ~l10a1.set(\dur, f10, \vol, vol10); ~l10b1.set(\dur, f10, \vol, vol10);
1121 ~l10c1.set(\dur, f10/~icd3, \vol, vol10);~l10d1.set(\dur, f10/~icd3, \vol, vol10);
1122 ~l10e1.set(\dur, f10/~icd6, \vol, vol10);~l10f1.set(\dur, f10/~icd6, \vol, vol10);
1123 ~l11a1.set(\dur, f11, \vol, vol11); ~l11b1.set(\dur, f11, \vol, vol11);
1124 ~l11c1.set(\dur, f11/~icd3, \vol, vol11);~l11d1.set(\dur, f11/~icd3, \vol, vol11);
1125 ~l11e1.set(\dur, f11/~icd6, \vol, vol11);~l11f1.set(\dur, f11/~icd6, \vol, vol11);
1126 ~l12a1.set(\dur, f12, \vol, vol12); ~l12b1.set(\dur, f12, \vol, vol12);
1127 ~l12c1.set(\dur, f12/~icd3, \vol, vol12);~l12d1.set(\dur, f12/~icd3, \vol, vol12);
1128 ~l12e1.set(\dur, f12/~icd6, \vol, vol12);~l12f1.set(\dur, f12/~icd6, \vol, vol12);
1130 AppClock.sched(0.161803398875,{
1131 ([~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;
1134 {~l1a.isRunning == true}{
1135 (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;
1136 #vol1,vol2,vol3,vol4,vol5,vol6,vol7,vol8,vol9,vol10,vol11,vol12 = [~vol1,~vol2,~vol3,~vol4,~vol5,~vol6,~vol7,~vol8,~vol9,~vol10,~vol11,~vol12];
1137 #f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12 = [ 0,0,0,0,0,0,0,0,0,0,0,0 ];
1138 ~l1a.set(\dur, f1, \vol, vol1); ~l1b.set(\dur, f1, \vol, vol1);
1139 ~l1c.set(\dur, f1/~icd3, \vol, vol1); ~l1d.set(\dur, f1/~icd3, \vol, vol1);
1140 ~l1e.set(\dur, f1/~icd6, \vol, vol1); ~l1f.set(\dur, f1/~icd6, \vol, vol1);
1141 ~l2a.set(\dur, f2, \vol, vol2); ~l2b.set(\dur, f2, \vol, vol2);
1142 ~l2c.set(\dur, f2/~icd3, \vol, vol2); ~l2d.set(\dur, f2/~icd3, \vol, vol2);
1143 ~l2e.set(\dur, f2/~icd6, \vol, vol2); ~l2f.set(\dur, f2/~icd6, \vol, vol2);
1144 ~l3a.set(\dur, f3, \vol, vol3); ~l3b.set(\dur, f3, \vol, vol3);
1145 ~l3c.set(\dur, f3/~icd3, \vol, vol3); ~l3d.set(\dur, f3/~icd3, \vol, vol3);
1146 ~l3e.set(\dur, f3/~icd6, \vol, vol3); ~l3f.set(\dur, f3/~icd6, \vol, vol3);
1147 ~l4a.set(\dur, f4, \vol, vol4); ~l4b.set(\dur, f4, \vol, vol4);
1148 ~l4c.set(\dur, f4/~icd3, \vol, vol4); ~l4d.set(\dur, f4/~icd3, \vol, vol4);
1149 ~l4e.set(\dur, f4/~icd6, \vol, vol4); ~l4f.set(\dur, f4/~icd6, \vol, vol4);
1150 ~l5a.set(\dur, f5, \vol, vol5); ~l5b.set(\dur, f5, \vol, vol5);
1151 ~l5c.set(\dur, f5/~icd3, \vol, vol5); ~l5d.set(\dur, f5/~icd3, \vol, vol5);
1152 ~l5e.set(\dur, f5/~icd6, \vol, vol5); ~l5f.set(\dur, f5/~icd6, \vol, vol5);
1153 ~l6a.set(\dur, f6, \vol, vol6); ~l6b.set(\dur, f6, \vol, vol6);
1154 ~l6c.set(\dur, f6/~icd3, \vol, vol6); ~l6d.set(\dur, f6/~icd3, \vol, vol6);
1155 ~l6e.set(\dur, f6/~icd6, \vol, vol6); ~l6f.set(\dur, f6/~icd6, \vol, vol6);
1156 ~l7a.set(\dur, f7, \vol, vol7); ~l7b.set(\dur, f7, \vol, vol7);
1157 ~l7c.set(\dur, f7/~icd3, \vol, vol7); ~l7d.set(\dur, f7/~icd3, \vol, vol7);
1158 ~l7e.set(\dur, f7/~icd6, \vol, vol7); ~l7f.set(\dur, f7/~icd6, \vol, vol7);
1159 ~l8a.set(\dur, f8, \vol, vol8); ~l8b.set(\dur, f8, \vol, vol8);
1160 ~l8c.set(\dur, f8/~icd3, \vol, vol8); ~l8d.set(\dur, f8/~icd3, \vol, vol8);
1161 ~l8e.set(\dur, f8/~icd6, \vol, vol8); ~l8f.set(\dur, f8/~icd6, \vol, vol8);
1162 ~l9a.set(\dur, f9, \vol, vol9); ~l9b.set(\dur, f9, \vol, vol9);
1163 ~l9c.set(\dur, f9/~icd3, \vol, vol9); ~l9d.set(\dur, f9/~icd3, \vol, vol9);
1164 ~l9e.set(\dur, f9/~icd6, \vol, vol9); ~l9f.set(\dur, f9/~icd6, \vol, vol9);
1165 ~l10a.set(\dur, f10, \vol, vol10); ~l10b.set(\dur, f10, \vol, vol10);
1166 ~l10c.set(\dur, f10/~icd3, \vol, vol10);~l10d.set(\dur, f10/~icd3, \vol, vol10);
1167 ~l10e.set(\dur, f10/~icd6, \vol, vol10);~l10f.set(\dur, f10/~icd6, \vol, vol10);
1168 ~l11a.set(\dur, f11, \vol, vol11); ~l11b.set(\dur, f11, \vol, vol11);
1169 ~l11c.set(\dur, f11/~icd3, \vol, vol11);~l11d.set(\dur, f11/~icd3, \vol, vol11);
1170 ~l11e.set(\dur, f11/~icd6, \vol, vol11);~l11f.set(\dur, f11/~icd6, \vol, vol11);
1171 ~l12a.set(\dur, f12, \vol, vol12); ~l12b.set(\dur, f12, \vol, vol12);
1172 ~l12c.set(\dur, f12/~icd3, \vol, vol12);~l12d.set(\dur, f12/~icd3, \vol, vol12);
1173 ~l12e.set(\dur, f12/~icd6, \vol, vol12);~l12f.set(\dur, f12/~icd6, \vol, vol12);
1175 AppClock.sched(0.161803398875,{
1176 ([~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;
1193 {~slot8 == nil}{""};
1195 ~timevals = {(~tst = TextView(w, Rect(~tspl,~tspt, ~tspw, ~tsph)).background_(Color.black);
1197 "o1:_"++~time1o.value.asString++"_f1:_"++~time1f.value.asString++"_s1:_"++~time1s.value.asString++"\n" ++
1198 "o2:_"++~time2o.value.asString++"_f2:_"++~time2f.value.asString++"_s2:_"++~time2s.value.asString++"\n" ++
1199 "o3:_"++~time3o.value.asString++"_f3:_"++~time3f.value.asString++"_s3:_"++~time3s.value.asString++"\n" ++
1200 "o4:_"++~time4o.value.asString++"_f4:_"++~time4f.value.asString++"_s4:_"++~time4s.value.asString++"\n" ++
1201 "o5:_"++~time5o.value.asString++"_f5:_"++~time5f.value.asString++"_s5:_"++~time5s.value.asString++"\n" ++
1202 "o6:_"++~time6o.value.asString++"_f6:_"++~time6f.value.asString++"_s6:_"++~time6s.value.asString++"\n" ++
1203 "o7:_"++~time7o.value.asString++"_f7:_"++~time7f.value.asString++"_s7:_"++~time7s.value.asString++"\n" ++
1204 "o8:_"++~time8o.value.asString++"_f8:_"++~time8f.value.asString++"_s8:_"++~time8s.value.asString++"\n" ++"\n" ++
1205 if(~slot8 != ~slot, {
1206 (~slot1 = ~slot2).asString++"\n" ++
1207 (~slot2 = ~slot3).asString++"\n" ++
1208 (~slot3 = ~slot4).asString++"\n" ++
1209 (~slot4 = ~slot5).asString++"\n" ++
1210 (~slot5 = ~slot6).asString++"\n" ++
1211 (~slot6 = ~slot7).asString++"\n" ++
1212 (~slot7 = ~slot8).asString++"\n" ++
1213 (~slot8 = ~slot).asString;
1215 (~slot1).asString++"\n" ++
1216 (~slot2).asString++"\n" ++
1217 (~slot3).asString++"\n" ++
1218 (~slot4).asString++"\n" ++
1219 (~slot5).asString++"\n" ++
1220 (~slot6).asString++"\n" ++
1221 (~slot7).asString++"\n" ++
1226 ~tst.stringColor = Color.white;
1230 //monitoring number of synths function
1233 if((~numsynths != nil) or: (~numsynths.isPlaying == true), {~numsynths.stop;});
1234 ~numsynths = Routine({inf.do({if((s.numSynths > 73) and: (3.wait; s.numSynths > 73) and: (6.wait; s.numSynths > 73), {
1237 if(~numsynthmessage != nil, {~numsynthmessage.close;});
1238 ~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;
1239 ~numsynthmessagestring = StaticText(~numsynthmessage, Rect(0,0,340+46,340+46/1.6180339887499)).background_(Color.black);
1240 ~numsynthmessagestring.align = \topLeft;
1241 ~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.";
1242 ~numsynthmessagestring.stringColor = Color.white;
1243 ~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;});});
1244 ~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;});});
1245 ~numsynthmessage.front;
1247 }); 1.wait;});}).play;
1250 ~numsynthsfunc.value;
1255 view.mouseDownAction = {
1256 |v, x, y, mod, butNum|
1258 if(butNum == 0, { v.refresh;
1260 //generate dots on mouse down action
1263 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
1267 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z1.close;~z1 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1268 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z2.close;~z2 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1269 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z3.close;~z3 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1270 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z4.close;~z4 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1271 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z5.close;~z5 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1272 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z6.close;~z6 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1273 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z7.close;~z7 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1274 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z8.close;~z8 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1275 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z9.close;~z9 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1276 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z10.close;~z10 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1277 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z11.close;~z11 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1278 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z12.close;~z12 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1279 {y>~tgrid and: y<~bgrid} {nil}
1280 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z1.close;~z1 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1281 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z2.close;~z2 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1282 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z3.close;~z3 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1283 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z4.close;~z4 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1284 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z5.close;~z5 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1285 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z6.close;~z6 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1286 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z7.close;~z7 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1287 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z8.close;~z8 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1288 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z9.close;~z9 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1289 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z10.close;~z10 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1290 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z11.close;~z11 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1291 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z12.close;~z12 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1295 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
1297 //set synth values on mouse down action
1300 {~l1a.isRunning == true}{
1303 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1304 ~l1a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1305 ~l1b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f1=q.value; ~undof1=~f1;
1306 ~l1c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1307 ~l1d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1308 ~l1e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1309 ~l1f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1310 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1311 ~l2a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1312 ~l2b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f2=q.value; ~undof2=~f2;
1313 ~l2c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1314 ~l2d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1315 ~l2e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1316 ~l2f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1317 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1318 ~l3a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1319 ~l3b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f3=q.value; ~undof3=~f3;
1320 ~l3c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1321 ~l3d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1322 ~l3e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1323 ~l3f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1324 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1325 ~l4a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1326 ~l4b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f4=q.value; ~undof4=~f4;
1327 ~l4c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1328 ~l4d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1329 ~l4e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1330 ~l4f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1331 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1332 ~l5a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1333 ~l5b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f5=q.value; ~undof5=~f5;
1334 ~l5c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1335 ~l5d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1336 ~l5e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1337 ~l5f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1338 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1339 ~l6a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1340 ~l6b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f6=q.value; ~undof6=~f6;
1341 ~l6c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1342 ~l6d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1343 ~l6e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1344 ~l6f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1345 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1346 ~l7a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1347 ~l7b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f7=q.value; ~undof7=~f7;
1348 ~l7c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1349 ~l7d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1350 ~l7e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1351 ~l7f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1352 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1353 ~l8a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1354 ~l8b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f8=q.value; ~undof8=~f8;
1355 ~l8c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1356 ~l8d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1357 ~l8e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1358 ~l8f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1359 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1360 ~l9a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1361 ~l9b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f9=q.value; ~undof9=~f9;
1362 ~l9c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1363 ~l9d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1364 ~l9e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1365 ~l9f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1366 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1367 ~l10a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1368 ~l10b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f10=q.value; ~undof10=~f10;
1369 ~l10c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1370 ~l10d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1371 ~l10e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1372 ~l10f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1373 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1374 ~l11a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1375 ~l11b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f11=q.value; ~undof11=~f11;
1376 ~l11c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1377 ~l11d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1378 ~l11e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1379 ~l11f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1380 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1381 ~l12a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1382 ~l12b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f12=q.value; ~undof12=~f12;
1383 ~l12c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1384 ~l12d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1385 ~l12e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1386 ~l12f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1387 {y>~tgrid and: y<~bgrid} {nil}
1388 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1389 ~l1a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1390 ~l1b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f1=q.value; ~undof1=~f1;
1391 ~l1c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1392 ~l1d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1393 ~l1e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1394 ~l1f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1395 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1396 ~l2a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1397 ~l2b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f2=q.value; ~undof2=~f2;
1398 ~l2c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1399 ~l2d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1400 ~l2e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1401 ~l2f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1402 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1403 ~l3a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1404 ~l3b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f3=q.value; ~undof3=~f3;
1405 ~l3c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1406 ~l3d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1407 ~l3e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1408 ~l3f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1409 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1410 ~l4a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1411 ~l4b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f4=q.value; ~undof4=~f4;
1412 ~l4c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1413 ~l4d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1414 ~l4e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1415 ~l4f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1416 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1417 ~l5a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1418 ~l5b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f5=q.value; ~undof5=~f5;
1419 ~l5c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1420 ~l5d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1421 ~l5e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1422 ~l5f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1423 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1424 ~l6a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1425 ~l6b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f6=q.value; ~undof6=~f6;
1426 ~l6c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1427 ~l6d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1428 ~l6e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1429 ~l6f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1430 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1431 ~l7a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1432 ~l7b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f7=q.value; ~undof7=~f7;
1433 ~l7c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1434 ~l7d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1435 ~l7e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1436 ~l7f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1437 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1438 ~l8a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1439 ~l8b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f8=q.value; ~undof8=~f8;
1440 ~l8c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1441 ~l8d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1442 ~l8e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1443 ~l8f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1444 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1445 ~l9a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1446 ~l9b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f9=q.value; ~undof9=~f9;
1447 ~l9c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1448 ~l9d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1449 ~l9e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1450 ~l9f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1451 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1452 ~l10a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1453 ~l10b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f10=q.value; ~undof10=~f10;
1454 ~l10c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1455 ~l10d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1456 ~l10e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1457 ~l10f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1458 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1459 ~l11a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1460 ~l11b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f11=q.value; ~undof11=~f11;
1461 ~l11c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1462 ~l11d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1463 ~l11e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1464 ~l11f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1465 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1466 ~l12a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1467 ~l12b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f12=q.value; ~undof12=~f12;
1468 ~l12c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1469 ~l12d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1470 ~l12e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1471 ~l12f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);};
1473 {~l1a1.isRunning == true}{
1476 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1477 ~l1a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1478 ~l1b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f1=q.value; ~undof1=~f1;
1479 ~l1c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1480 ~l1d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1481 ~l1e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1482 ~l1f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1483 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1484 ~l2a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1485 ~l2b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f2=q.value; ~undof2=~f2;
1486 ~l2c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1487 ~l2d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1488 ~l2e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1489 ~l2f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1490 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1491 ~l3a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1492 ~l3b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f3=q.value; ~undof3=~f3;
1493 ~l3c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1494 ~l3d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1495 ~l3e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1496 ~l3f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1497 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1498 ~l4a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1499 ~l4b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f4=q.value; ~undof4=~f4;
1500 ~l4c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1501 ~l4d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1502 ~l4e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1503 ~l4f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1504 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1505 ~l5a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1506 ~l5b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f5=q.value; ~undof5=~f5;
1507 ~l5c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1508 ~l5d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1509 ~l5e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1510 ~l5f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1511 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1512 ~l6a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1513 ~l6b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f6=q.value; ~undof6=~f6;
1514 ~l6c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1515 ~l6d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1516 ~l6e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1517 ~l6f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1518 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1519 ~l7a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1520 ~l7b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f7=q.value; ~undof7=~f7;
1521 ~l7c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1522 ~l7d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1523 ~l7e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1524 ~l7f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1525 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1526 ~l8a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1527 ~l8b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f8=q.value; ~undof8=~f8;
1528 ~l8c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1529 ~l8d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1530 ~l8e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1531 ~l8f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1532 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1533 ~l9a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1534 ~l9b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f9=q.value; ~undof9=~f9;
1535 ~l9c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1536 ~l9d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1537 ~l9e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1538 ~l9f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1539 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1540 ~l10a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1541 ~l10b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f10=q.value; ~undof10=~f10;
1542 ~l10c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1543 ~l10d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1544 ~l10e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1545 ~l10f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1546 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1547 ~l11a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1548 ~l11b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f11=q.value; ~undof11=~f11;
1549 ~l11c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1550 ~l11d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1551 ~l11e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1552 ~l11f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1553 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1554 ~l12a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1555 ~l12b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f12=q.value; ~undof12=~f12;
1556 ~l12c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1557 ~l12d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1558 ~l12e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1559 ~l12f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1560 {y>~tgrid and: y<~bgrid} {nil}
1561 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1562 ~l1a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1563 ~l1b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f1=q.value; ~undof1=~f1;
1564 ~l1c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1565 ~l1d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1566 ~l1e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1567 ~l1f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1568 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1569 ~l2a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1570 ~l2b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f2=q.value; ~undof2=~f2;
1571 ~l2c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1572 ~l2d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1573 ~l2e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1574 ~l2f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1575 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1576 ~l3a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1577 ~l3b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f3=q.value; ~undof3=~f3;
1578 ~l3c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1579 ~l3d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1580 ~l3e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1581 ~l3f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1582 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1583 ~l4a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1584 ~l4b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f4=q.value; ~undof4=~f4;
1585 ~l4c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1586 ~l4d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1587 ~l4e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1588 ~l4f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1589 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1590 ~l5a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1591 ~l5b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f5=q.value; ~undof5=~f5;
1592 ~l5c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1593 ~l5d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1594 ~l5e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1595 ~l5f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1596 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1597 ~l6a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1598 ~l6b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f6=q.value; ~undof6=~f6;
1599 ~l6c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1600 ~l6d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1601 ~l6e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1602 ~l6f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1603 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1604 ~l7a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1605 ~l7b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f7=q.value; ~undof7=~f7;
1606 ~l7c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1607 ~l7d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1608 ~l7e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1609 ~l7f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1610 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1611 ~l8a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1612 ~l8b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f8=q.value; ~undof8=~f8;
1613 ~l8c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1614 ~l8d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1615 ~l8e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1616 ~l8f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1617 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1618 ~l9a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1619 ~l9b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f9=q.value; ~undof9=~f9;
1620 ~l9c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1621 ~l9d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1622 ~l9e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1623 ~l9f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1624 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1625 ~l10a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1626 ~l10b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f10=q.value; ~undof10=~f10;
1627 ~l10c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1628 ~l10d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1629 ~l10e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1630 ~l10f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1631 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1632 ~l11a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1633 ~l11b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f11=q.value; ~undof11=~f11;
1634 ~l11c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1635 ~l11d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1636 ~l11e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1637 ~l11f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1638 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1639 ~l12a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1640 ~l12b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f12=q.value; ~undof12=~f12;
1641 ~l12c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1642 ~l12d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1643 ~l12e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1644 ~l12f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);};
1651 view.mouseMoveAction = {
1655 ~nw = ~nh*1.6180339887499;
1657 //generate dots on mouse move action
1660 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
1664 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z1.close;~z25.close;~z1 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1665 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z2.close;~z26.close;~z2 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1666 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z3.close;~z27.close;~z3 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1667 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z4.close;~z28.close;~z4 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1668 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z5.close;~z29.close;~z5 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1669 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z6.close;~z30.close;~z6 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1670 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z7.close;~z31.close;~z7 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1671 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z8.close;~z32.close;~z8 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1672 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z9.close;~z33.close;~z9 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1673 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z10.close;~z34.close;~z10 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1674 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z11.close;~z35.close;~z11 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1675 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {~z12.close;~z36.close;~z12 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1676 {y>~tgrid and: y<~bgrid} {nil}
1677 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z1.close;~z25.close;~z1 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1678 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z2.close;~z26.close;~z2 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1679 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z3.close;~z27.close;~z3 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1680 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z4.close;~z28.close;~z4 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1681 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z5.close;~z29.close;~z5 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1682 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z6.close;~z30.close;~z6 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1683 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z7.close;~z31.close;~z7 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1684 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z8.close;~z32.close;~z8 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1685 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z9.close;~z33.close;~z9 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1686 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z10.close;~z34.close;~z10 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1687 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z11.close;~z35.close;~z11 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)}
1688 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {~z12.close;~z36.close;~z12 = (CompositeView(w, Rect(x, y, ~nw, 2)).background = Color.white;)};
1692 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
1694 //set synth values on mouse move action
1697 {~l1a.isRunning == true}{
1700 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1701 ~l1a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1702 ~l1b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f1=q.value; ~undof1=~f1;
1703 ~l1c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1704 ~l1d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1705 ~l1e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1706 ~l1f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1707 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1708 ~l2a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1709 ~l2b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f2=q.value; ~undof2=~f2;
1710 ~l2c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1711 ~l2d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1712 ~l2e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1713 ~l2f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1714 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1715 ~l3a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1716 ~l3b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f3=q.value; ~undof3=~f3;
1717 ~l3c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1718 ~l3d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1719 ~l3e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1720 ~l3f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1721 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1722 ~l4a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1723 ~l4b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f4=q.value; ~undof4=~f4;
1724 ~l4c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1725 ~l4d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1726 ~l4e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1727 ~l4f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1728 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1729 ~l5a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1730 ~l5b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f5=q.value; ~undof5=~f5;
1731 ~l5c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1732 ~l5d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1733 ~l5e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1734 ~l5f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1735 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1736 ~l6a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1737 ~l6b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f6=q.value; ~undof6=~f6;
1738 ~l6c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1739 ~l6d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1740 ~l6e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1741 ~l6f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1742 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1743 ~l7a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1744 ~l7b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f7=q.value; ~undof7=~f7;
1745 ~l7c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1746 ~l7d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1747 ~l7e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1748 ~l7f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1749 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1750 ~l8a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1751 ~l8b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f8=q.value; ~undof8=~f8;
1752 ~l8c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1753 ~l8d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1754 ~l8e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1755 ~l8f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1756 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1757 ~l9a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1758 ~l9b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f9=q.value; ~undof9=~f9;
1759 ~l9c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1760 ~l9d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1761 ~l9e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1762 ~l9f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1763 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1764 ~l10a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1765 ~l10b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f10=q.value; ~undof10=~f10;
1766 ~l10c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1767 ~l10d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1768 ~l10e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1769 ~l10f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1770 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1771 ~l11a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1772 ~l11b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f11=q.value; ~undof11=~f11;
1773 ~l11c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1774 ~l11d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1775 ~l11e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1776 ~l11f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1777 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1778 ~l12a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1779 ~l12b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f12=q.value; ~undof12=~f12;
1780 ~l12c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1781 ~l12d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1782 ~l12e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1783 ~l12f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1784 {y>~tgrid and: y<~bgrid} {nil}
1785 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1786 ~l1a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1787 ~l1b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f1=q.value; ~undof1=~f1;
1788 ~l1c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1789 ~l1d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1790 ~l1e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1791 ~l1f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1792 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1793 ~l2a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1794 ~l2b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f2=q.value; ~undof2=~f2;
1795 ~l2c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1796 ~l2d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1797 ~l2e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1798 ~l2f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1799 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1800 ~l3a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1801 ~l3b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f3=q.value; ~undof3=~f3;
1802 ~l3c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1803 ~l3d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1804 ~l3e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1805 ~l3f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1806 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1807 ~l4a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1808 ~l4b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f4=q.value; ~undof4=~f4;
1809 ~l4c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1810 ~l4d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1811 ~l4e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1812 ~l4f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1813 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1814 ~l5a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1815 ~l5b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f5=q.value; ~undof5=~f5;
1816 ~l5c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1817 ~l5d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1818 ~l5e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1819 ~l5f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1820 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1821 ~l6a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1822 ~l6b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f6=q.value; ~undof6=~f6;
1823 ~l6c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1824 ~l6d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1825 ~l6e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1826 ~l6f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1827 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1828 ~l7a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1829 ~l7b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f7=q.value; ~undof7=~f7;
1830 ~l7c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1831 ~l7d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1832 ~l7e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1833 ~l7f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1834 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1835 ~l8a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1836 ~l8b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f8=q.value; ~undof8=~f8;
1837 ~l8c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1838 ~l8d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1839 ~l8e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1840 ~l8f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1841 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1842 ~l9a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1843 ~l9b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f9=q.value; ~undof9=~f9;
1844 ~l9c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1845 ~l9d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1846 ~l9e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1847 ~l9f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1848 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1849 ~l10a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1850 ~l10b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f10=q.value; ~undof10=~f10;
1851 ~l10c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1852 ~l10d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1853 ~l10e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1854 ~l10f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1855 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1856 ~l11a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1857 ~l11b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f11=q.value; ~undof11=~f11;
1858 ~l11c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1859 ~l11d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1860 ~l11e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1861 ~l11f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1862 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1863 ~l12a.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1864 ~l12b.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f12=q.value; ~undof12=~f12;
1865 ~l12c.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1866 ~l12d.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1867 ~l12e.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1868 ~l12f.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);};
1870 {~l1a1.isRunning == true}{
1873 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1874 ~l1a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1875 ~l1b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f1=q.value; ~undof1=~f1;
1876 ~l1c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1877 ~l1d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1878 ~l1e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1879 ~l1f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1880 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1881 ~l2a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1882 ~l2b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f2=q.value; ~undof2=~f2;
1883 ~l2c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1884 ~l2d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1885 ~l2e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1886 ~l2f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1887 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1888 ~l3a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1889 ~l3b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f3=q.value; ~undof3=~f3;
1890 ~l3c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1891 ~l3d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1892 ~l3e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1893 ~l3f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1894 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1895 ~l4a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1896 ~l4b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f4=q.value; ~undof4=~f4;
1897 ~l4c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1898 ~l4d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1899 ~l4e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1900 ~l4f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1901 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1902 ~l5a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1903 ~l5b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f5=q.value; ~undof5=~f5;
1904 ~l5c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1905 ~l5d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1906 ~l5e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1907 ~l5f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1908 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1909 ~l6a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1910 ~l6b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f6=q.value; ~undof6=~f6;
1911 ~l6c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1912 ~l6d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1913 ~l6e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1914 ~l6f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1915 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1916 ~l7a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1917 ~l7b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f7=q.value; ~undof7=~f7;
1918 ~l7c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1919 ~l7d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1920 ~l7e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1921 ~l7f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1922 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1923 ~l8a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1924 ~l8b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f8=q.value; ~undof8=~f8;
1925 ~l8c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1926 ~l8d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1927 ~l8e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1928 ~l8f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1929 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1930 ~l9a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1931 ~l9b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f9=q.value; ~undof9=~f9;
1932 ~l9c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1933 ~l9d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1934 ~l9e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1935 ~l9f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1936 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1937 ~l10a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1938 ~l10b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f10=q.value; ~undof10=~f10;
1939 ~l10c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1940 ~l10d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1941 ~l10e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1942 ~l10f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1943 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1944 ~l11a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1945 ~l11b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f11=q.value; ~undof11=~f11;
1946 ~l11c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1947 ~l11d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1948 ~l11e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1949 ~l11f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1950 {y>=(~tgrid) and: y<=(~tgrid=~tgrid+10)} {
1951 ~l12a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)));
1952 ~l12b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value); ~f12=q.value; ~undof12=~f12;
1953 ~l12c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd3);
1954 ~l12d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd3);
1955 ~l12e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1))/~icd6);
1956 ~l12f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin1,~outmax1)).value/~icd6);}
1957 {y>~tgrid and: y<~bgrid} {nil}
1958 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1959 ~l1a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1960 ~l1b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f1=q.value; ~undof1=~f1;
1961 ~l1c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1962 ~l1d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1963 ~l1e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1964 ~l1f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1965 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1966 ~l2a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1967 ~l2b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f2=q.value; ~undof2=~f2;
1968 ~l2c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1969 ~l2d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1970 ~l2e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1971 ~l2f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1972 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1973 ~l3a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1974 ~l3b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f3=q.value; ~undof3=~f3;
1975 ~l3c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1976 ~l3d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1977 ~l3e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1978 ~l3f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1979 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1980 ~l4a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1981 ~l4b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f4=q.value; ~undof4=~f4;
1982 ~l4c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1983 ~l4d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1984 ~l4e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1985 ~l4f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1986 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1987 ~l5a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1988 ~l5b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f5=q.value; ~undof5=~f5;
1989 ~l5c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1990 ~l5d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1991 ~l5e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1992 ~l5f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
1993 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
1994 ~l6a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
1995 ~l6b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f6=q.value; ~undof6=~f6;
1996 ~l6c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
1997 ~l6d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
1998 ~l6e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
1999 ~l6f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2000 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2001 ~l7a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2002 ~l7b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f7=q.value; ~undof7=~f7;
2003 ~l7c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2004 ~l7d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2005 ~l7e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2006 ~l7f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2007 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2008 ~l8a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2009 ~l8b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f8=q.value; ~undof8=~f8;
2010 ~l8c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2011 ~l8d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2012 ~l8e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2013 ~l8f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2014 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2015 ~l9a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2016 ~l9b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f9=q.value; ~undof9=~f9;
2017 ~l9c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2018 ~l9d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2019 ~l9e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2020 ~l9f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2021 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2022 ~l10a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2023 ~l10b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f10=q.value; ~undof10=~f10;
2024 ~l10c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2025 ~l10d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2026 ~l10e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2027 ~l10f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2028 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2029 ~l11a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2030 ~l11b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f11=q.value; ~undof11=~f11;
2031 ~l11c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2032 ~l11d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2033 ~l11e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2034 ~l11f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);}
2035 {y>=(~bgrid) and: y<=(~bgrid=~bgrid+10)} {
2036 ~l12a1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)));
2037 ~l12b1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value); ~f12=q.value; ~undof12=~f12;
2038 ~l12c1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd3);
2039 ~l12d1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd3);
2040 ~l12e1.set(\dur, ((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2))/~icd6);
2041 ~l12f1.set(\dur, q=((x/(Window.screenBounds.width)).linexp(0,1,~outmin2,~outmax2)).value/~icd6);};
2046 ~bgrid = Window.screenBounds.height-(Window.screenBounds.height/1.6180339887499)+30;
2047 ~dc1 = ~tgrid-5; ~dc2 = ~bgrid-5; ~dca = 10;
2049 ~bpl = Window.screenBounds.width-340;
2050 ~bpt = Window.screenBounds.height-88;
2052 ~bpw = 40/1.6180339887499;
2057 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;
2058 if(button.value == 1, {
2060 ~tsc = TextView(w, Rect(0,5, Window.screenBounds.width, 354)).background_(Color.black);
2063 "current chord/frequencies: "++"\n"++"\n"++
2065 "[~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"++
2067 "saved open/flow 1-8 frequencies (in script format): "++"\n"++"\n"++
2069 "[~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"++
2070 "[~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"++
2071 "[~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"++
2072 "[~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"++
2073 "[~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"++
2074 "[~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"++
2075 "[~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"++
2076 "[~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"++
2078 "saved slide 1-8 frequencies (in script format): "++"\n"++"\n"++
2080 "#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"++
2081 "#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"++
2082 "#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"++
2083 "#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"++
2084 "#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"++
2085 "#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"++
2086 "#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"++
2087 "#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;"
2089 ~tsc.stringColor = Color.white;
2090 [ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ].postln;},
2095 /*//stop timer button
2097 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;
2098 if(~timer.isPlaying == true, {
2099 if(~tst.value == nil, {~timer.stop; ~systemclock.stop; ~systemclock.clear;},{~tst.close;
2101 ~timer.stop; ~systemclock.stop; ~systemclock.clear;});
2108 ~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, {
2110 ~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;
2111 if(~timer.isPlaying == true, {
2112 if(~tst.value == nil, {~timer.stop; ~systemclock.stop; ~systemclock.clear;},{~tst.close;
2114 ~timer.stop; ~systemclock.stop; ~systemclock.clear;});
2118 if(~tst != nil, {~tst.close});
2120 ~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;})});
2125 //start/stop synth button
2127 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_({
2128 arg synthbutton; if(synthbutton.value == 1, {
2129 ~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);
2131 ~numsynths.stop; ~numsynthsfunc.value;
2132 if(~midifunc != nil, {~midifunc.value});
2134 {~synthfree.value; b4.value = 0;})
2138 //pause/unpause button
2140 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_({
2141 arg synthbutton; if(synthbutton.value == 1, {~synthpause.value; if(~ts.value == 1, {~timer.stop;});},
2142 {~synthflow.value; if(~ts.value != 1, {nil}, {SystemClock.play(~timer);})})
2146 //generate values for number of KW(King Wen) sequences in a timewave half-cycle (or amplitude x2) pop-up menu
2149 ~menu2values = Array.fill(24, {(x=x+1).asString++" kws"});
2152 //number of KW(King Wen) sequences in a timewave half-cycle (or amplitude x2) upon starting value
2155 {~gsinenum == nil}{~menu2start = ~menu2values.at(~synthdefnum-1)}
2156 {~gsinenum == 1}{~menu2start = ~menu2values.at(0)}
2157 {~gsinenum == 2}{~menu2start = ~menu2values.at(1)}
2158 {~gsinenum == 3}{~menu2start = ~menu2values.at(2)}
2159 {~gsinenum == 4}{~menu2start = ~menu2values.at(3)}
2160 {~gsinenum == 5}{~menu2start = ~menu2values.at(4)}
2161 {~gsinenum == 6}{~menu2start = ~menu2values.at(5)}
2162 {~gsinenum == 7}{~menu2start = ~menu2values.at(6)}
2163 {~gsinenum == 8}{~menu2start = ~menu2values.at(7)}
2164 {~gsinenum == 9}{~menu2start = ~menu2values.at(8)}
2165 {~gsinenum == 10}{~menu2start = ~menu2values.at(9)}
2166 {~gsinenum == 11}{~menu2start = ~menu2values.at(10)}
2167 {~gsinenum == 12}{~menu2start = ~menu2values.at(11)}
2168 {~gsinenum == 13}{~menu2start = ~menu2values.at(12)}
2169 {~gsinenum == 14}{~menu2start = ~menu2values.at(13)}
2170 {~gsinenum == 15}{~menu2start = ~menu2values.at(14)}
2171 {~gsinenum == 16}{~menu2start = ~menu2values.at(15)}
2172 {~gsinenum == 17}{~menu2start = ~menu2values.at(16)}
2173 {~gsinenum == 18}{~menu2start = ~menu2values.at(17)}
2174 {~gsinenum == 19}{~menu2start = ~menu2values.at(18)}
2175 {~gsinenum == 20}{~menu2start = ~menu2values.at(19)}
2176 {~gsinenum == 21}{~menu2start = ~menu2values.at(20)}
2177 {~gsinenum == 22}{~menu2start = ~menu2values.at(21)}
2178 {~gsinenum == 23}{~menu2start = ~menu2values.at(22)}
2179 {~gsinenum == 24}{~menu2start = ~menu2values.at(23)};
2180 if(~menu2synthdefstart.value == nil, {~menu2synthdefstart = ~synthdefnum}, {~menu2synthdefstart = ~gsinenum});
2183 //number of KW(King Wen) sequences in a timewave half-cycle (or amplitude x2) pop-up menu
2185 menu2=PopUpMenu(w,Rect(20+60*2+16,Window.screenBounds.height-88+(30/1.6180339887499*0),86,60/1.6180339887499)).items_(~mvalue = (-1); [~menu2start.asString]++Array.fill(24, {~menu2values.at(~mvalue = ~mvalue+1);});).background_(Color.black).stringColor_(Color.white).action_({arg button;
2187 if(~st != nil, {~st.close});
2188 ~st = StaticText(w, Rect(20+60*2+16+231,Window.screenBounds.height-88+(30/1.6180339887499*0), 80, 60)).background_(Color.black);
2189 ~st.stringColor = Color.white;
2190 ~st.string = "# of kws in halfcycle selected";
2191 AppClock.sched(~gm,{~st.close;});
2195 //pop-menu for timewave base (lowest) frequency
2197 ~bfreqstart = ~basefreq;
2198 ~bfreq = PopUpMenu(w, Rect(20+60*2+16+86,Window.screenBounds.height-88+(30/1.6180339887499*0),140,60/1.6180339887499)).items_(~bfreqv = (-1); [~basefreq.asString++" hz"]++Array.fill(140, {~freqmap.at(~bfreqv=~bfreqv+1).asString})).background_(Color.black).stringColor_(Color.white).action_({arg button;
2200 if(~st != nil, {~st.close});
2201 ~st = StaticText(w, Rect(20+60*2+16+231,Window.screenBounds.height-88+(30/1.6180339887499*0), 80, 40)).background_(Color.black);
2202 ~st.stringColor = Color.white;
2203 ~st.string = "basefreq selected";
2204 AppClock.sched(~gm,{~st.close;});
2208 //synthdef pop-up menu
2210 ~gsinemenu = PopUpMenu(w, Rect(20+60*2+16,Window.screenBounds.height-52+(30/1.6180339887499*0),86,60/1.6180339887499)).items_(["psine1","psine2","psine3","hsine1","hsine2","hsine3","psineuf1","psineuf2","psineuf3","hsineuf1","hsineuf2","hsineuf3"]).background_(Color.black).stringColor_(Color.white).action_({arg button;
2212 if(~gsinemenu.value == 0, {~kws_setting = 1; ~ratio_setting = "psine1"; ~low_pass_filter_on = 1; ~gs = 0;});
2213 if(~gsinemenu.value == 1, {~kws_setting = 2; ~ratio_setting = "psine2"; ~low_pass_filter_on = 1; ~gs = 1;});
2214 if(~gsinemenu.value == 2, {~kws_setting = 3; ~ratio_setting = "psine3"; ~low_pass_filter_on = 1; ~gs = 2;});
2215 if(~gsinemenu.value == 3, {~kws_setting = 1; ~ratio_setting = "hsine1"; ~low_pass_filter_on = 1; ~gs = 3;});
2216 if(~gsinemenu.value == 4, {~kws_setting = 2; ~ratio_setting = "hsine2"; ~low_pass_filter_on = 1; ~gs = 4;});
2217 if(~gsinemenu.value == 5, {~kws_setting = 3; ~ratio_setting = "hsine3"; ~low_pass_filter_on = 1; ~gs = 5;});
2218 if(~gsinemenu.value == 6, {~kws_setting = 1; ~ratio_setting = "psine1"; ~low_pass_filter_on = 0; ~gs = 6;});
2219 if(~gsinemenu.value == 7, {~kws_setting = 2; ~ratio_setting = "psine2"; ~low_pass_filter_on = 0; ~gs = 7;});
2220 if(~gsinemenu.value == 8, {~kws_setting = 3; ~ratio_setting = "psine3"; ~low_pass_filter_on = 0; ~gs = 8;});
2221 if(~gsinemenu.value == 9, {~kws_setting = 1; ~ratio_setting = "hsine1"; ~low_pass_filter_on = 0; ~gs = 9;});
2222 if(~gsinemenu.value == 10, {~kws_setting = 2; ~ratio_setting = "hsine2"; ~low_pass_filter_on = 0; ~gs = 10;});
2223 if(~gsinemenu.value == 11, {~kws_setting = 3; ~ratio_setting = "hsine3"; ~low_pass_filter_on = 0; ~gs = 11;});
2225 if(~st != nil, {~st.close});
2226 ~st = StaticText(w, Rect(20+60*2+16+231,Window.screenBounds.height-88+(30/1.6180339887499*0), 80, 60)).background_(Color.black);
2227 ~st.stringColor = Color.white;
2228 ~st.string = "synthdef setting selected";
2229 AppClock.sched(~gm,{~st.close;});
2232 if(~gs == nil, {~gs = 0;});
2235 {~gs == 0}{~gsinemenu.value = 0;}
2236 {~gs == 1}{~gsinemenu.value = 1;}
2237 {~gs == 2}{~gsinemenu.value = 2;}
2238 {~gs == 3}{~gsinemenu.value = 3;}
2239 {~gs == 4}{~gsinemenu.value = 4;}
2240 {~gs == 5}{~gsinemenu.value = 5;}
2241 {~gs == 0}{~gsinemenu.value = 6;}
2242 {~gs == 1}{~gsinemenu.value = 7;}
2243 {~gs == 2}{~gsinemenu.value = 8;}
2244 {~gs == 3}{~gsinemenu.value = 9;}
2245 {~gs == 4}{~gsinemenu.value = 10;}
2246 {~gs == 5}{~gsinemenu.value = 11;};
2249 //set low-pass filter frequency limit
2251 if(~low_pass_filter_set_value == nil, {~low_pass_filter_set_value = ~low_pass_filter_freq_limit});
2252 if(~low_pass_filter_set_value != ~low_pass_filter_freq_limit, {~low_pass_filter_set_value = ~low_pass_filter_freq_limit});
2254 ~low_pass_filter_textfield = TextField(w, Rect(20+60*2+16+86,Window.screenBounds.height-52+(30/1.6180339887499*0),80,60/1.6180339887499));
2255 ~low_pass_filter_textfield.string = ~low_pass_filter_set_value.asString;
2256 ~low_pass_filter_textfield.background_(Color.black);
2257 ~low_pass_filter_textfield.stringColor_(Color.white);
2258 ~low_pass_filter_textfield.action = {arg value; ~low_pass_filter_set_value = value;
2260 ~low_pass_filter_set_value = ~low_pass_filter_set_value.value;
2262 ~low_pass_filter_set_value = ~low_pass_filter_set_value.separate;
2264 ~low_pass_filter_set_value = ~low_pass_filter_set_value.reject{arg item;
2278 ~low_pass_filter_set_value = ~low_pass_filter_set_value.join.asString.asFloat;
2280 ~low_pass_filter_textfield.string = ~low_pass_filter_set_value.asString;
2282 if(~low_pass_filter_set_value != 0, {
2283 if(~st != nil, {~st.close});
2284 ~st = StaticText(w, Rect(20+60*2+16+231,Window.screenBounds.height-88+(30/1.6180339887499*0), 80, 80)).background_(Color.black);
2285 ~st.stringColor = Color.white;
2286 ~st.string = "low-pass filter freq limit selected";
2287 AppClock.sched(~gm,{~st.close;});
2288 }, {~low_pass_filter_set_value = ~low_pass_filter_freq_limit; ~low_pass_filter_textfield.string = ~low_pass_filter_set_value.asString;});
2292 //set button for number of KW sequences in a timewave half-cycle (or amplitude x2), basefreq, and gsine(evaluate synthdefs)
2294 set1=Button(w,Rect(20+60*2+16+166, Window.screenBounds.height-52+(16/1.6180339887499*0),60,60/1.6180339887499)).states_([["set",Color.white,Color.black]]).mouseDownAction_({
2296 if(~st != nil, {~st.close});
2297 ~st = StaticText(w, Rect(20+60*2+16+231,Window.screenBounds.height-40, 62, 20)).background_(Color.black);
2298 ~st.stringColor = Color.white;
2299 ~st.string = "loading...";
2300 AppClock.sched(0.2,{~st.close;});
2302 AppClock.sched(0.1,{
2304 if(~bfreq.value > 0, {~basefreq = ~freqmap.at(~bfreq.value - 1)}, {~basefreq = ~bfreqstart});
2306 (#a,b,c,d,e,f = [ ~basefreq,~basefreq,~basefreq,~basefreq,~basefreq,~basefreq ]; ~a = a; ~b = b; ~c =c; ~d = d; ~e = e;~f=f;);
2308 ~low_pass_filter_freq_limit = ~low_pass_filter_set_value;
2314 {~ratio_setting == "psine1";}{~n_value1 = ~gm; ~n_value2 = ~gm2; ~n_value6 = ~gm6;}
2315 {~ratio_setting == "psine2";}{~n_value1 = ~ngm1; ~n_value2 = ~ngm2; ~n_value6 = ~ngm6;}
2316 {~ratio_setting == "psine3";}{~n_value1 = ~nngm1; ~n_value2 = ~nngm2; ~n_value6 = ~nngm6;}
2317 {~ratio_setting == "hsine1";}{~n_value1 = ~h1; ~n_value2 = ~h2; ~n_value6 = ~h6;}
2318 {~ratio_setting == "hsine2";}{~n_value1 = ~nh1; ~n_value2 = ~nh2; ~n_value6 = ~nh6;}
2319 {~ratio_setting == "hsine3";}{~n_value1 = ~nnh1; ~n_value2 = ~nnh2; ~n_value6 = ~nnh6;};
2322 //evaluate synthdefs(gsine)
2325 {menu2.value == 0}{~gsinenum = ~menu2synthdefstart; ~gsine.value;}
2326 {menu2.value == 1}{~gsinenum = 1; ~gsine.value;}
2327 {menu2.value == 2}{~gsinenum = 2; ~gsine.value;}
2328 {menu2.value == 3}{~gsinenum = 3; ~gsine.value;}
2329 {menu2.value == 4}{~gsinenum = 4; ~gsine.value;}
2330 {menu2.value == 5}{~gsinenum = 5; ~gsine.value;}
2331 {menu2.value == 6}{~gsinenum = 6; ~gsine.value;}
2332 {menu2.value == 7}{~gsinenum = 7; ~gsine.value;}
2333 {menu2.value == 8}{~gsinenum = 8; ~gsine.value;}
2334 {menu2.value == 9}{~gsinenum = 9; ~gsine.value;}
2335 {menu2.value == 10}{~gsinenum = 10; ~gsine.value;}
2336 {menu2.value == 11}{~gsinenum = 11; ~gsine.value;}
2337 {menu2.value == 12}{~gsinenum = 12; ~gsine.value;}
2338 {menu2.value == 13}{~gsinenum = 13; ~gsine.value;}
2339 {menu2.value == 14}{~gsinenum = 14; ~gsine.value;}
2340 {menu2.value == 15}{~gsinenum = 15; ~gsine.value;}
2341 {menu2.value == 16}{~gsinenum = 16; ~gsine.value;}
2342 {menu2.value == 17}{~gsinenum = 17; ~gsine.value;}
2343 {menu2.value == 18}{~gsinenum = 18; ~gsine.value;}
2344 {menu2.value == 19}{~gsinenum = 19; ~gsine.value;}
2345 {menu2.value == 20}{~gsinenum = 20; ~gsine.value;}
2346 {menu2.value == 21}{~gsinenum = 21; ~gsine.value;}
2347 {menu2.value == 22}{~gsinenum = 22; ~gsine.value;}
2348 {menu2.value == 23}{~gsinenum = 23; ~gsine.value;}
2349 {menu2.value == 24}{~gsinenum = 24; ~gsine.value;};
2357 //open/flow/slide buttons coordinate values
2360 ~bpw = 26/1.6180339887499;
2361 ~bpl = Window.screenBounds.width-(~bph*8)-20;
2362 ~bpt = Window.screenBounds.height-88;
2365 ~bp02l = ~bpl+(~bph*1);
2366 ~bp03l = ~bpl+(~bph*2);
2367 ~bp04l = ~bpl+(~bph*3);
2368 ~bp05l = ~bpl+(~bph*4);
2369 ~bp06l = ~bpl+(~bph*5);
2370 ~bp07l = ~bpl+(~bph*6);
2371 ~bp08l = ~bpl+(~bph*7);
2373 ~bpf2l = ~bpl+(~bph*1);
2374 ~bpf3l = ~bpl+(~bph*2);
2375 ~bpf4l = ~bpl+(~bph*3);
2376 ~bpf5l = ~bpl+(~bph*4);
2377 ~bpf6l = ~bpl+(~bph*5);
2378 ~bpf7l = ~bpl+(~bph*6);
2379 ~bpf8l = ~bpl+(~bph*7);
2434 ~tspl=Window.screenBounds.width-~tspw;
2438 //synthopen 1-8 buttons
2440 ~bplaceo1 = Button.new(w,Rect(~bp01l,~bp01t,~bp01h,~bp01w)).states_([["o1",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2442 [~f1=~fp1,~f2=~fp2,~f3=~fp3,~f4=~fp4,~f5=~fp5,~f6=~fp6,~f7=~fp7,~f8=~fp8,~f9=~fp9,~f10=~fp10,~f11=~fp11,~f12=~fp12];
2445 ~currentsynth = "o1"; ~synthmonitorfunc.value;
2448 {if(~tst == nil, {nil}, {~tst.close;});
2450 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time1o = 0;
2451 ~timer = Routine({inf.do({
2453 ~time1o+0.01; ~slot = "o1_"+~time1o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2457 ~bplaceo2 = Button.new(w,Rect(~bp02l,~bp02t,~bp02h,~bp02w)).states_([["o2",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2459 [~f1=~fp1b,~f2=~fp2b,~f3=~fp3b,~f4=~fp4b,~f5=~fp5b,~f6=~fp6b,~f7=~fp7b,~f8=~fp8b,~f9=~fp9b,~f10=~fp10b,~f11=~fp11b,~f12=~fp12b];
2462 ~currentsynth = "o2"; ~synthmonitorfunc.value;
2465 {if(~tst == nil, {nil}, {~tst.close;});
2467 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time2o = 0;
2468 ~timer = Routine({inf.do({
2470 ~time2o+0.01; ~slot = "o2_"+~time2o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2473 ~bplaceo3 = Button.new(w,Rect(~bp03l,~bp03t,~bp03h,~bp03w)).states_([["o3",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2475 [~f1=~fp1c,~f2=~fp2c,~f3=~fp3c,~f4=~fp4c,~f5=~fp5c,~f6=~fp6c,~f7=~fp7c,~f8=~fp8c,~f9=~fp9c,~f10=~fp10c,~f11=~fp11c,~f12=~fp12c];
2478 ~currentsynth = "o3"; ~synthmonitorfunc.value;
2481 {if(~tst == nil, {nil}, {~tst.close;});
2483 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time3o = 0;
2484 ~timer = Routine({inf.do({
2486 ~time3o+0.01; ~slot = "o3_"+~time3o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2489 ~bplaceo4 = Button.new(w,Rect(~bp04l,~bp04t,~bp04h,~bp04w)).states_([["o4",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2491 [~f1=~fp1d,~f2=~fp2d,~f3=~fp3d,~f4=~fp4d,~f5=~fp5d,~f6=~fp6d,~f7=~fp7d,~f8=~fp8d,~f9=~fp9d,~f10=~fp10d,~f11=~fp11d,~f12=~fp12d];
2494 ~currentsynth = "o4"; ~synthmonitorfunc.value;
2497 {if(~tst == nil, {nil}, {~tst.close;});
2499 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time4o = 0;
2500 ~timer = Routine({inf.do({
2502 ~time4o+0.01; ~slot = "o4_"+~time4o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2507 ~bplaceo5 = Button.new(w,Rect(~bp05l,~bp05t,~bp05h,~bp05w)).states_([["o5",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2509 [~f1=~fp1e,~f2=~fp2e,~f3=~fp3e,~f4=~fp4e,~f5=~fp5e,~f6=~fp6e,~f7=~fp7e,~f8=~fp8e,~f9=~fp9e,~f10=~fp10e,~f11=~fp11e,~f12=~fp12e];
2512 ~currentsynth = "o5"; ~synthmonitorfunc.value;
2515 {if(~tst == nil, {nil}, {~tst.close;});
2517 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time5o = 0;
2518 ~timer = Routine({inf.do({
2520 ~time5o+0.01; ~slot = "o5_"+~time5o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2524 ~bplaceo6 = Button.new(w,Rect(~bp06l,~bp06t,~bp06h,~bp06w)).states_([["o6",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2526 [~f1=~fp1f,~f2=~fp2f,~f3=~fp3f,~f4=~fp4f,~f5=~fp5f,~f6=~fp6f,~f7=~fp7f,~f8=~fp8f,~f9=~fp9f,~f10=~fp10f,~f11=~fp11f,~f12=~fp12f];
2529 ~currentsynth = "o6"; ~synthmonitorfunc.value;
2532 {if(~tst == nil, {nil}, {~tst.close;});
2534 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time6o = 0;
2535 ~timer = Routine({inf.do({
2537 ~time6o+0.01; ~slot = "o6_"+~time6o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2540 ~bplaceo7 = Button.new(w,Rect(~bp07l,~bp07t,~bp07h,~bp07w)).states_([["o7",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2542 [~f1=~fp1g,~f2=~fp2g,~f3=~fp3g,~f4=~fp4g,~f5=~fp5g,~f6=~fp6g,~f7=~fp7g,~f8=~fp8g,~f9=~fp9g,~f10=~fp10g,~f11=~fp11g,~f12=~fp12g];
2545 ~currentsynth = "o7"; ~synthmonitorfunc.value;
2548 {if(~tst == nil, {nil}, {~tst.close;});
2550 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time7o = 0;
2551 ~timer = Routine({inf.do({
2553 ~time7o+0.01; ~slot = "o7_"+~time7o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2556 ~bplaceo8 = Button.new(w,Rect(~bp08l,~bp08t,~bp08h,~bp08w)).states_([["o8",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2558 [~f1=~fp1h,~f2=~fp2h,~f3=~fp3h,~f4=~fp4h,~f5=~fp5h,~f6=~fp6h,~f7=~fp7h,~f8=~fp8h,~f9=~fp9h,~f10=~fp10h,~f11=~fp11h,~f12=~fp12h];
2561 ~currentsynth = "o8"; ~synthmonitorfunc.value;
2564 {if(~tst == nil, {nil}, {~tst.close;});
2566 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time8o = 0;
2567 ~timer = Routine({inf.do({
2569 ~time8o+0.01; ~slot = "o8_"+~time8o.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2574 //synthflow 1-8 buttons
2576 ~bplacef1 = Button.new(w,Rect(~bpf1l,~bpf1t,~bpf1h,~bpf1w)).states_([["f1",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2578 [~f1=~fp1,~f2=~fp2,~f3=~fp3,~f4=~fp4,~f5=~fp5,~f6=~fp6,~f7=~fp7,~f8=~fp8,~f9=~fp9,~f10=~fp10,~f11=~fp11,~f12=~fp12];
2581 ~currentsynth = "f1"; ~synthmonitorfunc.value;
2584 {if(~tst == nil, {nil}, {~tst.close;});
2586 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time1f = 0;
2587 ~timer = Routine({inf.do({
2589 ~time1f+0.01; ~slot = "f1_"+~time1f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2592 ~bplacef2 = Button.new(w,Rect(~bpf2l,~bpf2t,~bpf2h,~bpf2w)).states_([["f2",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2594 [~f1=~fp1b,~f2=~fp2b,~f3=~fp3b,~f4=~fp4b,~f5=~fp5b,~f6=~fp6b,~f7=~fp7b,~f8=~fp8b,~f9=~fp9b,~f10=~fp10b,~f11=~fp11b,~f12=~fp12b];
2597 ~currentsynth = "f2"; ~synthmonitorfunc.value;
2600 {if(~tst == nil, {nil}, {~tst.close;});
2602 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time2f = 0;
2603 ~timer = Routine({inf.do({
2605 ~time2f+0.01; ~slot = "f2_"+~time2f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2609 ~bplacef3 = Button.new(w,Rect(~bpf3l,~bpf3t,~bpf3h,~bpf3w)).states_([["f3",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2611 [~f1=~fp1c,~f2=~fp2c,~f3=~fp3c,~f4=~fp4c,~f5=~fp5c,~f6=~fp6c,~f7=~fp7c,~f8=~fp8c,~f9=~fp9c,~f10=~fp10c,~f11=~fp11c,~f12=~fp12c];
2614 ~currentsynth = "f3"; ~synthmonitorfunc.value;
2617 {if(~tst == nil, {nil}, {~tst.close;});
2619 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time3f = 0;
2620 ~timer = Routine({inf.do({
2622 ~time3f+0.01; ~slot = "f3_"+~time3f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2625 ~bplacef4 = Button.new(w,Rect(~bpf4l,~bpf4t,~bpf4h,~bpf4w)).states_([["f4",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2627 [~f1=~fp1d,~f2=~fp2d,~f3=~fp3d,~f4=~fp4d,~f5=~fp5d,~f6=~fp6d,~f7=~fp7d,~f8=~fp8d,~f9=~fp9d,~f10=~fp10d,~f11=~fp11d,~f12=~fp12d];
2630 ~currentsynth = "f4"; ~synthmonitorfunc.value;
2633 {if(~tst == nil, {nil}, {~tst.close;});
2635 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time4f = 0;
2636 ~timer = Routine({inf.do({
2638 ~time4f+0.01; ~slot = "f4_"+~time4f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2642 ~bplacef5 = Button.new(w,Rect(~bpf5l,~bpf5t,~bpf5h,~bpf5w)).states_([["f5",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2644 [~f1=~fp1e,~f2=~fp2e,~f3=~fp3e,~f4=~fp4e,~f5=~fp5e,~f6=~fp6e,~f7=~fp7e,~f8=~fp8e,~f9=~fp9e,~f10=~fp10e,~f11=~fp11e,~f12=~fp12e];
2647 ~currentsynth = "f5"; ~synthmonitorfunc.value;
2650 {if(~tst == nil, {nil}, {~tst.close;});
2652 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time5f = 0;
2653 ~timer = Routine({inf.do({
2655 ~time5f+0.01; ~slot = "f5_"+~time5f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2659 ~bplacef6 = Button.new(w,Rect(~bpf6l,~bpf6t,~bpf6h,~bpf6w)).states_([["f6",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2661 [~f1=~fp1f,~f2=~fp2f,~f3=~fp3f,~f4=~fp4f,~f5=~fp5f,~f6=~fp6f,~f7=~fp7f,~f8=~fp8f,~f9=~fp9f,~f10=~fp10f,~f11=~fp11f,~f12=~fp12f];
2664 ~currentsynth = "f6"; ~synthmonitorfunc.value;
2667 {if(~tst == nil, {nil}, {~tst.close;});
2669 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time6f = 0;
2670 ~timer = Routine({inf.do({
2672 ~time6f+0.01; ~slot = "f6_"+~time6f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2677 ~bplacef7 = Button.new(w,Rect(~bpf7l,~bpf7t,~bpf7h,~bpf7w)).states_([["f7",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2679 [~f1=~fp1g,~f2=~fp2g,~f3=~fp3g,~f4=~fp4g,~f5=~fp5g,~f6=~fp6g,~f7=~fp7g,~f8=~fp8g,~f9=~fp9g,~f10=~fp10g,~f11=~fp11g,~f12=~fp12g];
2682 ~currentsynth = "f7"; ~synthmonitorfunc.value;
2685 {if(~tst == nil, {nil}, {~tst.close;});
2687 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time7f = 0;
2688 ~timer = Routine({inf.do({
2690 ~time7f+0.01; ~slot = "f7_"+~time7f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2693 ~bplacef8 = Button.new(w,Rect(~bpf8l,~bpf8t,~bpf8h,~bpf8w)).states_([["f8",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2695 [~f1=~fp1h,~f2=~fp2h,~f3=~fp3h,~f4=~fp4h,~f5=~fp5h,~f6=~fp6h,~f7=~fp7h,~f8=~fp8h,~f9=~fp9h,~f10=~fp10h,~f11=~fp11h,~f12=~fp12h];
2698 ~currentsynth = "f8"; ~synthmonitorfunc.value;
2701 {if(~tst == nil, {nil}, {~tst.close;});
2703 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time8f = 0;
2704 ~timer = Routine({inf.do({
2706 ~time8f+0.01; ~slot = "f8_"+~time8f.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2711 //synthslide 1-8 buttons
2713 ~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;
2715 if(~slidetime1 == nil, {~slidetime1 = 4}); if(~slidedo1 == nil, {~slidedo1 = 2000;}); ~slidecount = ~slidedo1;
2716 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2717 [ ~fp1,~fp2,~fp3,~fp4,~fp5,~fp6,~fp7,~fp8,~fp9,~fp10,~fp11,~fp12 ])*(-1)/~slidedo1);
2719 ~slidetime =~slidetime1; ~slidedo = ~slidedo1;
2724 ~currentsynth = "s1"; ~synthmonitorfunc.value;
2727 {if(~tst == nil, {nil}, {~tst.close;});
2729 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time1s = 0;
2730 ~timer = Routine({inf.do({
2732 ~time1s+0.01; ~slot = "s1_"+~time1s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2736 ~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;
2738 if(~slidetime2 == nil, {~slidetime2 = 4}); if(~slidedo2 == nil, {~slidedo2 = 2000;}); ~slidecount = ~slidedo2;
2739 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2740 [ ~fp1b,~fp2b,~fp3b,~fp4b,~fp5b,~fp6b,~fp7b,~fp8b,~fp9b,~fp10b,~fp11b,~fp12b ])*(-1)/~slidedo2);
2742 ~slidetime = ~slidetime2; ~slidedo = ~slidedo2;
2747 ~currentsynth = "s2"; ~synthmonitorfunc.value;
2750 {if(~tst == nil, {nil}, {~tst.close;});
2752 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time2s = 0;
2753 ~timer = Routine({inf.do({
2755 ~time2s+0.01; ~slot = "s2_"+~time2s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2759 ~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;
2761 if(~slidetime3 == nil, {~slidetime3 = 4}); if(~slidedo3 == nil, {~slidedo3 = 2000;}); ~slidecount = ~slidedo3;
2762 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2763 [ ~fp1c,~fp2c,~fp3c,~fp4c,~fp5c,~fp6c,~fp7c,~fp8c,~fp9c,~fp10c,~fp11c,~fp12c ])*(-1)/~slidedo3);
2765 ~slidetime = ~slidetime3; ~slidedo = ~slidedo3;
2770 ~currentsynth = "s3"; ~synthmonitorfunc.value;
2773 {if(~tst == nil, {nil}, {~tst.close;});
2775 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time3s = 0;
2776 ~timer = Routine({inf.do({
2778 ~time3s+0.01; ~slot = "s3_"+~time3s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2782 ~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;
2784 if(~slidetime4 == nil, {~slidetime4 = 4}); if(~slidedo4 == nil, {~slidedo4 = 2000;}); ~slidecount = ~slidedo4;
2785 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2786 [ ~fp1d,~fp2d,~fp3d,~fp4d,~fp5d,~fp6d,~fp7d,~fp8d,~fp9d,~fp10d,~fp11d,~fp12d ])*(-1)/~slidedo4);
2788 ~slidetime = ~slidetime4; ~slidedo = ~slidedo4;
2793 ~currentsynth = "s4"; ~synthmonitorfunc.value;
2796 {if(~tst == nil, {nil}, {~tst.close;});
2798 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time4s = 0;
2799 ~timer = Routine({inf.do({
2801 ~time4s+0.01; ~slot = "s4_"+~time4s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2804 ~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;
2806 if(~slidetime5 == nil, {~slidetime5 = 4}); if(~slidedo5 == nil, {~slidedo5 = 2000;}); ~slidecount = ~slidedo5;
2807 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2808 [ ~fp1e,~fp2e,~fp3e,~fp4e,~fp5e,~fp6e,~fp7e,~fp8e,~fp9e,~fp10e,~fp11e,~fp12e ])*(-1)/~slidedo5);
2810 ~slidetime = ~slidetime5; ~slidedo = ~slidedo5;
2815 ~currentsynth = "s5"; ~synthmonitorfunc.value;
2818 {if(~tst == nil, {nil}, {~tst.close;});
2820 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time5s = 0;
2821 ~timer = Routine({inf.do({
2823 ~time5s+0.01; ~slot = "s5_"+~time5s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2827 ~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;
2829 if(~slidetime6 == nil, {~slidetime6 = 4}); if(~slidedo6 == nil, {~slidedo6 = 2000;}); ~slidecount = ~slidedo6;
2830 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2831 [ ~fp1f,~fp2f,~fp3f,~fp4f,~fp5f,~fp6f,~fp7f,~fp8f,~fp9f,~fp10f,~fp11f,~fp12f ])*(-1)/~slidedo6);
2833 ~slidetime = ~slidetime6; ~slidedo = ~slidedo6;
2837 ~currentsynth = "s6"; ~synthmonitorfunc.value;
2840 {if(~tst == nil, {nil}, {~tst.close;});
2842 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time6s = 0;
2843 ~timer = Routine({inf.do({
2845 ~time6s+0.01; ~slot = "s6_"+~time6s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2849 ~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;
2851 if(~slidetime7 == nil, {~slidetime7 = 4}); if(~slidedo7 == nil, {~slidedo7 = 2000;}); ~slidecount = ~slidedo7;
2852 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2853 [ ~fp1g,~fp2g,~fp3g,~fp4g,~fp5g,~fp6g,~fp7g,~fp8g,~fp9g,~fp10g,~fp11g,~fp12g ])*(-1)/~slidedo7);
2855 ~slidetime = ~slidetime7; ~slidedo = ~slidedo7;
2859 ~currentsynth = "s7"; ~synthmonitorfunc.value;
2862 {if(~tst == nil, {nil}, {~tst.close;});
2864 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time7s = 0;
2865 ~timer = Routine({inf.do({
2867 ~time7s+0.01; ~slot = "s7_"+~time7s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2871 ~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;
2873 if(~slidetime8 == nil, {~slidetime8 = 4}); if(~slidedo8 == nil, {~slidedo8 = 2000;}); ~slidecount = ~slidedo8;
2874 #g,h,i,j,k,l,m,n,o,p,q,r = (([ ~f1,~f2,~f3,~f4,~f5,~f6,~f7,~f8,~f9,~f10,~f11,~f12 ]-
2875 [ ~fp1h,~fp2h,~fp3h,~fp4h,~fp5h,~fp6h,~fp7h,~fp8h,~fp9h,~fp10h,~fp11h,~fp12h ])*(-1)/~slidedo8);
2877 ~slidetime = ~slidetime8; ~slidedo = ~slidedo8;
2882 ~currentsynth = "s8"; ~synthmonitorfunc.value;
2885 {if(~tst == nil, {nil}, {~tst.close;});
2887 ~timer.stop; ~systemclock.stop; ~systemclock.clear; ~time8s = 0;
2888 ~timer = Routine({inf.do({
2890 ~time8s+0.01; ~slot = "s8_"+~time8s.asString; 0.01.wait;});}); ~systemclock = SystemClock.play(~timer);},
2895 //if slidetime/slidedo is nil
2897 if(~slidetimeall == nil, {~slidetimeall = 1});
2898 if(~slidetime1 == nil, {~slidetime1 = 1});
2899 if(~slidetime2 == nil, {~slidetime2 = 1});
2900 if(~slidetime3 == nil, {~slidetime3 = 1});
2901 if(~slidetime4 == nil, {~slidetime4 = 1});
2902 if(~slidetime5 == nil, {~slidetime5 = 1});
2903 if(~slidetime6 == nil, {~slidetime6 = 1});
2904 if(~slidetime7 == nil, {~slidetime7 = 1});
2905 if(~slidetime8 == nil, {~slidetime8 = 1});
2907 if(~slidedoall == nil, {~slidedoall = 432});
2908 if(~slidedo1 == nil, {~slidedo1 = 432});
2909 if(~slidedo2 == nil, {~slidedo2 = 432});
2910 if(~slidedo3 == nil, {~slidedo3 = 432});
2911 if(~slidedo4 == nil, {~slidedo4 = 432});
2912 if(~slidedo5 == nil, {~slidedo5 = 432});
2913 if(~slidedo6 == nil, {~slidedo6 = 432});
2914 if(~slidedo7 == nil, {~slidedo7 = 432});
2915 if(~slidedo8 == nil, {~slidedo8 = 432});
2918 //set slide values button
2920 ~slidevals = Button.new(w,Rect(Window.screenBounds.width-20-20-20,~bpt+69+5,20,20/1.6180339887499)).states_([["s",Color.white,Color.black],["s",Color.white,Color.black]]).action_({arg button; button.value.postln}).action_({arg button;
2922 if(button.value == 1, {
2924 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;
2925 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;
2926 ~slideview = View(w, Rect(Window.screenBounds.width-(340+46),Window.screenBounds.height-(340+46/1.6180339887499)-110,340+46,340+46/1.6180339887499)).front;
2927 /*w.view.decorator=FlowLayout(w.view.bounds);
2928 w.view.decorator.gap=2@2;*/
2930 tall = StaticText(~slideview, Rect(lefttime , top=top, width, height)).background_(Color.black).string_("all time").stringColor_(Color.white);
2931 t1 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s1 time").stringColor_(Color.white);
2932 t2 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s2 time").stringColor_(Color.white);
2933 t3 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s3 time").stringColor_(Color.white);
2934 t4 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s4 time").stringColor_(Color.white);
2935 t5 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s5 time").stringColor_(Color.white);
2936 t6 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s6 time").stringColor_(Color.white);
2937 t7 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s7 time").stringColor_(Color.white);
2938 t8 = StaticText(~slideview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("s8 time").stringColor_(Color.white);
2942 stall=NumberBox(~slideview, Rect(lefttimebox , top=top, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetimeall).maxDecimals_(9);
2943 st1=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime1).maxDecimals_(9);
2944 st2=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime2).maxDecimals_(9);
2945 st3=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime3).maxDecimals_(9);
2946 st4=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime4).maxDecimals_(9);
2947 st5=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime5).maxDecimals_(9);
2948 st6=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime6).maxDecimals_(9);
2949 st7=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime7).maxDecimals_(9);
2950 st8=NumberBox(~slideview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidetime8).maxDecimals_(9);
2954 iall = StaticText(~slideview, Rect(leftdo , top=top, width, height)).background_(Color.black).string_("all incr").stringColor_(Color.white);
2955 i1 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s1 incr").stringColor_(Color.white);
2956 i2 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s2 incr").stringColor_(Color.white);
2957 i3 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s3 incr").stringColor_(Color.white);
2958 i4 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s4 incr").stringColor_(Color.white);
2959 i5 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s5 incr").stringColor_(Color.white);
2960 i6 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s6 incr").stringColor_(Color.white);
2961 i7 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s7 incr").stringColor_(Color.white);
2962 i8 = StaticText(~slideview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("s8 incr").stringColor_(Color.white);
2966 siall=NumberBox(~slideview, Rect(leftdobox , top=top, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedoall);
2967 si1=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo1);
2968 si2=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo2);
2969 si3=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo3);
2970 si4=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo4);
2971 si5=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo5);
2972 si6=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo6);
2973 si7=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo7);
2974 si8=NumberBox(~slideview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~slidedo8);
2976 stall.action_({arg val;
2977 ~slidetimeall = val.value;
2978 ~slidetime1 = val.value;
2979 ~slidetime2 = val.value;
2980 ~slidetime3 = val.value;
2981 ~slidetime4 = val.value;
2982 ~slidetime5 = val.value;
2983 ~slidetime6 = val.value;
2984 ~slidetime7 = val.value;
2985 ~slidetime8 = val.value;
2986 ~slideview.close; ~slidevals.valueAction_(1);
2988 st1.action_({arg val; ~slidetime1 = val.value;});
2989 st2.action_({arg val; ~slidetime2 = val.value;});
2990 st3.action_({arg val; ~slidetime3 = val.value;});
2991 st4.action_({arg val; ~slidetime4 = val.value;});
2992 st5.action_({arg val; ~slidetime5 = val.value;});
2993 st6.action_({arg val; ~slidetime6 = val.value;});
2994 st7.action_({arg val; ~slidetime7 = val.value;});
2995 st8.action_({arg val; ~slidetime8 = val.value;});
2997 siall.action_({arg val;
2998 ~slidedoall = val.value;
2999 ~slidedo1 = val.value;
3000 ~slidedo2 = val.value;
3001 ~slidedo3 = val.value;
3002 ~slidedo4 = val.value;
3003 ~slidedo5 = val.value;
3004 ~slidedo6 = val.value;
3005 ~slidedo7 = val.value;
3006 ~slidedo8 = val.value;
3007 ~slideview.close; ~slidevals.valueAction_(1);
3009 si1.action_({arg val; ~slidedo1 = val.value;});
3010 si2.action_({arg val; ~slidedo2 = val.value;});
3011 si3.action_({arg val; ~slidedo3 = val.value;});
3012 si4.action_({arg val; ~slidedo4 = val.value;});
3013 si5.action_({arg val; ~slidedo5 = val.value;});
3014 si6.action_({arg val; ~slidedo6 = val.value;});
3015 si7.action_({arg val; ~slidedo7 = val.value;});
3016 si8.action_({arg val; ~slidedo8 = val.value;});
3018 ~slideview.background_(Color.black);
3020 ~closeslidebutton = Button.new(~slideview,Rect(220, top+40, 40, 40/~gm)).states_([["close",Color.white,Color.black]]).action_({arg button;
3022 ~slideview.close; ~slidevals.value = 0;
3028 }, {~slideview.close});
3032 //mute/unmute 1-8 buttons
3034 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;
3036 {~l1a1.isRunning == true}{
3037 if(button.value == 0, {
3040 ~l1a1.set(\vol, ~vol1); ~l1b1.set(\vol, ~vol1);
3041 ~l1c1.set(\vol, ~vol1); ~l1d1.set(\vol, ~vol1);
3042 ~l1e1.set(\vol, ~vol1); ~l1f1.set(\vol, ~vol1);
3047 ~l1a1.set(\vol, ~vol1); ~l1b1.set(\vol, ~vol1);
3048 ~l1c1.set(\vol, ~vol1); ~l1d1.set(\vol, ~vol1);
3049 ~l1e1.set(\vol, ~vol1); ~l1f1.set(\vol, ~vol1);
3054 {~l1a.isRunning == true}{
3055 if(button.value == 0, {
3058 ~l1a.set(\vol, ~vol1); ~l1b.set(\vol, ~vol1);
3059 ~l1c.set(\vol, ~vol1); ~l1d.set(\vol, ~vol1);
3060 ~l1e.set(\vol, ~vol1); ~l1f.set(\vol, ~vol1);
3065 ~l1a.set(\vol, ~vol1); ~l1b.set(\vol, ~vol1);
3066 ~l1c.set(\vol, ~vol1); ~l1d.set(\vol, ~vol1);
3067 ~l1e.set(\vol, ~vol1); ~l1f.set(\vol, ~vol1);
3074 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;
3076 {~l1a1.isRunning == true}{
3077 if(button.value == 0, {
3080 ~l2a1.set(\vol, ~vol2); ~l2b1.set(\vol, ~vol2);
3081 ~l2c1.set(\vol, ~vol2); ~l2d1.set(\vol, ~vol2);
3082 ~l2e1.set(\vol, ~vol2); ~l2f1.set(\vol, ~vol2);
3087 ~l2a1.set(\vol, ~vol2); ~l2b1.set(\vol, ~vol2);
3088 ~l2c1.set(\vol, ~vol2); ~l2d1.set(\vol, ~vol2);
3089 ~l2e1.set(\vol, ~vol2); ~l2f1.set(\vol, ~vol2);
3094 {~l1a.isRunning == true}{
3095 if(button.value == 0, {
3098 ~l2a.set(\vol, ~vol2); ~l2b.set(\vol, ~vol2);
3099 ~l2c.set(\vol, ~vol2); ~l2d.set(\vol, ~vol2);
3100 ~l2e.set(\vol, ~vol2); ~l2f.set(\vol, ~vol2);
3105 ~l2a.set(\vol, ~vol2); ~l2b.set(\vol, ~vol2);
3106 ~l2c.set(\vol, ~vol2); ~l2d.set(\vol, ~vol2);
3107 ~l2e.set(\vol, ~vol2); ~l2f.set(\vol, ~vol2);
3113 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;
3115 {~l1a1.isRunning == true}{
3116 if(button.value == 0, {
3119 ~l3a1.set(\vol, ~vol3); ~l3b1.set(\vol, ~vol3);
3120 ~l3c1.set(\vol, ~vol3); ~l3d1.set(\vol, ~vol3);
3121 ~l3e1.set(\vol, ~vol3); ~l3f1.set(\vol, ~vol3);
3126 ~l3a1.set(\vol, ~vol3); ~l3b1.set(\vol, ~vol3);
3127 ~l3c1.set(\vol, ~vol3); ~l3d1.set(\vol, ~vol3);
3128 ~l3e1.set(\vol, ~vol3); ~l3f1.set(\vol, ~vol3);
3133 {~l1a.isRunning == true}{
3134 if(button.value == 0, {
3137 ~l3a.set(\vol, ~vol3); ~l3b.set(\vol, ~vol3);
3138 ~l3c.set(\vol, ~vol3); ~l3d.set(\vol, ~vol3);
3139 ~l3e.set(\vol, ~vol3); ~l3f.set(\vol, ~vol3);
3144 ~l3a.set(\vol, ~vol3); ~l3b.set(\vol, ~vol3);
3145 ~l3c.set(\vol, ~vol3); ~l3d.set(\vol, ~vol3);
3146 ~l3e.set(\vol, ~vol3); ~l3f.set(\vol, ~vol3);
3152 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;
3154 {~l1a1.isRunning == true}{
3155 if(button.value == 0, {
3158 ~l4a1.set(\vol, ~vol4); ~l4b1.set(\vol, ~vol4);
3159 ~l4c1.set(\vol, ~vol4); ~l4d1.set(\vol, ~vol4);
3160 ~l4e1.set(\vol, ~vol4); ~l4f1.set(\vol, ~vol4);
3165 ~l4a1.set(\vol, ~vol4); ~l4b1.set(\vol, ~vol4);
3166 ~l4c1.set(\vol, ~vol4); ~l4d1.set(\vol, ~vol4);
3167 ~l4e1.set(\vol, ~vol4); ~l4f1.set(\vol, ~vol4);
3172 {~l1a.isRunning == true}{
3173 if(button.value == 0, {
3176 ~l4a.set(\vol, ~vol4); ~l4b.set(\vol, ~vol4);
3177 ~l4c.set(\vol, ~vol4); ~l4d.set(\vol, ~vol4);
3178 ~l4e.set(\vol, ~vol4); ~l4f.set(\vol, ~vol4);
3183 ~l4a.set(\vol, ~vol4); ~l4b.set(\vol, ~vol4);
3184 ~l4c.set(\vol, ~vol4); ~l4d.set(\vol, ~vol4);
3185 ~l4e.set(\vol, ~vol4); ~l4f.set(\vol, ~vol4);
3191 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;
3193 {~l1a1.isRunning == true}{
3194 if(button.value == 0, {
3197 ~l5a1.set(\vol, ~vol5); ~l5b1.set(\vol, ~vol5);
3198 ~l5c1.set(\vol, ~vol5); ~l5d1.set(\vol, ~vol5);
3199 ~l5e1.set(\vol, ~vol5); ~l5f1.set(\vol, ~vol5);
3204 ~l5a1.set(\vol, ~vol5); ~l5b1.set(\vol, ~vol5);
3205 ~l5c1.set(\vol, ~vol5); ~l5d1.set(\vol, ~vol5);
3206 ~l5e1.set(\vol, ~vol5); ~l5f1.set(\vol, ~vol5);
3211 {~l1a.isRunning == true}{
3212 if(button.value == 0, {
3215 ~l5a.set(\vol, ~vol5); ~l5b.set(\vol, ~vol5);
3216 ~l5c.set(\vol, ~vol5); ~l5d.set(\vol, ~vol5);
3217 ~l5e.set(\vol, ~vol5); ~l5f.set(\vol, ~vol5);
3222 ~l5a.set(\vol, ~vol5); ~l5b.set(\vol, ~vol5);
3223 ~l5c.set(\vol, ~vol5); ~l5d.set(\vol, ~vol5);
3224 ~l5e.set(\vol, ~vol5); ~l5f.set(\vol, ~vol5);
3230 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;
3232 {~l1a1.isRunning == true}{
3233 if(button.value == 0, {
3236 ~l6a1.set(\vol, ~vol6); ~l6b1.set(\vol, ~vol6);
3237 ~l6c1.set(\vol, ~vol6); ~l6d1.set(\vol, ~vol6);
3238 ~l6e1.set(\vol, ~vol6); ~l6f1.set(\vol, ~vol6);
3243 ~l6a1.set(\vol, ~vol6); ~l6b1.set(\vol, ~vol6);
3244 ~l6c1.set(\vol, ~vol6); ~l6d1.set(\vol, ~vol6);
3245 ~l6e1.set(\vol, ~vol6); ~l6f1.set(\vol, ~vol6);
3250 {~l1a.isRunning == true}{
3251 if(button.value == 0, {
3254 ~l6a.set(\vol, ~vol6); ~l6b.set(\vol, ~vol6);
3255 ~l6c.set(\vol, ~vol6); ~l6d.set(\vol, ~vol6);
3256 ~l6e.set(\vol, ~vol6); ~l6f.set(\vol, ~vol6);
3261 ~l6a.set(\vol, ~vol6); ~l6b.set(\vol, ~vol6);
3262 ~l6c.set(\vol, ~vol6); ~l6d.set(\vol, ~vol6);
3263 ~l6e.set(\vol, ~vol6); ~l6f.set(\vol, ~vol6);
3270 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;
3272 {~l1a1.isRunning == true}{
3273 if(button.value == 0, {
3276 ~l7a1.set(\vol, ~vol7); ~l7b1.set(\vol, ~vol7);
3277 ~l7c1.set(\vol, ~vol7); ~l7d1.set(\vol, ~vol7);
3278 ~l7e1.set(\vol, ~vol7); ~l7f1.set(\vol, ~vol7);
3283 ~l7a1.set(\vol, ~vol7); ~l7b1.set(\vol, ~vol7);
3284 ~l7c1.set(\vol, ~vol7); ~l7d1.set(\vol, ~vol7);
3285 ~l7e1.set(\vol, ~vol7); ~l7f1.set(\vol, ~vol7);
3290 {~l1a.isRunning == true}{
3291 if(button.value == 0, {
3294 ~l7a.set(\vol, ~vol7); ~l7b.set(\vol, ~vol7);
3295 ~l7c.set(\vol, ~vol7); ~l7d.set(\vol, ~vol7);
3296 ~l7e.set(\vol, ~vol7); ~l7f.set(\vol, ~vol7);
3301 ~l7a.set(\vol, ~vol7); ~l7b.set(\vol, ~vol7);
3302 ~l7c.set(\vol, ~vol7); ~l7d.set(\vol, ~vol7);
3303 ~l7e.set(\vol, ~vol7); ~l7f.set(\vol, ~vol7);
3309 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;
3311 {~l1a1.isRunning == true}{
3312 if(button.value == 0, {
3315 ~l8a1.set(\vol, ~vol8); ~l8b1.set(\vol, ~vol8);
3316 ~l8c1.set(\vol, ~vol8); ~l8d1.set(\vol, ~vol8);
3317 ~l8e1.set(\vol, ~vol8); ~l8f1.set(\vol, ~vol8);
3322 ~l8a1.set(\vol, ~vol8); ~l8b1.set(\vol, ~vol8);
3323 ~l8c1.set(\vol, ~vol8); ~l8d1.set(\vol, ~vol8);
3324 ~l8e1.set(\vol, ~vol8); ~l8f1.set(\vol, ~vol8);
3329 {~l1a.isRunning == true}{
3330 if(button.value == 0, {
3333 ~l8a.set(\vol, ~vol8); ~l8b.set(\vol, ~vol8);
3334 ~l8c.set(\vol, ~vol8); ~l8d.set(\vol, ~vol8);
3335 ~l8e.set(\vol, ~vol8); ~l8f.set(\vol, ~vol8);
3340 ~l8a.set(\vol, ~vol8); ~l8b.set(\vol, ~vol8);
3341 ~l8c.set(\vol, ~vol8); ~l8d.set(\vol, ~vol8);
3342 ~l8e.set(\vol, ~vol8); ~l8f.set(\vol, ~vol8);
3348 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;
3350 {~l1a1.isRunning == true}{
3351 if(button.value == 0, {
3354 ~l9a1.set(\vol, ~vol9); ~l9b1.set(\vol, ~vol9);
3355 ~l9c1.set(\vol, ~vol9); ~l9d1.set(\vol, ~vol9);
3356 ~l9e1.set(\vol, ~vol9); ~l9f1.set(\vol, ~vol9);
3361 ~l9a1.set(\vol, ~vol9); ~l9b1.set(\vol, ~vol9);
3362 ~l9c1.set(\vol, ~vol9); ~l9d1.set(\vol, ~vol9);
3363 ~l9e1.set(\vol, ~vol9); ~l9f1.set(\vol, ~vol9);
3368 {~l1a.isRunning == true}{
3369 if(button.value == 0, {
3372 ~l9a.set(\vol, ~vol9); ~l9b.set(\vol, ~vol9);
3373 ~l9c.set(\vol, ~vol9); ~l9d.set(\vol, ~vol9);
3374 ~l9e.set(\vol, ~vol9); ~l9f.set(\vol, ~vol9);
3379 ~l9a.set(\vol, ~vol9); ~l9b.set(\vol, ~vol9);
3380 ~l9c.set(\vol, ~vol9); ~l9d.set(\vol, ~vol9);
3381 ~l9e.set(\vol, ~vol9); ~l9f.set(\vol, ~vol9);
3387 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;
3389 {~l1a1.isRunning == true}{
3390 if(button.value == 0, {
3393 ~l10a1.set(\vol, ~vol10); ~l10b1.set(\vol, ~vol10);
3394 ~l10c1.set(\vol, ~vol10); ~l10d1.set(\vol, ~vol10);
3395 ~l10e1.set(\vol, ~vol10); ~l10f1.set(\vol, ~vol10);
3400 ~l10a1.set(\vol, ~vol10); ~l10b1.set(\vol, ~vol10);
3401 ~l10c1.set(\vol, ~vol10); ~l10d1.set(\vol, ~vol10);
3402 ~l10e1.set(\vol, ~vol10); ~l10f1.set(\vol, ~vol10);
3407 {~l1a.isRunning == true}{
3408 if(button.value == 0, {
3411 ~l10a.set(\vol, ~vol10); ~l10b.set(\vol, ~vol10);
3412 ~l10c.set(\vol, ~vol10); ~l10d.set(\vol, ~vol10);
3413 ~l10e.set(\vol, ~vol10); ~l10f.set(\vol, ~vol10);
3418 ~l10a.set(\vol, ~vol10); ~l10b.set(\vol, ~vol10);
3419 ~l10c.set(\vol, ~vol10); ~l10d.set(\vol, ~vol10);
3420 ~l10e.set(\vol, ~vol10); ~l10f.set(\vol, ~vol10);
3426 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;
3428 {~l1a1.isRunning == true}{
3429 if(button.value == 0, {
3432 ~l11a1.set(\vol, ~vol11); ~l11b1.set(\vol, ~vol11);
3433 ~l11c1.set(\vol, ~vol11); ~l11d1.set(\vol, ~vol11);
3434 ~l11e1.set(\vol, ~vol11); ~l11f1.set(\vol, ~vol11);
3439 ~l11a1.set(\vol, ~vol11); ~l8b1.set(\vol, ~vol11);
3440 ~l11c1.set(\vol, ~vol11); ~l8d1.set(\vol, ~vol11);
3441 ~l11e1.set(\vol, ~vol11); ~l8f1.set(\vol, ~vol11);
3446 {~l1a.isRunning == true}{
3447 if(button.value == 0, {
3450 ~l11a.set(\vol, ~vol11); ~l11b.set(\vol, ~vol11);
3451 ~l11c.set(\vol, ~vol11); ~l11d.set(\vol, ~vol11);
3452 ~l11e.set(\vol, ~vol11); ~l11f.set(\vol, ~vol11);
3457 ~l11a.set(\vol, ~vol11); ~l11b.set(\vol, ~vol11);
3458 ~l11c.set(\vol, ~vol11); ~l11d.set(\vol, ~vol11);
3459 ~l11e.set(\vol, ~vol11); ~l11f.set(\vol, ~vol11);
3465 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;
3467 {~l1a1.isRunning == true}{
3468 if(button.value == 0, {
3471 ~l12a1.set(\vol, ~vol12); ~l12b1.set(\vol, ~vol12);
3472 ~l12c1.set(\vol, ~vol12); ~l12d1.set(\vol, ~vol12);
3473 ~l12e1.set(\vol, ~vol12); ~l12f1.set(\vol, ~vol12);
3478 ~l12a1.set(\vol, ~vol12); ~l12b1.set(\vol, ~vol12);
3479 ~l12c1.set(\vol, ~vol12); ~l12d1.set(\vol, ~vol12);
3480 ~l12e1.set(\vol, ~vol12); ~l12f1.set(\vol, ~vol12);
3485 {~l1a.isRunning == true}{
3486 if(button.value == 0, {
3489 ~l12a.set(\vol, ~vol12); ~l12b.set(\vol, ~vol12);
3490 ~l12c.set(\vol, ~vol12); ~l12d.set(\vol, ~vol12);
3491 ~l12e.set(\vol, ~vol12); ~l12f.set(\vol, ~vol12);
3496 ~l12a.set(\vol, ~vol12); ~l12b.set(\vol, ~vol12);
3497 ~l12c.set(\vol, ~vol12); ~l12d.set(\vol, ~vol12);
3498 ~l12e.set(\vol, ~vol12); ~l12f.set(\vol, ~vol12);
3506 //mute/unmute all button
3508 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;
3510 if(button.value == 0, {
3568 //keyboard number buttons to choose synth
3570 keycodeb = Button.new(w,Rect(Window.screenBounds.width-20-16,~bpt+160,16,16/1.6180339887499)).states_([
3571 ["1",Color.white,Color.black],
3572 ["2",Color.white,Color.black],
3573 ["3",Color.white,Color.black],
3574 ["4",Color.white,Color.black],
3575 ["5",Color.white,Color.black],
3576 ["6",Color.white,Color.black],
3577 ["7",Color.white,Color.black],
3578 ["8",Color.white,Color.black],
3579 ["9",Color.white,Color.black],
3580 ["10",Color.white,Color.black],
3581 ["11",Color.white,Color.black],
3582 ["12",Color.white,Color.black]]).action_({arg button;
3585 {button.value == 0}{
3586 ~z25.background = Color.green; ~z1.background = Color.green;
3587 ~z26.background = Color.white; ~z2.background = Color.white;
3588 ~z27.background = Color.white; ~z3.background = Color.white;
3589 ~z28.background = Color.white; ~z4.background = Color.white;
3590 ~z29.background = Color.white; ~z5.background = Color.white;
3591 ~z30.background = Color.white; ~z6.background = Color.white;
3592 ~z31.background = Color.white; ~z7.background = Color.white;
3593 ~z32.background = Color.white; ~z8.background = Color.white;
3594 ~z33.background = Color.white; ~z9.background = Color.white;
3595 ~z34.background = Color.white; ~z10.background = Color.white;
3596 ~z35.background = Color.white; ~z11.background = Color.white;
3597 ~z36.background = Color.white; ~z12.background = Color.white;
3599 {button.value == 1}{
3600 ~z25.background = Color.white; ~z1.background = Color.white;
3601 ~z26.background = Color.green; ~z2.background = Color.green;
3602 ~z27.background = Color.white; ~z3.background = Color.white;
3603 ~z28.background = Color.white; ~z4.background = Color.white;
3604 ~z29.background = Color.white; ~z5.background = Color.white;
3605 ~z30.background = Color.white; ~z6.background = Color.white;
3606 ~z31.background = Color.white; ~z7.background = Color.white;
3607 ~z32.background = Color.white; ~z8.background = Color.white;
3608 ~z33.background = Color.white; ~z9.background = Color.white;
3609 ~z34.background = Color.white; ~z10.background = Color.white;
3610 ~z35.background = Color.white; ~z11.background = Color.white;
3611 ~z36.background = Color.white; ~z12.background = Color.white;
3613 {button.value == 2}{
3614 ~z25.background = Color.white; ~z1.background = Color.white;
3615 ~z26.background = Color.white; ~z2.background = Color.white;
3616 ~z27.background = Color.green; ~z3.background = Color.green;
3617 ~z28.background = Color.white; ~z4.background = Color.white;
3618 ~z29.background = Color.white; ~z5.background = Color.white;
3619 ~z30.background = Color.white; ~z6.background = Color.white;
3620 ~z31.background = Color.white; ~z7.background = Color.white;
3621 ~z32.background = Color.white; ~z8.background = Color.white;
3622 ~z33.background = Color.white; ~z9.background = Color.white;
3623 ~z34.background = Color.white; ~z10.background = Color.white;
3624 ~z35.background = Color.white; ~z11.background = Color.white;
3625 ~z36.background = Color.white; ~z12.background = Color.white;
3627 {button.value == 3}{
3628 ~z25.background = Color.white; ~z1.background = Color.white;
3629 ~z26.background = Color.white; ~z2.background = Color.white;
3630 ~z27.background = Color.white; ~z3.background = Color.white;
3631 ~z28.background = Color.green; ~z4.background = Color.green;
3632 ~z29.background = Color.white; ~z5.background = Color.white;
3633 ~z30.background = Color.white; ~z6.background = Color.white;
3634 ~z31.background = Color.white; ~z7.background = Color.white;
3635 ~z32.background = Color.white; ~z8.background = Color.white;
3636 ~z33.background = Color.white; ~z9.background = Color.white;
3637 ~z34.background = Color.white; ~z10.background = Color.white;
3638 ~z35.background = Color.white; ~z11.background = Color.white;
3639 ~z36.background = Color.white; ~z12.background = Color.white;
3641 {button.value == 4}{
3642 ~z25.background = Color.white; ~z1.background = Color.white;
3643 ~z26.background = Color.white; ~z2.background = Color.white;
3644 ~z27.background = Color.white; ~z3.background = Color.white;
3645 ~z28.background = Color.white; ~z4.background = Color.white;
3646 ~z29.background = Color.green; ~z5.background = Color.green;
3647 ~z30.background = Color.white; ~z6.background = Color.white;
3648 ~z31.background = Color.white; ~z7.background = Color.white;
3649 ~z32.background = Color.white; ~z8.background = Color.white;
3650 ~z33.background = Color.white; ~z9.background = Color.white;
3651 ~z34.background = Color.white; ~z10.background = Color.white;
3652 ~z35.background = Color.white; ~z11.background = Color.white;
3653 ~z36.background = Color.white; ~z12.background = Color.white;
3655 {button.value == 5}{
3656 ~z25.background = Color.white; ~z1.background = Color.white;
3657 ~z26.background = Color.white; ~z2.background = Color.white;
3658 ~z27.background = Color.white; ~z3.background = Color.white;
3659 ~z28.background = Color.white; ~z4.background = Color.white;
3660 ~z29.background = Color.white; ~z5.background = Color.white;
3661 ~z30.background = Color.green; ~z6.background = Color.green;
3662 ~z31.background = Color.white; ~z7.background = Color.white;
3663 ~z32.background = Color.white; ~z8.background = Color.white;
3664 ~z33.background = Color.white; ~z9.background = Color.white;
3665 ~z34.background = Color.white; ~z10.background = Color.white;
3666 ~z35.background = Color.white; ~z11.background = Color.white;
3667 ~z36.background = Color.white; ~z12.background = Color.white;
3669 {button.value == 6}{
3670 ~z25.background = Color.white; ~z1.background = Color.white;
3671 ~z26.background = Color.white; ~z2.background = Color.white;
3672 ~z27.background = Color.white; ~z3.background = Color.white;
3673 ~z28.background = Color.white; ~z4.background = Color.white;
3674 ~z29.background = Color.white; ~z5.background = Color.white;
3675 ~z30.background = Color.white; ~z6.background = Color.white;
3676 ~z31.background = Color.green; ~z7.background = Color.green;
3677 ~z32.background = Color.white; ~z8.background = Color.white;
3678 ~z33.background = Color.white; ~z9.background = Color.white;
3679 ~z34.background = Color.white; ~z10.background = Color.white;
3680 ~z35.background = Color.white; ~z11.background = Color.white;
3681 ~z36.background = Color.white; ~z12.background = Color.white;
3683 {button.value == 7}{
3684 ~z25.background = Color.white; ~z1.background = Color.white;
3685 ~z26.background = Color.white; ~z2.background = Color.white;
3686 ~z27.background = Color.white; ~z3.background = Color.white;
3687 ~z28.background = Color.white; ~z4.background = Color.white;
3688 ~z29.background = Color.white; ~z5.background = Color.white;
3689 ~z30.background = Color.white; ~z6.background = Color.white;
3690 ~z31.background = Color.white; ~z7.background = Color.white;
3691 ~z32.background = Color.green; ~z8.background = Color.green;
3692 ~z33.background = Color.white; ~z9.background = Color.white;
3693 ~z34.background = Color.white; ~z10.background = Color.white;
3694 ~z35.background = Color.white; ~z11.background = Color.white;
3695 ~z36.background = Color.white; ~z12.background = Color.white;
3697 {button.value == 8}{
3698 ~z25.background = Color.white; ~z1.background = Color.white;
3699 ~z26.background = Color.white; ~z2.background = Color.white;
3700 ~z27.background = Color.white; ~z3.background = Color.white;
3701 ~z28.background = Color.white; ~z4.background = Color.white;
3702 ~z29.background = Color.white; ~z5.background = Color.white;
3703 ~z30.background = Color.white; ~z6.background = Color.white;
3704 ~z31.background = Color.white; ~z7.background = Color.white;
3705 ~z32.background = Color.white; ~z8.background = Color.white;
3706 ~z33.background = Color.green; ~z9.background = Color.green;
3707 ~z34.background = Color.white; ~z10.background = Color.white;
3708 ~z35.background = Color.white; ~z11.background = Color.white;
3709 ~z36.background = Color.white; ~z12.background = Color.white;
3711 {button.value == 9}{
3712 ~z25.background = Color.white; ~z1.background = Color.white;
3713 ~z26.background = Color.white; ~z2.background = Color.white;
3714 ~z27.background = Color.white; ~z3.background = Color.white;
3715 ~z28.background = Color.white; ~z4.background = Color.white;
3716 ~z29.background = Color.white; ~z5.background = Color.white;
3717 ~z30.background = Color.white; ~z6.background = Color.white;
3718 ~z31.background = Color.white; ~z7.background = Color.white;
3719 ~z32.background = Color.white; ~z8.background = Color.white;
3720 ~z33.background = Color.white; ~z9.background = Color.white;
3721 ~z34.background = Color.green; ~z10.background = Color.green;
3722 ~z35.background = Color.white; ~z11.background = Color.white;
3723 ~z36.background = Color.white; ~z12.background = Color.white;
3725 {button.value == 10}{
3726 ~z25.background = Color.white; ~z1.background = Color.white;
3727 ~z26.background = Color.white; ~z2.background = Color.white;
3728 ~z27.background = Color.white; ~z3.background = Color.white;
3729 ~z28.background = Color.white; ~z4.background = Color.white;
3730 ~z29.background = Color.white; ~z5.background = Color.white;
3731 ~z30.background = Color.white; ~z6.background = Color.white;
3732 ~z31.background = Color.white; ~z7.background = Color.white;
3733 ~z32.background = Color.white; ~z8.background = Color.white;
3734 ~z33.background = Color.white; ~z9.background = Color.white;
3735 ~z34.background = Color.white; ~z10.background = Color.white;
3736 ~z35.background = Color.green; ~z11.background = Color.green;
3737 ~z36.background = Color.white; ~z12.background = Color.white;
3739 {button.value == 11}{
3740 ~z25.background = Color.white; ~z1.background = Color.white;
3741 ~z26.background = Color.white; ~z2.background = Color.white;
3742 ~z27.background = Color.white; ~z3.background = Color.white;
3743 ~z28.background = Color.white; ~z4.background = Color.white;
3744 ~z29.background = Color.white; ~z5.background = Color.white;
3745 ~z30.background = Color.white; ~z6.background = Color.white;
3746 ~z31.background = Color.white; ~z7.background = Color.white;
3747 ~z32.background = Color.white; ~z8.background = Color.white;
3748 ~z33.background = Color.white; ~z9.background = Color.white;
3749 ~z34.background = Color.white; ~z10.background = Color.white;
3750 ~z35.background = Color.white; ~z11.background = Color.white;
3751 ~z36.background = Color.green; ~z12.background = Color.green;
3757 //misc. keyboard buttons
3759 w.view.keyDownAction = { arg view, char, modifiers, unicode, keycode;
3760 [char, modifiers, unicode, keycode];
3763 if(unicode == ~c_unicode, {
3765 {b.value == 0}{b.valueAction = 1}
3766 {b.value == 1}{b.valueAction = 0};
3770 if(unicode == ~s_unicode, {
3772 {b3.value == 0}{b3.valueAction = 1}
3773 {b3.value == 1}{b3.valueAction = 0};
3776 //pause/unpause synth
3777 if(unicode == ~spacebar_unicode, {
3779 {b4.value == 0}{b4.valueAction = 1}
3780 {b4.value == 1}{b4.valueAction = 0};
3784 if(unicode == ~t_unicode, {
3786 {~ts.value == 0}{~ts.valueAction = 1}
3787 {~ts.value == 1}{~ts.valueAction = 0};
3791 if(unicode == ~r_unicode, {
3793 {~rviewbutton.value == 0}{~rviewbutton.valueAction = 1}
3794 {~rviewbutton.value == 1}{~rviewbutton.valueAction = 0};
3797 //mute/unmute all synths
3798 if(unicode == ~m_unicode, {
3800 {muteall.value == 0}{muteall.valueAction = 1}
3801 {muteall.value == 1}{muteall.valueAction = 0};
3804 //minimize GUI window
3805 if(unicode == ~escape_unicode, {w.minimize;
3807 ~fullscreen_correct = {w.fullScreen};
3808 ~fscview = UserView(w, Rect(0,0, Window.screenBounds.width-100, Window.screenBounds.height;));
3809 ~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;});
3810 ~fscview.mouseEnterAction_{|v, x, y| ~fullscreen_correct.value; ~fullscreen_correct = nil; ~fscview.close; ~fscview = nil; ~fullscreen_button.close; ~fullscreen_button = nil;};
3813 /*if((unicode == ~escape_unicode) and: (info.isClosed == false), {info.close;});
3814 if((unicode == ~escape_unicode) and: (b.isClosed == false), {b.close;});
3816 //minimize GUI window
3817 if((unicode == ~escape_unicode) and: (((b.isClosed == true) and: (info.isClosed == true)) or: ((b.isClosed == true)) or: (info.isClosed == true)), {w.minimize;});
3819 /*if(unicode == ~escape_unicode , {
3820 if((b.isClosed == true) and: (info.isClosed == true), {~min.value});
3821 if(info.isClosed == false, {info.valueAction = 0;});
3822 if(b.isClosed == false, {b.valueAction = 0;});
3826 //keyboard number actions
3829 {unicode == ~one_unicode}{keycodeb.valueAction_(0)}
3830 {unicode == ~two_unicode}{keycodeb.valueAction_(1)}
3831 {unicode == ~three_unicode}{keycodeb.valueAction_(2)}
3832 {unicode == ~four_unicode}{keycodeb.valueAction_(3)}
3833 {unicode == ~five_unicode}{keycodeb.valueAction_(4)}
3834 {unicode == ~six_unicode}{keycodeb.valueAction_(5)}
3835 {unicode == ~seven_unicode}{keycodeb.valueAction_(6)}
3836 {unicode == ~eight_unicode}{keycodeb.valueAction_(7)}
3837 {unicode == ~nine_unicode}{keycodeb.valueAction_(8)}
3838 {unicode == ~ten_unicode}{keycodeb.valueAction_(9)}
3839 {unicode == ~eleven_unicode}{keycodeb.valueAction_(10)}
3840 {unicode == ~twelve_unicode}{keycodeb.valueAction_(11)}
3843 //keyboard up/down arrow actions
3845 {(keycode == ~uparrow_keycode) or: (unicode == ~i_unicode)}{keycodeb.valueAction_(keycodeb.value-1)}
3846 {(keycode == ~downarrow_keycode) or: (unicode == ~k_unicode)}{keycodeb.valueAction_(keycodeb.value+1)};
3849 //set synth frequency using left/right arrow keys or j/l keys
3851 if((~f1 >= ~freqmap.at(127)), {~freqmap.at(127)},
3852 {if((keycodeb.value == 0) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
3853 ~freqmapval1 = ~f1.cpsmidi.round;
3855 {~l1a.isRunning == true}{
3856 ~l1a.set(\dur, ~f1 = ~freqmap.at(~freqmapval1 = ~freqmapval1.value+1));
3857 ~l1b.set(\dur, ~f1);
3858 ~l1c.set(\dur, ~f1/~icd3);
3859 ~l1d.set(\dur, ~f1/~icd3);
3860 ~l1e.set(\dur, ~f1/~icd6);
3861 ~l1f.set(\dur, ~f1/~icd6);
3863 {~l1a1.isRunning == true}{
3864 ~l1a1.set(\dur, ~f1 = ~freqmap.at(~freqmapval1 = ~freqmapval1.value+1));
3865 ~l1b1.set(\dur, ~f1);
3866 ~l1c1.set(\dur, ~f1/~icd3);
3867 ~l1d1.set(\dur, ~f1/~icd3);
3868 ~l1e1.set(\dur, ~f1/~icd6);
3869 ~l1f1.set(\dur, ~f1/~icd6);
3871 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (CompositeView(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (CompositeView(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
3872 ~z25.background = Color.green; ~z1.background = Color.green;
3873 ~z26.background = Color.white; ~z2.background = Color.white;
3874 ~z27.background = Color.white; ~z3.background = Color.white;
3875 ~z28.background = Color.white; ~z4.background = Color.white;
3876 ~z29.background = Color.white; ~z5.background = Color.white;
3877 ~z30.background = Color.white; ~z6.background = Color.white;
3878 ~z31.background = Color.white; ~z7.background = Color.white;
3879 ~z32.background = Color.white; ~z8.background = Color.white;
3880 ~z33.background = Color.white; ~z9.background = Color.white;
3881 ~z34.background = Color.white; ~z10.background = Color.white;
3882 ~z35.background = Color.white; ~z11.background = Color.white;
3883 ~z36.background = Color.white; ~z12.background = Color.white;
3885 if((~f1 <= ~freqmap.at(0)), {~freqmap.at(0)},
3886 {if((keycodeb.value == 0) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
3887 ~freqmapval1 = ~f1.cpsmidi.round;
3889 {~l1a.isRunning == true}{
3890 ~l1a.set(\dur, ~f1 = ~freqmap.at(~freqmapval1 = ~freqmapval1.value-1));
3891 ~l1b.set(\dur, ~f1);
3892 ~l1c.set(\dur, ~f1/~icd3);
3893 ~l1d.set(\dur, ~f1/~icd3);
3894 ~l1e.set(\dur, ~f1/~icd6);
3895 ~l1f.set(\dur, ~f1/~icd6);
3897 {~l1a1.isRunning == true}{
3898 ~l1a1.set(\dur, ~f1 = ~freqmap.at(~freqmapval1 = ~freqmapval1.value-1));
3899 ~l1b1.set(\dur, ~f1);
3900 ~l1c1.set(\dur, ~f1/~icd3);
3901 ~l1d1.set(\dur, ~f1/~icd3);
3902 ~l1e1.set(\dur, ~f1/~icd6);
3903 ~l1f1.set(\dur, ~f1/~icd6);
3905 if((~f1 > ~outmaxa) or: (~f1 < ~outmina), {~z25.close;~z1.close;~z25 = (CompositeView(w, Rect((~f1.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+10, ~nw, 2)).background = Color.white;);}, {~z1.close;~z25.close;~z1 = (CompositeView(w, Rect((~f1.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+10, ~nw, 2)).background = Color.white;);});
3907 ~z25.background = Color.green; ~z1.background = Color.green;
3908 ~z26.background = Color.white; ~z2.background = Color.white;
3909 ~z27.background = Color.white; ~z3.background = Color.white;
3910 ~z28.background = Color.white; ~z4.background = Color.white;
3911 ~z29.background = Color.white; ~z5.background = Color.white;
3912 ~z30.background = Color.white; ~z6.background = Color.white;
3913 ~z31.background = Color.white; ~z7.background = Color.white;
3914 ~z32.background = Color.white; ~z8.background = Color.white;
3915 ~z33.background = Color.white; ~z9.background = Color.white;
3916 ~z34.background = Color.white; ~z10.background = Color.white;
3917 ~z35.background = Color.white; ~z11.background = Color.white;
3918 ~z36.background = Color.white; ~z12.background = Color.white;
3921 if((~f2 >= ~freqmap.at(127)), {~freqmap.at(127)},
3922 {if((keycodeb.value == 1) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
3923 ~freqmapval2 = ~f2.cpsmidi.round;
3925 {~l1a.isRunning == true}{
3926 ~l2a.set(\dur, ~f2 = ~freqmap.at(~freqmapval2 = ~freqmapval2.value+1));
3927 ~l2b.set(\dur, ~f2);
3928 ~l2c.set(\dur, ~f2/~icd3);
3929 ~l2d.set(\dur, ~f2/~icd3);
3930 ~l2e.set(\dur, ~f2/~icd6);
3931 ~l2f.set(\dur, ~f2/~icd6);
3933 {~l1a1.isRunning == true}{
3934 ~l2a1.set(\dur, ~f2 = ~freqmap.at(~freqmapval2 = ~freqmapval2.value+1));
3935 ~l2b1.set(\dur, ~f2);
3936 ~l2c1.set(\dur, ~f2/~icd3);
3937 ~l2d1.set(\dur, ~f2/~icd3);
3938 ~l2e1.set(\dur, ~f2/~icd6);
3939 ~l2f1.set(\dur, ~f2/~icd6);
3941 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (CompositeView(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (CompositeView(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
3942 ~z25.background = Color.white; ~z1.background = Color.white;
3943 ~z26.background = Color.green; ~z2.background = Color.green;
3944 ~z27.background = Color.white; ~z3.background = Color.white;
3945 ~z28.background = Color.white; ~z4.background = Color.white;
3946 ~z29.background = Color.white; ~z5.background = Color.white;
3947 ~z30.background = Color.white; ~z6.background = Color.white;
3948 ~z31.background = Color.white; ~z7.background = Color.white;
3949 ~z32.background = Color.white; ~z8.background = Color.white;
3950 ~z33.background = Color.white; ~z9.background = Color.white;
3951 ~z34.background = Color.white; ~z10.background = Color.white;
3952 ~z35.background = Color.white; ~z11.background = Color.white;
3953 ~z36.background = Color.white; ~z12.background = Color.white;
3955 if((~f2 <= ~freqmap.at(0)), {~freqmap.at(0)},
3956 {if((keycodeb.value == 1) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
3957 ~freqmapval2 = ~f2.cpsmidi.round;
3959 {~l1a.isRunning == true}{
3960 ~l2a.set(\dur, ~f2 = ~freqmap.at(~freqmapval2 = ~freqmapval2.value-1));
3961 ~l2b.set(\dur, ~f2);
3962 ~l2c.set(\dur, ~f2/~icd3);
3963 ~l2d.set(\dur, ~f2/~icd3);
3964 ~l2e.set(\dur, ~f2/~icd6);
3965 ~l2f.set(\dur, ~f2/~icd6);
3967 {~l1a1.isRunning == true}{
3968 ~l2a1.set(\dur, ~f2 = ~freqmap.at(~freqmapval2 = ~freqmapval2.value-1));
3969 ~l2b1.set(\dur, ~f2);
3970 ~l2c1.set(\dur, ~f2/~icd3);
3971 ~l2d1.set(\dur, ~f2/~icd3);
3972 ~l2e1.set(\dur, ~f2/~icd6);
3973 ~l2f1.set(\dur, ~f2/~icd6);
3975 if((~f2 > ~outmaxa) or: (~f2 < ~outmina), {~z26.close;~z2.close;~z26 = (CompositeView(w, Rect((~f2.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+20, ~nw, 2)).background = Color.white;);}, {~z2.close;~z26.close;~z2 = (CompositeView(w, Rect((~f2.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+20, ~nw, 2)).background = Color.white;);});
3977 ~z25.background = Color.white; ~z1.background = Color.white;
3978 ~z26.background = Color.green; ~z2.background = Color.green;
3979 ~z27.background = Color.white; ~z3.background = Color.white;
3980 ~z28.background = Color.white; ~z4.background = Color.white;
3981 ~z29.background = Color.white; ~z5.background = Color.white;
3982 ~z30.background = Color.white; ~z6.background = Color.white;
3983 ~z31.background = Color.white; ~z7.background = Color.white;
3984 ~z32.background = Color.white; ~z8.background = Color.white;
3985 ~z33.background = Color.white; ~z9.background = Color.white;
3986 ~z34.background = Color.white; ~z10.background = Color.white;
3987 ~z35.background = Color.white; ~z11.background = Color.white;
3988 ~z36.background = Color.white; ~z12.background = Color.white;
3991 if((~f3 >= ~freqmap.at(127)), {~freqmap.at(127)},
3992 {if((keycodeb.value == 2) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
3993 ~freqmapval3 = ~f3.cpsmidi.round;
3995 {~l1a.isRunning == true}{
3996 ~l3a.set(\dur, ~f3 = ~freqmap.at(~freqmapval3 = ~freqmapval3.value+1));
3997 ~l3b.set(\dur, ~f3);
3998 ~l3c.set(\dur, ~f3/~icd3);
3999 ~l3d.set(\dur, ~f3/~icd3);
4000 ~l3e.set(\dur, ~f3/~icd6);
4001 ~l3f.set(\dur, ~f3/~icd6);
4003 {~l1a1.isRunning == true}{
4004 ~l3a1.set(\dur, ~f3 = ~freqmap.at(~freqmapval3 = ~freqmapval3.value+1));
4005 ~l3b1.set(\dur, ~f3);
4006 ~l3c1.set(\dur, ~f3/~icd3);
4007 ~l3d1.set(\dur, ~f3/~icd3);
4008 ~l3e1.set(\dur, ~f3/~icd6);
4009 ~l3f1.set(\dur, ~f3/~icd6);
4011 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (CompositeView(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (CompositeView(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
4012 ~z25.background = Color.white; ~z1.background = Color.white;
4013 ~z26.background = Color.white; ~z2.background = Color.white;
4014 ~z27.background = Color.green; ~z3.background = Color.green;
4015 ~z28.background = Color.white; ~z4.background = Color.white;
4016 ~z29.background = Color.white; ~z5.background = Color.white;
4017 ~z30.background = Color.white; ~z6.background = Color.white;
4018 ~z31.background = Color.white; ~z7.background = Color.white;
4019 ~z32.background = Color.white; ~z8.background = Color.white;
4020 ~z33.background = Color.white; ~z9.background = Color.white;
4021 ~z34.background = Color.white; ~z10.background = Color.white;
4022 ~z35.background = Color.white; ~z11.background = Color.white;
4023 ~z36.background = Color.white; ~z12.background = Color.white;
4025 if((~f3 <= ~freqmap.at(0)), {~freqmap.at(0)},
4026 {if((keycodeb.value == 2) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4027 ~freqmapval3 = ~f3.cpsmidi.round;
4029 {~l1a.isRunning == true}{
4030 ~l3a.set(\dur, ~f3 = ~freqmap.at(~freqmapval3 = ~freqmapval3.value-1));
4031 ~l3b.set(\dur, ~f3);
4032 ~l3c.set(\dur, ~f3/~icd3);
4033 ~l3d.set(\dur, ~f3/~icd3);
4034 ~l3e.set(\dur, ~f3/~icd6);
4035 ~l3f.set(\dur, ~f3/~icd6);
4037 {~l1a1.isRunning == true}{
4038 ~l3a1.set(\dur, ~f3 = ~freqmap.at(~freqmapval3 = ~freqmapval3.value-1));
4039 ~l3b1.set(\dur, ~f3);
4040 ~l3c1.set(\dur, ~f3/~icd3);
4041 ~l3d1.set(\dur, ~f3/~icd3);
4042 ~l3e1.set(\dur, ~f3/~icd6);
4043 ~l3f1.set(\dur, ~f3/~icd6);
4045 if((~f3 > ~outmaxa) or: (~f3 < ~outmina), {~z27.close;~z3.close;~z27 = (CompositeView(w, Rect((~f3.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+30, ~nw, 2)).background = Color.white;);}, {~z3.close;~z27.close;~z3 = (CompositeView(w, Rect((~f3.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+30, ~nw, 2)).background = Color.white;);});
4047 ~z25.background = Color.white; ~z1.background = Color.white;
4048 ~z26.background = Color.white; ~z2.background = Color.white;
4049 ~z27.background = Color.green; ~z3.background = Color.green;
4050 ~z28.background = Color.white; ~z4.background = Color.white;
4051 ~z29.background = Color.white; ~z5.background = Color.white;
4052 ~z30.background = Color.white; ~z6.background = Color.white;
4053 ~z31.background = Color.white; ~z7.background = Color.white;
4054 ~z32.background = Color.white; ~z8.background = Color.white;
4055 ~z33.background = Color.white; ~z9.background = Color.white;
4056 ~z34.background = Color.white; ~z10.background = Color.white;
4057 ~z35.background = Color.white; ~z11.background = Color.white;
4058 ~z36.background = Color.white; ~z12.background = Color.white;
4061 if((~f4 >= ~freqmap.at(127)), {~freqmap.at(127)},
4062 {if((keycodeb.value == 3) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4063 ~freqmapval4 = ~f4.cpsmidi.round;
4065 {~l1a.isRunning == true}{
4066 ~l4a.set(\dur, ~f4 = ~freqmap.at(~freqmapval4 = ~freqmapval4.value+1));
4067 ~l4b.set(\dur, ~f4);
4068 ~l4c.set(\dur, ~f4/~icd3);
4069 ~l4d.set(\dur, ~f4/~icd3);
4070 ~l4e.set(\dur, ~f4/~icd6);
4071 ~l4f.set(\dur, ~f4/~icd6);
4073 {~l1a1.isRunning == true}{
4074 ~l4a1.set(\dur, ~f4 = ~freqmap.at(~freqmapval4 = ~freqmapval4.value+1));
4075 ~l4b1.set(\dur, ~f4);
4076 ~l4c1.set(\dur, ~f4/~icd3);
4077 ~l4d1.set(\dur, ~f4/~icd3);
4078 ~l4e1.set(\dur, ~f4/~icd6);
4079 ~l4f1.set(\dur, ~f4/~icd6);
4081 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (CompositeView(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (CompositeView(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
4082 ~z25.background = Color.white; ~z1.background = Color.white;
4083 ~z26.background = Color.white; ~z2.background = Color.white;
4084 ~z27.background = Color.white; ~z3.background = Color.white;
4085 ~z28.background = Color.green; ~z4.background = Color.green;
4086 ~z29.background = Color.white; ~z5.background = Color.white;
4087 ~z30.background = Color.white; ~z6.background = Color.white;
4088 ~z31.background = Color.white; ~z7.background = Color.white;
4089 ~z32.background = Color.white; ~z8.background = Color.white;
4090 ~z33.background = Color.white; ~z9.background = Color.white;
4091 ~z34.background = Color.white; ~z10.background = Color.white;
4092 ~z35.background = Color.white; ~z11.background = Color.white;
4093 ~z36.background = Color.white; ~z12.background = Color.white;
4095 if((~f4 <= ~freqmap.at(0)), {~freqmap.at(0)},
4096 {if((keycodeb.value == 3) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4097 ~freqmapval4 = ~f4.cpsmidi.round;
4099 {~l1a.isRunning == true}{
4100 ~l4a.set(\dur, ~f4 = ~freqmap.at(~freqmapval4 = ~freqmapval4.value-1));
4101 ~l4b.set(\dur, ~f4);
4102 ~l4c.set(\dur, ~f4/~icd3);
4103 ~l4d.set(\dur, ~f4/~icd3);
4104 ~l4e.set(\dur, ~f4/~icd6);
4105 ~l4f.set(\dur, ~f4/~icd6);
4107 {~l1a1.isRunning == true}{
4108 ~l4a1.set(\dur, ~f4 = ~freqmap.at(~freqmapval4 = ~freqmapval4.value-1));
4109 ~l4b1.set(\dur, ~f4);
4110 ~l4c1.set(\dur, ~f4/~icd3);
4111 ~l4d1.set(\dur, ~f4/~icd3);
4112 ~l4e1.set(\dur, ~f4/~icd6);
4113 ~l4f1.set(\dur, ~f4/~icd6);
4115 if((~f4 > ~outmaxa) or: (~f4 < ~outmina), {~z28.close;~z4.close;~z28 = (CompositeView(w, Rect((~f4.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+40, ~nw, 2)).background = Color.white;);}, {~z4.close;~z28.close;~z4 = (CompositeView(w, Rect((~f4.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+40, ~nw, 2)).background = Color.white;);});
4117 ~z25.background = Color.white; ~z1.background = Color.white;
4118 ~z26.background = Color.white; ~z2.background = Color.white;
4119 ~z27.background = Color.white; ~z3.background = Color.white;
4120 ~z28.background = Color.green; ~z4.background = Color.green;
4121 ~z29.background = Color.white; ~z5.background = Color.white;
4122 ~z30.background = Color.white; ~z6.background = Color.white;
4123 ~z31.background = Color.white; ~z7.background = Color.white;
4124 ~z32.background = Color.white; ~z8.background = Color.white;
4125 ~z33.background = Color.white; ~z9.background = Color.white;
4126 ~z34.background = Color.white; ~z10.background = Color.white;
4127 ~z35.background = Color.white; ~z11.background = Color.white;
4128 ~z36.background = Color.white; ~z12.background = Color.white;
4131 if((~f5 >= ~freqmap.at(127)), {~freqmap.at(127)},
4132 {if((keycodeb.value == 4) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4133 ~freqmapval5 = ~f5.cpsmidi.round;
4135 {~l1a.isRunning == true}{
4136 ~l5a.set(\dur, ~f5 = ~freqmap.at(~freqmapval5 = ~freqmapval5.value+1));
4137 ~l5b.set(\dur, ~f5);
4138 ~l5c.set(\dur, ~f5/~icd3);
4139 ~l5d.set(\dur, ~f5/~icd3);
4140 ~l5e.set(\dur, ~f5/~icd6);
4141 ~l5f.set(\dur, ~f5/~icd6);
4143 {~l1a1.isRunning == true}{
4144 ~l5a1.set(\dur, ~f5 = ~freqmap.at(~freqmapval5 = ~freqmapval5.value+1));
4145 ~l5b1.set(\dur, ~f5);
4146 ~l5c1.set(\dur, ~f5/~icd3);
4147 ~l5d1.set(\dur, ~f5/~icd3);
4148 ~l5e1.set(\dur, ~f5/~icd6);
4149 ~l5f1.set(\dur, ~f5/~icd6);
4151 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (CompositeView(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (CompositeView(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
4152 ~z25.background = Color.white; ~z1.background = Color.white;
4153 ~z26.background = Color.white; ~z2.background = Color.white;
4154 ~z27.background = Color.white; ~z3.background = Color.white;
4155 ~z28.background = Color.white; ~z4.background = Color.white;
4156 ~z29.background = Color.green; ~z5.background = Color.green;
4157 ~z30.background = Color.white; ~z6.background = Color.white;
4158 ~z31.background = Color.white; ~z7.background = Color.white;
4159 ~z32.background = Color.white; ~z8.background = Color.white;
4160 ~z33.background = Color.white; ~z9.background = Color.white;
4161 ~z34.background = Color.white; ~z10.background = Color.white;
4162 ~z35.background = Color.white; ~z11.background = Color.white;
4163 ~z36.background = Color.white; ~z12.background = Color.white;
4165 if((~f5 <= ~freqmap.at(0)), {~freqmap.at(0)},
4166 {if((keycodeb.value == 4) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4167 ~freqmapval5 = ~f5.cpsmidi.round;
4169 {~l1a.isRunning == true}{
4170 ~l5a.set(\dur, ~f5 = ~freqmap.at(~freqmapval5 = ~freqmapval5.value-1));
4171 ~l5b.set(\dur, ~f5);
4172 ~l5c.set(\dur, ~f5/~icd3);
4173 ~l5d.set(\dur, ~f5/~icd3);
4174 ~l5e.set(\dur, ~f5/~icd6);
4175 ~l5f.set(\dur, ~f5/~icd6);
4177 {~l1a1.isRunning == true}{
4178 ~l5a1.set(\dur, ~f5 = ~freqmap.at(~freqmapval5 = ~freqmapval5.value-1));
4179 ~l5b1.set(\dur, ~f5);
4180 ~l5c1.set(\dur, ~f5/~icd3);
4181 ~l5d1.set(\dur, ~f5/~icd3);
4182 ~l5e1.set(\dur, ~f5/~icd6);
4183 ~l5f1.set(\dur, ~f5/~icd6);
4185 if((~f5 > ~outmaxa) or: (~f5 < ~outmina), {~z29.close;~z5.close;~z29 = (CompositeView(w, Rect((~f5.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+50, ~nw, 2)).background = Color.white;);}, {~z5.close;~z29.close;~z5 = (CompositeView(w, Rect((~f5.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+50, ~nw, 2)).background = Color.white;);});
4187 ~z25.background = Color.white; ~z1.background = Color.white;
4188 ~z26.background = Color.white; ~z2.background = Color.white;
4189 ~z27.background = Color.white; ~z3.background = Color.white;
4190 ~z28.background = Color.white; ~z4.background = Color.white;
4191 ~z29.background = Color.green; ~z5.background = Color.green;
4192 ~z30.background = Color.white; ~z6.background = Color.white;
4193 ~z31.background = Color.white; ~z7.background = Color.white;
4194 ~z32.background = Color.white; ~z8.background = Color.white;
4195 ~z33.background = Color.white; ~z9.background = Color.white;
4196 ~z34.background = Color.white; ~z10.background = Color.white;
4197 ~z35.background = Color.white; ~z11.background = Color.white;
4198 ~z36.background = Color.white; ~z12.background = Color.white;
4201 if((~f6 >= ~freqmap.at(127)), {~freqmap.at(127)},
4202 {if((keycodeb.value == 5) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4203 ~freqmapval6 = ~f6.cpsmidi.round;
4205 {~l1a.isRunning == true}{
4206 ~l6a.set(\dur, ~f6 = ~freqmap.at(~freqmapval6 = ~freqmapval6.value+1));
4207 ~l6b.set(\dur, ~f6);
4208 ~l6c.set(\dur, ~f6/~icd3);
4209 ~l6d.set(\dur, ~f6/~icd3);
4210 ~l6e.set(\dur, ~f6/~icd6);
4211 ~l6f.set(\dur, ~f6/~icd6);
4213 {~l1a1.isRunning == true}{
4214 ~l6a1.set(\dur, ~f6 = ~freqmap.at(~freqmapval6 = ~freqmapval6.value+1));
4215 ~l6b1.set(\dur, ~f6);
4216 ~l6c1.set(\dur, ~f6/~icd3);
4217 ~l6d1.set(\dur, ~f6/~icd3);
4218 ~l6e1.set(\dur, ~f6/~icd6);
4219 ~l6f1.set(\dur, ~f6/~icd6);
4221 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (CompositeView(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (CompositeView(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
4222 ~z25.background = Color.white; ~z1.background = Color.white;
4223 ~z26.background = Color.white; ~z2.background = Color.white;
4224 ~z27.background = Color.white; ~z3.background = Color.white;
4225 ~z28.background = Color.white; ~z4.background = Color.white;
4226 ~z29.background = Color.white; ~z5.background = Color.white;
4227 ~z30.background = Color.green; ~z6.background = Color.green;
4228 ~z31.background = Color.white; ~z7.background = Color.white;
4229 ~z32.background = Color.white; ~z8.background = Color.white;
4230 ~z33.background = Color.white; ~z9.background = Color.white;
4231 ~z34.background = Color.white; ~z10.background = Color.white;
4232 ~z35.background = Color.white; ~z11.background = Color.white;
4233 ~z36.background = Color.white; ~z12.background = Color.white;
4235 if((~f6 <= ~freqmap.at(0)), {~freqmap.at(0)},
4236 {if((keycodeb.value == 5) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4237 ~freqmapval6 = ~f6.cpsmidi.round;
4239 {~l1a.isRunning == true}{
4240 ~l6a.set(\dur, ~f6 = ~freqmap.at(~freqmapval6 = ~freqmapval6.value-1));
4241 ~l6b.set(\dur, ~f6);
4242 ~l6c.set(\dur, ~f6/~icd3);
4243 ~l6d.set(\dur, ~f6/~icd3);
4244 ~l6e.set(\dur, ~f6/~icd6);
4245 ~l6f.set(\dur, ~f6/~icd6);
4247 {~l1a1.isRunning == true}{
4248 ~l6a1.set(\dur, ~f6 = ~freqmap.at(~freqmapval6 = ~freqmapval6.value-1));
4249 ~l6b1.set(\dur, ~f6);
4250 ~l6c1.set(\dur, ~f6/~icd3);
4251 ~l6d1.set(\dur, ~f6/~icd3);
4252 ~l6e1.set(\dur, ~f6/~icd6);
4253 ~l6f1.set(\dur, ~f6/~icd6);
4255 if((~f6 > ~outmaxa) or: (~f6 < ~outmina), {~z30.close;~z6.close;~z30 = (CompositeView(w, Rect((~f6.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+60, ~nw, 2)).background = Color.white;);}, {~z6.close;~z30.close;~z6 = (CompositeView(w, Rect((~f6.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+60, ~nw, 2)).background = Color.white;);});
4257 ~z25.background = Color.white; ~z1.background = Color.white;
4258 ~z26.background = Color.white; ~z2.background = Color.white;
4259 ~z27.background = Color.white; ~z3.background = Color.white;
4260 ~z28.background = Color.white; ~z4.background = Color.white;
4261 ~z29.background = Color.white; ~z5.background = Color.white;
4262 ~z30.background = Color.green; ~z6.background = Color.green;
4263 ~z31.background = Color.white; ~z7.background = Color.white;
4264 ~z32.background = Color.white; ~z8.background = Color.white;
4265 ~z33.background = Color.white; ~z9.background = Color.white;
4266 ~z34.background = Color.white; ~z10.background = Color.white;
4267 ~z35.background = Color.white; ~z11.background = Color.white;
4268 ~z36.background = Color.white; ~z12.background = Color.white;
4271 if((~f7 >= ~freqmap.at(127)), {~freqmap.at(127)},
4272 {if((keycodeb.value == 6) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4273 ~freqmapval7 = ~f7.cpsmidi.round;
4275 {~l1a.isRunning == true}{
4276 ~l7a.set(\dur, ~f7 = ~freqmap.at(~freqmapval7 = ~freqmapval7.value+1));
4277 ~l7b.set(\dur, ~f7);
4278 ~l7c.set(\dur, ~f7/~icd3);
4279 ~l7d.set(\dur, ~f7/~icd3);
4280 ~l7e.set(\dur, ~f7/~icd6);
4281 ~l7f.set(\dur, ~f7/~icd6);
4283 {~l1a1.isRunning == true}{
4284 ~l7a1.set(\dur, ~f7 = ~freqmap.at(~freqmapval7 = ~freqmapval7.value+1));
4285 ~l7b1.set(\dur, ~f7);
4286 ~l7c1.set(\dur, ~f7/~icd3);
4287 ~l7d1.set(\dur, ~f7/~icd3);
4288 ~l7e1.set(\dur, ~f7/~icd6);
4289 ~l7f1.set(\dur, ~f7/~icd6);
4291 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (CompositeView(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (CompositeView(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
4292 ~z25.background = Color.white; ~z1.background = Color.white;
4293 ~z26.background = Color.white; ~z2.background = Color.white;
4294 ~z27.background = Color.white; ~z3.background = Color.white;
4295 ~z28.background = Color.white; ~z4.background = Color.white;
4296 ~z29.background = Color.white; ~z5.background = Color.white;
4297 ~z30.background = Color.white; ~z6.background = Color.white;
4298 ~z31.background = Color.green; ~z7.background = Color.green;
4299 ~z32.background = Color.white; ~z8.background = Color.white;
4300 ~z33.background = Color.white; ~z9.background = Color.white;
4301 ~z34.background = Color.white; ~z10.background = Color.white;
4302 ~z35.background = Color.white; ~z11.background = Color.white;
4303 ~z36.background = Color.white; ~z12.background = Color.white;
4305 if((~f7 <= ~freqmap.at(0)), {~freqmap.at(0)},
4306 {if((keycodeb.value == 6) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4307 ~freqmapval7 = ~f7.cpsmidi.round;
4309 {~l1a.isRunning == true}{
4310 ~l7a.set(\dur, ~f7 = ~freqmap.at(~freqmapval7 = ~freqmapval7.value-1));
4311 ~l7b.set(\dur, ~f7);
4312 ~l7c.set(\dur, ~f7/~icd3);
4313 ~l7d.set(\dur, ~f7/~icd3);
4314 ~l7e.set(\dur, ~f7/~icd6);
4315 ~l7f.set(\dur, ~f7/~icd6);
4317 {~l1a1.isRunning == true}{
4318 ~l7a1.set(\dur, ~f7 = ~freqmap.at(~freqmapval7 = ~freqmapval7.value-1));
4319 ~l7b1.set(\dur, ~f7);
4320 ~l7c1.set(\dur, ~f7/~icd3);
4321 ~l7d1.set(\dur, ~f7/~icd3);
4322 ~l7e1.set(\dur, ~f7/~icd6);
4323 ~l7f1.set(\dur, ~f7/~icd6);
4325 if((~f7 > ~outmaxa) or: (~f7 < ~outmina), {~z31.close;~z7.close;~z31 = (CompositeView(w, Rect((~f7.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+70, ~nw, 2)).background = Color.white;);}, {~z7.close;~z31.close;~z7 = (CompositeView(w, Rect((~f7.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+70, ~nw, 2)).background = Color.white;);});
4327 ~z25.background = Color.white; ~z1.background = Color.white;
4328 ~z26.background = Color.white; ~z2.background = Color.white;
4329 ~z27.background = Color.white; ~z3.background = Color.white;
4330 ~z28.background = Color.white; ~z4.background = Color.white;
4331 ~z29.background = Color.white; ~z5.background = Color.white;
4332 ~z30.background = Color.white; ~z6.background = Color.white;
4333 ~z31.background = Color.green; ~z7.background = Color.green;
4334 ~z32.background = Color.white; ~z8.background = Color.white;
4335 ~z33.background = Color.white; ~z9.background = Color.white;
4336 ~z34.background = Color.white; ~z10.background = Color.white;
4337 ~z35.background = Color.white; ~z11.background = Color.white;
4338 ~z36.background = Color.white; ~z12.background = Color.white;
4341 if((~f8 >= ~freqmap.at(127)), {~freqmap.at(127)},
4342 {if((keycodeb.value == 7) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4343 ~freqmapval8 = ~f8.cpsmidi.round;
4345 {~l1a.isRunning == true}{
4346 ~l8a.set(\dur, ~f8 = ~freqmap.at(~freqmapval8 = ~freqmapval8.value+1));
4347 ~l8b.set(\dur, ~f8);
4348 ~l8c.set(\dur, ~f8/~icd3);
4349 ~l8d.set(\dur, ~f8/~icd3);
4350 ~l8e.set(\dur, ~f8/~icd6);
4351 ~l8f.set(\dur, ~f8/~icd6);
4353 {~l1a1.isRunning == true}{
4354 ~l8a1.set(\dur, ~f8 = ~freqmap.at(~freqmapval8 = ~freqmapval8.value+1));
4355 ~l8b1.set(\dur, ~f8);
4356 ~l8c1.set(\dur, ~f8/~icd3);
4357 ~l8d1.set(\dur, ~f8/~icd3);
4358 ~l8e1.set(\dur, ~f8/~icd6);
4359 ~l8f1.set(\dur, ~f8/~icd6);
4361 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (CompositeView(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (CompositeView(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
4362 ~z25.background = Color.white; ~z1.background = Color.white;
4363 ~z26.background = Color.white; ~z2.background = Color.white;
4364 ~z27.background = Color.white; ~z3.background = Color.white;
4365 ~z28.background = Color.white; ~z4.background = Color.white;
4366 ~z29.background = Color.white; ~z5.background = Color.white;
4367 ~z30.background = Color.white; ~z6.background = Color.white;
4368 ~z31.background = Color.white; ~z7.background = Color.white;
4369 ~z32.background = Color.green; ~z8.background = Color.green;
4370 ~z33.background = Color.white; ~z9.background = Color.white;
4371 ~z34.background = Color.white; ~z10.background = Color.white;
4372 ~z35.background = Color.white; ~z11.background = Color.white;
4373 ~z36.background = Color.white; ~z12.background = Color.white;
4375 if((~f8 <= ~freqmap.at(0)), {~freqmap.at(0)},
4376 {if((keycodeb.value == 7) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4377 ~freqmapval8 = ~f8.cpsmidi.round;
4379 {~l1a.isRunning == true}{
4380 ~l8a.set(\dur, ~f8 = ~freqmap.at(~freqmapval8 = ~freqmapval8.value-1));
4381 ~l8b.set(\dur, ~f8);
4382 ~l8c.set(\dur, ~f8/~icd3);
4383 ~l8d.set(\dur, ~f8/~icd3);
4384 ~l8e.set(\dur, ~f8/~icd6);
4385 ~l8f.set(\dur, ~f8/~icd6);
4387 {~l1a1.isRunning == true}{
4388 ~l8a1.set(\dur, ~f8 = ~freqmap.at(~freqmapval8 = ~freqmapval8.value-1));
4389 ~l8b1.set(\dur, ~f8);
4390 ~l8c1.set(\dur, ~f8/~icd3);
4391 ~l8d1.set(\dur, ~f8/~icd3);
4392 ~l8e1.set(\dur, ~f8/~icd6);
4393 ~l8f1.set(\dur, ~f8/~icd6);
4395 if((~f8 > ~outmaxa) or: (~f8 < ~outmina), {~z32.close;~z8.close;~z32 = (CompositeView(w, Rect((~f8.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+80, ~nw, 2)).background = Color.white;);}, {~z8.close;~z32.close;~z8 = (CompositeView(w, Rect((~f8.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+80, ~nw, 2)).background = Color.white;);});
4397 ~z25.background = Color.white; ~z1.background = Color.white;
4398 ~z26.background = Color.white; ~z2.background = Color.white;
4399 ~z27.background = Color.white; ~z3.background = Color.white;
4400 ~z28.background = Color.white; ~z4.background = Color.white;
4401 ~z29.background = Color.white; ~z5.background = Color.white;
4402 ~z30.background = Color.white; ~z6.background = Color.white;
4403 ~z31.background = Color.white; ~z7.background = Color.white;
4404 ~z32.background = Color.green; ~z8.background = Color.green;
4405 ~z33.background = Color.white; ~z9.background = Color.white;
4406 ~z34.background = Color.white; ~z10.background = Color.white;
4407 ~z35.background = Color.white; ~z11.background = Color.white;
4408 ~z36.background = Color.white; ~z12.background = Color.white;
4411 if((~f9 >= ~freqmap.at(127)), {~freqmap.at(127)},
4412 {if((keycodeb.value == 8) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4413 ~freqmapval9 = ~f9.cpsmidi.round;
4415 {~l1a.isRunning == true}{
4416 ~l9a.set(\dur, ~f9 = ~freqmap.at(~freqmapval9 = ~freqmapval9.value+1));
4417 ~l9b.set(\dur, ~f9);
4418 ~l9c.set(\dur, ~f9/~icd3);
4419 ~l9d.set(\dur, ~f9/~icd3);
4420 ~l9e.set(\dur, ~f9/~icd6);
4421 ~l9f.set(\dur, ~f9/~icd6);
4423 {~l1a1.isRunning == true}{
4424 ~l9a1.set(\dur, ~f9 = ~freqmap.at(~freqmapval9 = ~freqmapval9.value+1));
4425 ~l9b1.set(\dur, ~f9);
4426 ~l9c1.set(\dur, ~f9/~icd3);
4427 ~l9d1.set(\dur, ~f9/~icd3);
4428 ~l9e1.set(\dur, ~f9/~icd6);
4429 ~l9f1.set(\dur, ~f9/~icd6);
4431 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (CompositeView(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (CompositeView(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
4432 ~z25.background = Color.white; ~z1.background = Color.white;
4433 ~z26.background = Color.white; ~z2.background = Color.white;
4434 ~z27.background = Color.white; ~z3.background = Color.white;
4435 ~z28.background = Color.white; ~z4.background = Color.white;
4436 ~z29.background = Color.white; ~z5.background = Color.white;
4437 ~z30.background = Color.white; ~z6.background = Color.white;
4438 ~z31.background = Color.white; ~z7.background = Color.white;
4439 ~z32.background = Color.white; ~z8.background = Color.white;
4440 ~z33.background = Color.green; ~z9.background = Color.green;
4441 ~z34.background = Color.white; ~z10.background = Color.white;
4442 ~z35.background = Color.white; ~z11.background = Color.white;
4443 ~z36.background = Color.white; ~z12.background = Color.white;
4445 if((~f9 <= ~freqmap.at(0)), {~freqmap.at(0)},
4446 {if((keycodeb.value == 8) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4447 ~freqmapval9 = ~f9.cpsmidi.round;
4449 {~l1a.isRunning == true}{
4450 ~l9a.set(\dur, ~f9 = ~freqmap.at(~freqmapval9 = ~freqmapval9.value-1));
4451 ~l9b.set(\dur, ~f9);
4452 ~l9c.set(\dur, ~f9/~icd3);
4453 ~l9d.set(\dur, ~f9/~icd3);
4454 ~l9e.set(\dur, ~f9/~icd6);
4455 ~l9f.set(\dur, ~f9/~icd6);
4457 {~l1a1.isRunning == true}{
4458 ~l9a1.set(\dur, ~f9 = ~freqmap.at(~freqmapval9 = ~freqmapval9.value-1));
4459 ~l9b1.set(\dur, ~f9);
4460 ~l9c1.set(\dur, ~f9/~icd3);
4461 ~l9d1.set(\dur, ~f9/~icd3);
4462 ~l9e1.set(\dur, ~f9/~icd6);
4463 ~l9f1.set(\dur, ~f9/~icd6);
4465 if((~f9 > ~outmaxa) or: (~f9 < ~outmina), {~z33.close;~z9.close;~z33 = (CompositeView(w, Rect((~f9.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+90, ~nw, 2)).background = Color.white;);}, {~z9.close;~z33.close;~z9 = (CompositeView(w, Rect((~f9.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+90, ~nw, 2)).background = Color.white;);});
4467 ~z25.background = Color.white; ~z1.background = Color.white;
4468 ~z26.background = Color.white; ~z2.background = Color.white;
4469 ~z27.background = Color.white; ~z3.background = Color.white;
4470 ~z28.background = Color.white; ~z4.background = Color.white;
4471 ~z29.background = Color.white; ~z5.background = Color.white;
4472 ~z30.background = Color.white; ~z6.background = Color.white;
4473 ~z31.background = Color.white; ~z7.background = Color.white;
4474 ~z32.background = Color.white; ~z8.background = Color.white;
4475 ~z33.background = Color.green; ~z9.background = Color.green;
4476 ~z34.background = Color.white; ~z10.background = Color.white;
4477 ~z35.background = Color.white; ~z11.background = Color.white;
4478 ~z36.background = Color.white; ~z12.background = Color.white;
4481 if((~f10 >= ~freqmap.at(127)), {~freqmap.at(127)},
4482 {if((keycodeb.value == 9) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4483 ~freqmapval10 = ~f10.cpsmidi.round;
4485 {~l1a.isRunning == true}{
4486 ~l10a.set(\dur, ~f10 = ~freqmap.at(~freqmapval10 = ~freqmapval10.value+1));
4487 ~l10b.set(\dur, ~f10);
4488 ~l10c.set(\dur, ~f10/~icd3);
4489 ~l10d.set(\dur, ~f10/~icd3);
4490 ~l10e.set(\dur, ~f10/~icd6);
4491 ~l10f.set(\dur, ~f10/~icd6);
4493 {~l1a1.isRunning == true}{
4494 ~l10a1.set(\dur, ~f10 = ~freqmap.at(~freqmapval10 = ~freqmapval10.value+1));
4495 ~l10b1.set(\dur, ~f10);
4496 ~l10c1.set(\dur, ~f10/~icd3);
4497 ~l10d1.set(\dur, ~f10/~icd3);
4498 ~l10e1.set(\dur, ~f10/~icd6);
4499 ~l10f1.set(\dur, ~f10/~icd6);
4501 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (CompositeView(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (CompositeView(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
4502 ~z25.background = Color.white; ~z1.background = Color.white;
4503 ~z26.background = Color.white; ~z2.background = Color.white;
4504 ~z27.background = Color.white; ~z3.background = Color.white;
4505 ~z28.background = Color.white; ~z4.background = Color.white;
4506 ~z29.background = Color.white; ~z5.background = Color.white;
4507 ~z30.background = Color.white; ~z6.background = Color.white;
4508 ~z31.background = Color.white; ~z7.background = Color.white;
4509 ~z32.background = Color.white; ~z8.background = Color.white;
4510 ~z33.background = Color.white; ~z9.background = Color.white;
4511 ~z34.background = Color.green; ~z10.background = Color.green;
4512 ~z35.background = Color.white; ~z11.background = Color.white;
4513 ~z36.background = Color.white; ~z12.background = Color.white;
4515 if((~f10 <= ~freqmap.at(0)), {~freqmap.at(0)},
4516 {if((keycodeb.value == 9) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4517 ~freqmapval10 = ~f10.cpsmidi.round;
4519 {~l1a.isRunning == true}{
4520 ~l10a.set(\dur, ~f10 = ~freqmap.at(~freqmapval10 = ~freqmapval10.value-1));
4521 ~l10b.set(\dur, ~f10);
4522 ~l10c.set(\dur, ~f10/~icd3);
4523 ~l10d.set(\dur, ~f10/~icd3);
4524 ~l10e.set(\dur, ~f10/~icd6);
4525 ~l10f.set(\dur, ~f10/~icd6);
4527 {~l1a1.isRunning == true}{
4528 ~l10a1.set(\dur, ~f10 = ~freqmap.at(~freqmapval10 = ~freqmapval10.value-1));
4529 ~l10b1.set(\dur, ~f10);
4530 ~l10c1.set(\dur, ~f10/~icd3);
4531 ~l10d1.set(\dur, ~f10/~icd3);
4532 ~l10e1.set(\dur, ~f10/~icd6);
4533 ~l10f1.set(\dur, ~f10/~icd6);
4535 if((~f10 > ~outmaxa) or: (~f10 < ~outmina), {~z34.close;~z10.close;~z34 = (CompositeView(w, Rect((~f10.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+100, ~nw, 2)).background = Color.white;);}, {~z10.close;~z34.close;~z10 = (CompositeView(w, Rect((~f10.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+100, ~nw, 2)).background = Color.white;);});
4537 ~z25.background = Color.white; ~z1.background = Color.white;
4538 ~z26.background = Color.white; ~z2.background = Color.white;
4539 ~z27.background = Color.white; ~z3.background = Color.white;
4540 ~z28.background = Color.white; ~z4.background = Color.white;
4541 ~z29.background = Color.white; ~z5.background = Color.white;
4542 ~z30.background = Color.white; ~z6.background = Color.white;
4543 ~z31.background = Color.white; ~z7.background = Color.white;
4544 ~z32.background = Color.white; ~z8.background = Color.white;
4545 ~z33.background = Color.white; ~z9.background = Color.white;
4546 ~z34.background = Color.green; ~z10.background = Color.green;
4547 ~z35.background = Color.white; ~z11.background = Color.white;
4548 ~z36.background = Color.white; ~z12.background = Color.white;
4551 if((~f11 >= ~freqmap.at(127)), {~freqmap.at(127)},
4552 {if((keycodeb.value == 10) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4553 ~freqmapval11 = ~f11.cpsmidi.round;
4555 {~l1a.isRunning == true}{
4556 ~l11a.set(\dur, ~f11 = ~freqmap.at(~freqmapval11 = ~freqmapval11.value+1));
4557 ~l11b.set(\dur, ~f11);
4558 ~l11c.set(\dur, ~f11/~icd3);
4559 ~l11d.set(\dur, ~f11/~icd3);
4560 ~l11e.set(\dur, ~f11/~icd6);
4561 ~l11f.set(\dur, ~f11/~icd6);
4563 {~l1a1.isRunning == true}{
4564 ~l11a1.set(\dur, ~f11 = ~freqmap.at(~freqmapval11 = ~freqmapval11.value+1));
4565 ~l11b1.set(\dur, ~f11);
4566 ~l11c1.set(\dur, ~f11/~icd3);
4567 ~l11d1.set(\dur, ~f11/~icd3);
4568 ~l11e1.set(\dur, ~f11/~icd6);
4569 ~l11f1.set(\dur, ~f11/~icd6);
4571 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (CompositeView(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (CompositeView(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
4572 ~z25.background = Color.white; ~z1.background = Color.white;
4573 ~z26.background = Color.white; ~z2.background = Color.white;
4574 ~z27.background = Color.white; ~z3.background = Color.white;
4575 ~z28.background = Color.white; ~z4.background = Color.white;
4576 ~z29.background = Color.white; ~z5.background = Color.white;
4577 ~z30.background = Color.white; ~z6.background = Color.white;
4578 ~z31.background = Color.white; ~z7.background = Color.white;
4579 ~z32.background = Color.white; ~z8.background = Color.white;
4580 ~z33.background = Color.white; ~z9.background = Color.white;
4581 ~z34.background = Color.white; ~z10.background = Color.white;
4582 ~z35.background = Color.green; ~z11.background = Color.green;
4583 ~z36.background = Color.white; ~z12.background = Color.white;
4585 if((~f11 <= ~freqmap.at(0)), {~freqmap.at(0)},
4586 {if((keycodeb.value == 10) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4587 ~freqmapval11 = ~f11.cpsmidi.round;
4589 {~l1a.isRunning == true}{
4590 ~l11a.set(\dur, ~f11 = ~freqmap.at(~freqmapval11 = ~freqmapval11.value-1));
4591 ~l11b.set(\dur, ~f11);
4592 ~l11c.set(\dur, ~f11/~icd3);
4593 ~l11d.set(\dur, ~f11/~icd3);
4594 ~l11e.set(\dur, ~f11/~icd6);
4595 ~l11f.set(\dur, ~f11/~icd6);
4597 {~l1a1.isRunning == true}{
4598 ~l11a1.set(\dur, ~f11 = ~freqmap.at(~freqmapval11 = ~freqmapval11.value-1));
4599 ~l11b1.set(\dur, ~f11);
4600 ~l11c1.set(\dur, ~f11/~icd3);
4601 ~l11d1.set(\dur, ~f11/~icd3);
4602 ~l11e1.set(\dur, ~f11/~icd6);
4603 ~l11f1.set(\dur, ~f11/~icd6);
4605 if((~f11 > ~outmaxa) or: (~f11 < ~outmina), {~z35.close;~z11.close;~z35 = (CompositeView(w, Rect((~f11.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+110, ~nw, 2)).background = Color.white;);}, {~z11.close;~z35.close;~z11 = (CompositeView(w, Rect((~f11.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+110, ~nw, 2)).background = Color.white;);});
4607 ~z25.background = Color.white; ~z1.background = Color.white;
4608 ~z26.background = Color.white; ~z2.background = Color.white;
4609 ~z27.background = Color.white; ~z3.background = Color.white;
4610 ~z28.background = Color.white; ~z4.background = Color.white;
4611 ~z29.background = Color.white; ~z5.background = Color.white;
4612 ~z30.background = Color.white; ~z6.background = Color.white;
4613 ~z31.background = Color.white; ~z7.background = Color.white;
4614 ~z32.background = Color.white; ~z8.background = Color.white;
4615 ~z33.background = Color.white; ~z9.background = Color.white;
4616 ~z34.background = Color.white; ~z10.background = Color.white;
4617 ~z35.background = Color.green; ~z11.background = Color.green;
4618 ~z36.background = Color.white; ~z12.background = Color.white;
4621 if((~f12 >= ~freqmap.at(127)), {~freqmap.at(127)},
4622 {if((keycodeb.value == 11) and: (((keycode == ~rightarrow_keycode) or: (keycode == ~rightarrow_keycode1)) or: (unicode == ~l_unicode)), {
4623 ~freqmapval12 = ~f12.cpsmidi.round;
4625 {~l1a.isRunning == true}{
4626 ~l12a.set(\dur, ~f12 = ~freqmap.at(~freqmapval12 = ~freqmapval12.value+1));
4627 ~l12b.set(\dur, ~f12);
4628 ~l12c.set(\dur, ~f12/~icd3);
4629 ~l12d.set(\dur, ~f12/~icd3);
4630 ~l12e.set(\dur, ~f12/~icd6);
4631 ~l12f.set(\dur, ~f12/~icd6);
4633 {~l1a1.isRunning == true}{
4634 ~l12a1.set(\dur, ~f12 = ~freqmap.at(~freqmapval12 = ~freqmapval12.value+1));
4635 ~l12b1.set(\dur, ~f12);
4636 ~l12c1.set(\dur, ~f12/~icd3);
4637 ~l12d1.set(\dur, ~f12/~icd3);
4638 ~l12e1.set(\dur, ~f12/~icd6);
4639 ~l12f1.set(\dur, ~f12/~icd6);
4641 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (CompositeView(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (CompositeView(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
4642 ~z25.background = Color.white; ~z1.background = Color.white;
4643 ~z26.background = Color.white; ~z2.background = Color.white;
4644 ~z27.background = Color.white; ~z3.background = Color.white;
4645 ~z28.background = Color.white; ~z4.background = Color.white;
4646 ~z29.background = Color.white; ~z5.background = Color.white;
4647 ~z30.background = Color.white; ~z6.background = Color.white;
4648 ~z31.background = Color.white; ~z7.background = Color.white;
4649 ~z32.background = Color.white; ~z8.background = Color.white;
4650 ~z33.background = Color.white; ~z9.background = Color.white;
4651 ~z34.background = Color.white; ~z10.background = Color.white;
4652 ~z35.background = Color.white; ~z11.background = Color.white;
4653 ~z36.background = Color.green; ~z12.background = Color.green;
4655 if((~f12 <= ~freqmap.at(0)), {~freqmap.at(0)},
4656 {if((keycodeb.value == 11) and: (((keycode == ~leftarrow_keycode) or: (keycode == ~leftarrow_keycode1)) or: (unicode == ~j_unicode)), {
4657 ~freqmapval12 = ~f12.cpsmidi.round;
4659 {~l1a.isRunning == true}{
4660 ~l12a.set(\dur, ~f12 = ~freqmap.at(~freqmapval12 = ~freqmapval12.value-1));
4661 ~l12b.set(\dur, ~f12);
4662 ~l12c.set(\dur, ~f12/~icd3);
4663 ~l12d.set(\dur, ~f12/~icd3);
4664 ~l12e.set(\dur, ~f12/~icd6);
4665 ~l12f.set(\dur, ~f12/~icd6);
4667 {~l1a1.isRunning == true}{
4668 ~l12a1.set(\dur, ~f12 = ~freqmap.at(~freqmapval12 = ~freqmapval12.value-1));
4669 ~l12b1.set(\dur, ~f12);
4670 ~l12c1.set(\dur, ~f12/~icd3);
4671 ~l12d1.set(\dur, ~f12/~icd3);
4672 ~l12e1.set(\dur, ~f12/~icd6);
4673 ~l12f1.set(\dur, ~f12/~icd6);
4675 if((~f12 > ~outmaxa) or: (~f12 < ~outmina), {~z36.close;~z12.close;~z36 = (CompositeView(w, Rect((~f12.explin(~outminb,~outmaxb,0,Window.screenBounds.width)), ~dc1+120, ~nw, 2)).background = Color.white;);}, {~z12.close;~z36.close;~z12 = (CompositeView(w, Rect((~f12.explin(~outmina,~outmaxa,0,Window.screenBounds.width)), ~dc2+120, ~nw, 2)).background = Color.white;);});
4677 ~z25.background = Color.white; ~z1.background = Color.white;
4678 ~z26.background = Color.white; ~z2.background = Color.white;
4679 ~z27.background = Color.white; ~z3.background = Color.white;
4680 ~z28.background = Color.white; ~z4.background = Color.white;
4681 ~z29.background = Color.white; ~z5.background = Color.white;
4682 ~z30.background = Color.white; ~z6.background = Color.white;
4683 ~z31.background = Color.white; ~z7.background = Color.white;
4684 ~z32.background = Color.white; ~z8.background = Color.white;
4685 ~z33.background = Color.white; ~z9.background = Color.white;
4686 ~z34.background = Color.white; ~z10.background = Color.white;
4687 ~z35.background = Color.white; ~z11.background = Color.white;
4688 ~z36.background = Color.green; ~z12.background = Color.green;
4696 //if routine function values are nil
4698 if(~rslot1a == nil, {~rslot1a = ~bplaceo1;}); if(~rslot1b == nil, {~rslot1b = ~bplacef1;});
4699 if(~rslot2 == nil, {~rslot2 = ~bplacef2;});
4700 if(~rslot3 == nil, {~rslot3 = ~bplacef3;});
4701 if(~rslot4 == nil, {~rslot4 = ~bplacef4;});
4702 if(~rslot5 == nil, {~rslot5 = ~bplacef5;});
4703 if(~rslot6 == nil, {~rslot6 = ~bplacef6;});
4704 if(~rslot7 == nil, {~rslot7 = ~bplacef7;});
4705 if(~rslot8 == nil, {~rslot8 = ~bplacef8;});
4706 if(~rtimeall == nil, {~rtimeall = 4;});
4707 if(~rtime1 == nil, {~rtime1 = 4;});
4708 if(~rtime2 == nil, {~rtime2 = 4;});
4709 if(~rtime3 == nil, {~rtime3 = 4;});
4710 if(~rtime4 == nil, {~rtime4 = 4;});
4711 if(~rtime5 == nil, {~rtime5 = 4;});
4712 if(~rtime6 == nil, {~rtime6 = 4;});
4713 if(~rtime7 == nil, {~rtime7 = 4;});
4714 if(~rtime8 == nil, {~rtime8 = 4;});
4715 if(~rdoall == nil, {~rdoall = 1;});
4716 if(~rdo1a == nil, {~rdo1a = "o1";}); if(~rdo1b == nil, {~rdo1b = "f1";});
4717 if(~rdo2 == nil, {~rdo2 = "f2";});
4718 if(~rdo3 == nil, {~rdo3 = "f3";});
4719 if(~rdo4 == nil, {~rdo4 = "f4";});
4720 if(~rdo5 == nil, {~rdo5 = "f5";});
4721 if(~rdo6 == nil, {~rdo6 = "f6";});
4722 if(~rdo7 == nil, {~rdo7 = "f7";});
4723 if(~rdo8 == nil, {~rdo8 = "f8";});
4726 //misc. routine button functions (see below)
4729 if(~si1a.value == "o1", {~rslot1a = ~bplaceo1; ~rdo1a = ~si1a.value;});
4730 if(~si1a.value == "f1", {~rslot1a = ~bplacef1; ~rdo1a = ~si1a.value;});
4731 if(~si1a.value == "s1", {~rslot1a = ~bplaces1; ~rdo1a = ~si1a.value;});
4732 if(~si1a.value == "o2", {~rslot1a = ~bplaceo2; ~rdo1a = ~si1a.value;});
4733 if(~si1a.value == "f2", {~rslot1a = ~bplacef2; ~rdo1a = ~si1a.value;});
4734 if(~si1a.value == "s2", {~rslot1a = ~bplaces2; ~rdo1a = ~si1a.value;});
4735 if(~si1a.value == "o3", {~rslot1a = ~bplaceo3; ~rdo1a = ~si1a.value;});
4736 if(~si1a.value == "f3", {~rslot1a = ~bplacef3; ~rdo1a = ~si1a.value;});
4737 if(~si1a.value == "s3", {~rslot1a = ~bplaces3; ~rdo1a = ~si1a.value;});
4738 if(~si1a.value == "o4", {~rslot1a = ~bplaceo4; ~rdo1a = ~si1a.value;});
4739 if(~si1a.value == "f4", {~rslot1a = ~bplacef4; ~rdo1a = ~si1a.value;});
4740 if(~si1a.value == "s4", {~rslot1a = ~bplaces4; ~rdo1a = ~si1a.value;});
4741 if(~si1a.value == "o5", {~rslot1a = ~bplaceo5; ~rdo1a = ~si1a.value;});
4742 if(~si1a.value == "f5", {~rslot1a = ~bplacef5; ~rdo1a = ~si1a.value;});
4743 if(~si1a.value == "s5", {~rslot1a = ~bplaces5; ~rdo1a = ~si1a.value;});
4744 if(~si1a.value == "o6", {~rslot1a = ~bplaceo6; ~rdo1a = ~si1a.value;});
4745 if(~si1a.value == "f6", {~rslot1a = ~bplacef6; ~rdo1a = ~si1a.value;});
4746 if(~si1a.value == "s6", {~rslot1a = ~bplaces6; ~rdo1a = ~si1a.value;});
4747 if(~si1a.value == "o7", {~rslot1a = ~bplaceo7; ~rdo1a = ~si1a.value;});
4748 if(~si1a.value == "f7", {~rslot1a = ~bplacef7; ~rdo1a = ~si1a.value;});
4749 if(~si1a.value == "s7", {~rslot1a = ~bplaces7; ~rdo1a = ~si1a.value;});
4750 if(~si1a.value == "o8", {~rslot1a = ~bplaceo8; ~rdo1a = ~si1a.value;});
4751 if(~si1a.value == "f8", {~rslot1a = ~bplacef8; ~rdo1a = ~si1a.value;});
4752 if(~si1a.value == "s8", {~rslot1a = ~bplaces8; ~rdo1a = ~si1a.value;});
4755 if(~si1b.value == "o1", {~rslot1b = ~bplaceo1; ~rdo1b = ~si1b.value;});
4756 if(~si1b.value == "f1", {~rslot1b = ~bplacef1; ~rdo1b = ~si1b.value;});
4757 if(~si1b.value == "s1", {~rslot1b = ~bplaces1; ~rdo1b = ~si1b.value;});
4758 if(~si1b.value == "o2", {~rslot1b = ~bplaceo2; ~rdo1b = ~si1b.value;});
4759 if(~si1b.value == "f2", {~rslot1b = ~bplacef2; ~rdo1b = ~si1b.value;});
4760 if(~si1b.value == "s2", {~rslot1b = ~bplaces2; ~rdo1b = ~si1b.value;});
4761 if(~si1b.value == "o3", {~rslot1b = ~bplaceo3; ~rdo1b = ~si1b.value;});
4762 if(~si1b.value == "f3", {~rslot1b = ~bplacef3; ~rdo1b = ~si1b.value;});
4763 if(~si1b.value == "s3", {~rslot1b = ~bplaces3; ~rdo1b = ~si1b.value;});
4764 if(~si1b.value == "o4", {~rslot1b = ~bplaceo4; ~rdo1b = ~si1b.value;});
4765 if(~si1b.value == "f4", {~rslot1b = ~bplacef4; ~rdo1b = ~si1b.value;});
4766 if(~si1b.value == "s4", {~rslot1b = ~bplaces4; ~rdo1b = ~si1b.value;});
4767 if(~si1b.value == "o5", {~rslot1b = ~bplaceo5; ~rdo1b = ~si1b.value;});
4768 if(~si1b.value == "f5", {~rslot1b = ~bplacef5; ~rdo1b = ~si1b.value;});
4769 if(~si1b.value == "s5", {~rslot1b = ~bplaces5; ~rdo1b = ~si1b.value;});
4770 if(~si1b.value == "o6", {~rslot1b = ~bplaceo6; ~rdo1b = ~si1b.value;});
4771 if(~si1b.value == "f6", {~rslot1b = ~bplacef6; ~rdo1b = ~si1b.value;});
4772 if(~si1b.value == "s6", {~rslot1b = ~bplaces6; ~rdo1b = ~si1b.value;});
4773 if(~si1b.value == "o7", {~rslot1b = ~bplaceo7; ~rdo1b = ~si1b.value;});
4774 if(~si1b.value == "f7", {~rslot1b = ~bplacef7; ~rdo1b = ~si1b.value;});
4775 if(~si1b.value == "s7", {~rslot1b = ~bplaces7; ~rdo1b = ~si1b.value;});
4776 if(~si1b.value == "o8", {~rslot1b = ~bplaceo8; ~rdo1b = ~si1b.value;});
4777 if(~si1b.value == "f8", {~rslot1b = ~bplacef8; ~rdo1b = ~si1b.value;});
4778 if(~si1b.value == "s8", {~rslot1b = ~bplaces8; ~rdo1b = ~si1b.value;});
4781 if(~si2.value == "o1", {~rslot2 = ~bplaceo1; ~rdo2 = ~si2.value;});
4782 if(~si2.value == "f1", {~rslot2 = ~bplacef1; ~rdo2 = ~si2.value;});
4783 if(~si2.value == "s1", {~rslot2 = ~bplaces1; ~rdo2 = ~si2.value;});
4784 if(~si2.value == "o2", {~rslot2 = ~bplaceo2; ~rdo2 = ~si2.value;});
4785 if(~si2.value == "f2", {~rslot2 = ~bplacef2; ~rdo2 = ~si2.value;});
4786 if(~si2.value == "s2", {~rslot2 = ~bplaces2; ~rdo2 = ~si2.value;});
4787 if(~si2.value == "o3", {~rslot2 = ~bplaceo3; ~rdo2 = ~si2.value;});
4788 if(~si2.value == "f3", {~rslot2 = ~bplacef3; ~rdo2 = ~si2.value;});
4789 if(~si2.value == "s3", {~rslot2 = ~bplaces3; ~rdo2 = ~si2.value;});
4790 if(~si2.value == "o4", {~rslot2 = ~bplaceo4; ~rdo2 = ~si2.value;});
4791 if(~si2.value == "f4", {~rslot2 = ~bplacef4; ~rdo2 = ~si2.value;});
4792 if(~si2.value == "s4", {~rslot2 = ~bplaces4; ~rdo2 = ~si2.value;});
4793 if(~si2.value == "o5", {~rslot2 = ~bplaceo5; ~rdo2 = ~si2.value;});
4794 if(~si2.value == "f5", {~rslot2 = ~bplacef5; ~rdo2 = ~si2.value;});
4795 if(~si2.value == "s5", {~rslot2 = ~bplaces5; ~rdo2 = ~si2.value;});
4796 if(~si2.value == "o6", {~rslot2 = ~bplaceo6; ~rdo2 = ~si2.value;});
4797 if(~si2.value == "f6", {~rslot2 = ~bplacef6; ~rdo2 = ~si2.value;});
4798 if(~si2.value == "s6", {~rslot2 = ~bplaces6; ~rdo2 = ~si2.value;});
4799 if(~si2.value == "o7", {~rslot2 = ~bplaceo7; ~rdo2 = ~si2.value;});
4800 if(~si2.value == "f7", {~rslot2 = ~bplacef7; ~rdo2 = ~si2.value;});
4801 if(~si2.value == "s7", {~rslot2 = ~bplaces7; ~rdo2 = ~si2.value;});
4802 if(~si2.value == "o8", {~rslot2 = ~bplaceo8; ~rdo2 = ~si2.value;});
4803 if(~si2.value == "f8", {~rslot2 = ~bplacef8; ~rdo2 = ~si2.value;});
4804 if(~si2.value == "s8", {~rslot2 = ~bplaces8; ~rdo2 = ~si2.value;});
4807 if(~si3.value == "o1", {~rslot3 = ~bplaceo1; ~rdo3 = ~si3.value;});
4808 if(~si3.value == "f1", {~rslot3 = ~bplacef1; ~rdo3 = ~si3.value;});
4809 if(~si3.value == "s1", {~rslot3 = ~bplaces1; ~rdo3 = ~si3.value;});
4810 if(~si3.value == "o2", {~rslot3 = ~bplaceo2; ~rdo3 = ~si3.value;});
4811 if(~si3.value == "f2", {~rslot3 = ~bplacef2; ~rdo3 = ~si3.value;});
4812 if(~si3.value == "s2", {~rslot3 = ~bplaces2; ~rdo3 = ~si3.value;});
4813 if(~si3.value == "o3", {~rslot3 = ~bplaceo3; ~rdo3 = ~si3.value;});
4814 if(~si3.value == "f3", {~rslot3 = ~bplacef3; ~rdo3 = ~si3.value;});
4815 if(~si3.value == "s3", {~rslot3 = ~bplaces3; ~rdo3 = ~si3.value;});
4816 if(~si3.value == "o4", {~rslot3 = ~bplaceo4; ~rdo3 = ~si3.value;});
4817 if(~si3.value == "f4", {~rslot3 = ~bplacef4; ~rdo3 = ~si3.value;});
4818 if(~si3.value == "s4", {~rslot3 = ~bplaces4; ~rdo3 = ~si3.value;});
4819 if(~si3.value == "o5", {~rslot3 = ~bplaceo5; ~rdo3 = ~si3.value;});
4820 if(~si3.value == "f5", {~rslot3 = ~bplacef5; ~rdo3 = ~si3.value;});
4821 if(~si3.value == "s5", {~rslot3 = ~bplaces5; ~rdo3 = ~si3.value;});
4822 if(~si3.value == "o6", {~rslot3 = ~bplaceo6; ~rdo3 = ~si3.value;});
4823 if(~si3.value == "f6", {~rslot3 = ~bplacef6; ~rdo3 = ~si3.value;});
4824 if(~si3.value == "s6", {~rslot3 = ~bplaces6; ~rdo3 = ~si3.value;});
4825 if(~si3.value == "o7", {~rslot3 = ~bplaceo7; ~rdo3 = ~si3.value;});
4826 if(~si3.value == "f7", {~rslot3 = ~bplacef7; ~rdo3 = ~si3.value;});
4827 if(~si3.value == "s7", {~rslot3 = ~bplaces7; ~rdo3 = ~si3.value;});
4828 if(~si3.value == "o8", {~rslot3 = ~bplaceo8; ~rdo3 = ~si3.value;});
4829 if(~si3.value == "f8", {~rslot3 = ~bplacef8; ~rdo3 = ~si3.value;});
4830 if(~si3.value == "s8", {~rslot3 = ~bplaces8; ~rdo3 = ~si3.value;});
4833 if(~si4.value == "o1", {~rslot4 = ~bplaceo1; ~rdo4 = ~si4.value;});
4834 if(~si4.value == "f1", {~rslot4 = ~bplacef1; ~rdo4 = ~si4.value;});
4835 if(~si4.value == "s1", {~rslot4 = ~bplaces1; ~rdo4 = ~si4.value;});
4836 if(~si4.value == "o2", {~rslot4 = ~bplaceo2; ~rdo4 = ~si4.value;});
4837 if(~si4.value == "f2", {~rslot4 = ~bplacef2; ~rdo4 = ~si4.value;});
4838 if(~si4.value == "s2", {~rslot4 = ~bplaces2; ~rdo4 = ~si4.value;});
4839 if(~si4.value == "o3", {~rslot4 = ~bplaceo3; ~rdo4 = ~si4.value;});
4840 if(~si4.value == "f3", {~rslot4 = ~bplacef3; ~rdo4 = ~si4.value;});
4841 if(~si4.value == "s3", {~rslot4 = ~bplaces3; ~rdo4 = ~si4.value;});
4842 if(~si4.value == "o4", {~rslot4 = ~bplaceo4; ~rdo4 = ~si4.value;});
4843 if(~si4.value == "f4", {~rslot4 = ~bplacef4; ~rdo4 = ~si4.value;});
4844 if(~si4.value == "s4", {~rslot4 = ~bplaces4; ~rdo4 = ~si4.value;});
4845 if(~si4.value == "o5", {~rslot4 = ~bplaceo5; ~rdo4 = ~si4.value;});
4846 if(~si4.value == "f5", {~rslot4 = ~bplacef5; ~rdo4 = ~si4.value;});
4847 if(~si4.value == "s5", {~rslot4 = ~bplaces5; ~rdo4 = ~si4.value;});
4848 if(~si4.value == "o6", {~rslot4 = ~bplaceo6; ~rdo4 = ~si4.value;});
4849 if(~si4.value == "f6", {~rslot4 = ~bplacef6; ~rdo4 = ~si4.value;});
4850 if(~si4.value == "s6", {~rslot4 = ~bplaces6; ~rdo4 = ~si4.value;});
4851 if(~si4.value == "o7", {~rslot4 = ~bplaceo7; ~rdo4 = ~si4.value;});
4852 if(~si4.value == "f7", {~rslot4 = ~bplacef7; ~rdo4 = ~si4.value;});
4853 if(~si4.value == "s7", {~rslot4 = ~bplaces7; ~rdo4 = ~si4.value;});
4854 if(~si4.value == "o8", {~rslot4 = ~bplaceo8; ~rdo4 = ~si4.value;});
4855 if(~si4.value == "f8", {~rslot4 = ~bplacef8; ~rdo4 = ~si4.value;});
4856 if(~si4.value == "s8", {~rslot4 = ~bplaces8; ~rdo4 = ~si4.value;});
4859 if(~si5.value == "o1", {~rslot5 = ~bplaceo1; ~rdo5 = ~si5.value;});
4860 if(~si5.value == "f1", {~rslot5 = ~bplacef1; ~rdo5 = ~si5.value;});
4861 if(~si5.value == "s1", {~rslot5 = ~bplaces1; ~rdo5 = ~si5.value;});
4862 if(~si5.value == "o2", {~rslot5 = ~bplaceo2; ~rdo5 = ~si5.value;});
4863 if(~si5.value == "f2", {~rslot5 = ~bplacef2; ~rdo5 = ~si5.value;});
4864 if(~si5.value == "s2", {~rslot5 = ~bplaces2; ~rdo5 = ~si5.value;});
4865 if(~si5.value == "o3", {~rslot5 = ~bplaceo3; ~rdo5 = ~si5.value;});
4866 if(~si5.value == "f3", {~rslot5 = ~bplacef3; ~rdo5 = ~si5.value;});
4867 if(~si5.value == "s3", {~rslot5 = ~bplaces3; ~rdo5 = ~si5.value;});
4868 if(~si5.value == "o4", {~rslot5 = ~bplaceo4; ~rdo5 = ~si5.value;});
4869 if(~si5.value == "f4", {~rslot5 = ~bplacef4; ~rdo5 = ~si5.value;});
4870 if(~si5.value == "s4", {~rslot5 = ~bplaces4; ~rdo5 = ~si5.value;});
4871 if(~si5.value == "o5", {~rslot5 = ~bplaceo5; ~rdo5 = ~si5.value;});
4872 if(~si5.value == "f5", {~rslot5 = ~bplacef5; ~rdo5 = ~si5.value;});
4873 if(~si5.value == "s5", {~rslot5 = ~bplaces5; ~rdo5 = ~si5.value;});
4874 if(~si5.value == "o6", {~rslot5 = ~bplaceo6; ~rdo5 = ~si5.value;});
4875 if(~si5.value == "f6", {~rslot5 = ~bplacef6; ~rdo5 = ~si5.value;});
4876 if(~si5.value == "s6", {~rslot5 = ~bplaces6; ~rdo5 = ~si5.value;});
4877 if(~si5.value == "o7", {~rslot5 = ~bplaceo7; ~rdo5 = ~si5.value;});
4878 if(~si5.value == "f7", {~rslot5 = ~bplacef7; ~rdo5 = ~si5.value;});
4879 if(~si5.value == "s7", {~rslot5 = ~bplaces7; ~rdo5 = ~si5.value;});
4880 if(~si5.value == "o8", {~rslot5 = ~bplaceo8; ~rdo5 = ~si5.value;});
4881 if(~si5.value == "f8", {~rslot5 = ~bplacef8; ~rdo5 = ~si5.value;});
4882 if(~si5.value == "s8", {~rslot5 = ~bplaces8; ~rdo5 = ~si5.value;});
4885 if(~si6.value == "o1", {~rslot6 = ~bplaceo1; ~rdo6 = ~si6.value;});
4886 if(~si6.value == "f1", {~rslot6 = ~bplacef1; ~rdo6 = ~si6.value;});
4887 if(~si6.value == "s1", {~rslot6 = ~bplaces1; ~rdo6 = ~si6.value;});
4888 if(~si6.value == "o2", {~rslot6 = ~bplaceo2; ~rdo6 = ~si6.value;});
4889 if(~si6.value == "f2", {~rslot6 = ~bplacef2; ~rdo6 = ~si6.value;});
4890 if(~si6.value == "s2", {~rslot6 = ~bplaces2; ~rdo6 = ~si6.value;});
4891 if(~si6.value == "o3", {~rslot6 = ~bplaceo3; ~rdo6 = ~si6.value;});
4892 if(~si6.value == "f3", {~rslot6 = ~bplacef3; ~rdo6 = ~si6.value;});
4893 if(~si6.value == "s3", {~rslot6 = ~bplaces3; ~rdo6 = ~si6.value;});
4894 if(~si6.value == "o4", {~rslot6 = ~bplaceo4; ~rdo6 = ~si6.value;});
4895 if(~si6.value == "f4", {~rslot6 = ~bplacef4; ~rdo6 = ~si6.value;});
4896 if(~si6.value == "s4", {~rslot6 = ~bplaces4; ~rdo6 = ~si6.value;});
4897 if(~si6.value == "o5", {~rslot6 = ~bplaceo5; ~rdo6 = ~si6.value;});
4898 if(~si6.value == "f5", {~rslot6 = ~bplacef5; ~rdo6 = ~si6.value;});
4899 if(~si6.value == "s5", {~rslot6 = ~bplaces5; ~rdo6 = ~si6.value;});
4900 if(~si6.value == "o6", {~rslot6 = ~bplaceo6; ~rdo6 = ~si6.value;});
4901 if(~si6.value == "f6", {~rslot6 = ~bplacef6; ~rdo6 = ~si6.value;});
4902 if(~si6.value == "s6", {~rslot6 = ~bplaces6; ~rdo6 = ~si6.value;});
4903 if(~si6.value == "o7", {~rslot6 = ~bplaceo7; ~rdo6 = ~si6.value;});
4904 if(~si6.value == "f7", {~rslot6 = ~bplacef7; ~rdo6 = ~si6.value;});
4905 if(~si6.value == "s7", {~rslot6 = ~bplaces7; ~rdo6 = ~si6.value;});
4906 if(~si6.value == "o8", {~rslot6 = ~bplaceo8; ~rdo6 = ~si6.value;});
4907 if(~si6.value == "f8", {~rslot6 = ~bplacef8; ~rdo6 = ~si6.value;});
4908 if(~si6.value == "s8", {~rslot6 = ~bplaces8; ~rdo6 = ~si6.value;});
4911 if(~si7.value == "o1", {~rslot7 = ~bplaceo1; ~rdo7 = ~si7.value;});
4912 if(~si7.value == "f1", {~rslot7 = ~bplacef1; ~rdo7 = ~si7.value;});
4913 if(~si7.value == "s1", {~rslot7 = ~bplaces1; ~rdo7 = ~si7.value;});
4914 if(~si7.value == "o2", {~rslot7 = ~bplaceo2; ~rdo7 = ~si7.value;});
4915 if(~si7.value == "f2", {~rslot7 = ~bplacef2; ~rdo7 = ~si7.value;});
4916 if(~si7.value == "s2", {~rslot7 = ~bplaces2; ~rdo7 = ~si7.value;});
4917 if(~si7.value == "o3", {~rslot7 = ~bplaceo3; ~rdo7 = ~si7.value;});
4918 if(~si7.value == "f3", {~rslot7 = ~bplacef3; ~rdo7 = ~si7.value;});
4919 if(~si7.value == "s3", {~rslot7 = ~bplaces3; ~rdo7 = ~si7.value;});
4920 if(~si7.value == "o4", {~rslot7 = ~bplaceo4; ~rdo7 = ~si7.value;});
4921 if(~si7.value == "f4", {~rslot7 = ~bplacef4; ~rdo7 = ~si7.value;});
4922 if(~si7.value == "s4", {~rslot7 = ~bplaces4; ~rdo7 = ~si7.value;});
4923 if(~si7.value == "o5", {~rslot7 = ~bplaceo5; ~rdo7 = ~si7.value;});
4924 if(~si7.value == "f5", {~rslot7 = ~bplacef5; ~rdo7 = ~si7.value;});
4925 if(~si7.value == "s5", {~rslot7 = ~bplaces5; ~rdo7 = ~si7.value;});
4926 if(~si7.value == "o6", {~rslot7 = ~bplaceo6; ~rdo7 = ~si7.value;});
4927 if(~si7.value == "f6", {~rslot7 = ~bplacef6; ~rdo7 = ~si7.value;});
4928 if(~si7.value == "s6", {~rslot7 = ~bplaces6; ~rdo7 = ~si7.value;});
4929 if(~si7.value == "o7", {~rslot7 = ~bplaceo7; ~rdo7 = ~si7.value;});
4930 if(~si7.value == "f7", {~rslot7 = ~bplacef7; ~rdo7 = ~si7.value;});
4931 if(~si7.value == "s7", {~rslot7 = ~bplaces7; ~rdo7 = ~si7.value;});
4932 if(~si7.value == "o8", {~rslot7 = ~bplaceo8; ~rdo7 = ~si7.value;});
4933 if(~si7.value == "f8", {~rslot7 = ~bplacef8; ~rdo7 = ~si7.value;});
4934 if(~si7.value == "s8", {~rslot7 = ~bplaces8; ~rdo7 = ~si7.value;});
4937 if(~si8.value == "o1", {~rslot8 = ~bplaceo1; ~rdo8 = ~si8.value;});
4938 if(~si8.value == "f1", {~rslot8 = ~bplacef1; ~rdo8 = ~si8.value;});
4939 if(~si8.value == "s1", {~rslot8 = ~bplaces1; ~rdo8 = ~si8.value;});
4940 if(~si8.value == "o2", {~rslot8 = ~bplaceo2; ~rdo8 = ~si8.value;});
4941 if(~si8.value == "f2", {~rslot8 = ~bplacef2; ~rdo8 = ~si8.value;});
4942 if(~si8.value == "s2", {~rslot8 = ~bplaces2; ~rdo8 = ~si8.value;});
4943 if(~si8.value == "o3", {~rslot8 = ~bplaceo3; ~rdo8 = ~si8.value;});
4944 if(~si8.value == "f3", {~rslot8 = ~bplacef3; ~rdo8 = ~si8.value;});
4945 if(~si8.value == "s3", {~rslot8 = ~bplaces3; ~rdo8 = ~si8.value;});
4946 if(~si8.value == "o4", {~rslot8 = ~bplaceo4; ~rdo8 = ~si8.value;});
4947 if(~si8.value == "f4", {~rslot8 = ~bplacef4; ~rdo8 = ~si8.value;});
4948 if(~si8.value == "s4", {~rslot8 = ~bplaces4; ~rdo8 = ~si8.value;});
4949 if(~si8.value == "o5", {~rslot8 = ~bplaceo5; ~rdo8 = ~si8.value;});
4950 if(~si8.value == "f5", {~rslot8 = ~bplacef5; ~rdo8 = ~si8.value;});
4951 if(~si8.value == "s5", {~rslot8 = ~bplaces5; ~rdo8 = ~si8.value;});
4952 if(~si8.value == "o6", {~rslot8 = ~bplaceo6; ~rdo8 = ~si8.value;});
4953 if(~si8.value == "f6", {~rslot8 = ~bplacef6; ~rdo8 = ~si8.value;});
4954 if(~si8.value == "s6", {~rslot8 = ~bplaces6; ~rdo8 = ~si8.value;});
4955 if(~si8.value == "o7", {~rslot8 = ~bplaceo7; ~rdo8 = ~si8.value;});
4956 if(~si8.value == "f7", {~rslot8 = ~bplacef7; ~rdo8 = ~si8.value;});
4957 if(~si8.value == "s7", {~rslot8 = ~bplaces7; ~rdo8 = ~si8.value;});
4958 if(~si8.value == "o8", {~rslot8 = ~bplaceo8; ~rdo8 = ~si8.value;});
4959 if(~si8.value == "f8", {~rslot8 = ~bplacef8; ~rdo8 = ~si8.value;});
4960 if(~si8.value == "s8", {~rslot8 = ~bplaces8; ~rdo8 = ~si8.value;});
4964 //routine function button
4966 ~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;
4968 if(button.value == 1, {
4970 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;
4971 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;
4972 ~rview = View(w, Rect(Window.screenBounds.width-(340+46),Window.screenBounds.height-(340+46/1.6180339887499)-110,340+46,340+46/1.6180339887499)).front;
4973 /*w.view.decorator=FlowLayout(w.view.bounds);
4974 w.view.decorator.gap=2@2;*/
4978 i1 = StaticText(~rview, Rect(leftdo , top=top, width, height)).background_(Color.black).string_("rslot1").stringColor_(Color.white);
4979 i2 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot2").stringColor_(Color.white);
4980 i3 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot3").stringColor_(Color.white);
4981 i4 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot4").stringColor_(Color.white);
4982 i5 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot5").stringColor_(Color.white);
4983 i6 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot6").stringColor_(Color.white);
4984 i7 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot7").stringColor_(Color.white);
4985 i8 = StaticText(~rview, Rect(leftdo , top=top+height, width, height)).background_(Color.black).string_("rslot8").stringColor_(Color.white);
4989 ~si1a=TextField(~rview, Rect(leftdobox , top=top, widthbox/2, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo1a);
4990 ~si1b=TextField(~rview, Rect(leftdobox+(widthbox/2) , top=top, widthbox/2, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo1b);
4991 ~si2=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo2);
4992 ~si3=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo3);
4993 ~si4=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo4);
4994 ~si5=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo5);
4995 ~si6=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo6);
4996 ~si7=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo7);
4997 ~si8=TextField(~rview, Rect(leftdobox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).stringColor_(Color.white).value_(~rdo8);
5001 t1 = StaticText(~rview, Rect(lefttime , top=top, width, height)).background_(Color.black).string_("rtime1").stringColor_(Color.white);
5002 t2 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime2").stringColor_(Color.white);
5003 t3 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime3").stringColor_(Color.white);
5004 t4 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime4").stringColor_(Color.white);
5005 t5 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime5").stringColor_(Color.white);
5006 t6 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime6").stringColor_(Color.white);
5007 t7 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime7").stringColor_(Color.white);
5008 t8 = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("rtime8").stringColor_(Color.white);
5009 tall = StaticText(~rview, Rect(lefttime , top=top+height, width, height)).background_(Color.black).string_("all time").stringColor_(Color.white);
5014 st1=NumberBox(~rview, Rect(lefttimebox , top=top, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime1);
5015 st2=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime2);
5016 st3=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime3);
5017 st4=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime4);
5018 st5=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime5);
5019 st6=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime6);
5020 st7=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime7);
5021 st8=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtime8);
5022 stall=NumberBox(~rview, Rect(lefttimebox , top=top+heightbox, widthbox, heightbox)).background_(Color.black).normalColor_(Color.white;).value_(~rtimeall);
5025 ~si1a.action_({~si1aset.value});
5026 ~si1b.action_({~si1bset.value});
5027 ~si2.action_({~si2set.value});
5028 ~si3.action_({~si3set.value});
5029 ~si4.action_({~si4set.value});
5030 ~si5.action_({~si5set.value});
5031 ~si6.action_({~si6set.value});
5032 ~si7.action_({~si7set.value});
5033 ~si8.action_({~si8set.value});
5035 stall.action_({arg val;
5036 ~rtimeall = val.value;
5037 ~rtime1 = val.value;
5038 ~rtime2 = val.value;
5039 ~rtime3 = val.value;
5040 ~rtime4 = val.value;
5041 ~rtime5 = val.value;
5042 ~rtime6 = val.value;
5043 ~rtime7 = val.value;
5044 ~rtime8 = val.value;
5045 ~rview.close; ~rviewbutton.valueAction_(1);
5047 st1.action_({arg val; ~rtime1 = val.value;});
5048 st2.action_({arg val; ~rtime2 = val.value;});
5049 st3.action_({arg val; ~rtime3 = val.value;});
5050 st4.action_({arg val; ~rtime4 = val.value;});
5051 st5.action_({arg val; ~rtime5 = val.value;});
5052 st6.action_({arg val; ~rtime6 = val.value;});
5053 st7.action_({arg val; ~rtime7 = val.value;});
5054 st8.action_({arg val; ~rtime8 = val.value;});
5056 ~rview.background_(Color.black);
5060 ~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;
5062 if(button.value == 1, {
5066 AppClock.sched(0, {~metronomebutton.value = 1;});
5067 ~metronomeincr.wait;
5068 AppClock.sched(0, {~metronomebutton.value = 0;});
5069 ~metronomeincr.wait;
5075 {~rslot1a.valueAction_(0)}.defer;
5077 {~rslot2.valueAction_(0)}.defer;
5079 {~rslot3.valueAction_(0)}.defer;
5081 {~rslot4.valueAction_(0)}.defer;
5083 {~rslot5.valueAction_(0)}.defer;
5085 {~rslot6.valueAction_(0)}.defer;
5087 {~rslot7.valueAction_(0)}.defer;
5089 {~rslot8.valueAction_(0)}.defer;
5093 {~rslot1b.valueAction_(0)}.defer;
5095 {~rslot2.valueAction_(0)}.defer;
5097 {~rslot3.valueAction_(0)}.defer;
5099 {~rslot4.valueAction_(0)}.defer;
5101 {~rslot5.valueAction_(0)}.defer;
5103 {~rslot6.valueAction_(0)}.defer;
5105 {~rslot7.valueAction_(0)}.defer;
5107 {~rslot8.valueAction_(0)}.defer;
5110 }); SystemClock(~metronome.start); SystemClock(~loop.start); ~numsynths.stop;}, {
5112 SystemClock(~metronome.stop); SystemClock(~loop.stop); SystemClock(~loop.reset); ~synthfree.value; ~pauseroutinebutton.value = 0; ~numsynths.stop; ~numsynthsfunc.value;});
5115 ~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;
5117 if(button.value == 1, {SystemClock(~loop.pause); ~synthpause.value;}, {SystemClock(~loop.resume); ~synthflow.value;});
5120 ~closeroutinebutton = Button.new(~rview,Rect(220, top+40, 40, 40/~gm)).states_([["close",Color.white,Color.black]]).action_({arg button;
5122 ~rview.close; ~rviewbutton.value = 0;
5125 ~metronomebutton = Button.new(~rview,Rect(120, top+40, 40, 40/~gm)).states_([["",Color.white,Color.red],["",Color.white,Color.blue]]).action_({arg button;});
5129 if(~loop.isPlaying == true, {~routinebutton.value = 1;});
5135 //synth identifier function
5137 ~synthmonitor = StaticText(w, Rect(Window.screenBounds.width-14,~bpt+49,18,18/1.6180339887499)).background_(Color.black).stringColor_(Color.white);
5138 ~synthmonitor.string = if(~currentsynth == nil, {"nil".asString});
5140 ~synthmonitorfunc = {
5141 ~synthmonitor.close;
5142 ~synthmonitor = StaticText(w, Rect(Window.screenBounds.width-14,~bpt+49,18,18/1.6180339887499)).background_(Color.black).stringColor_(Color.white);
5143 ~synthmonitor.string = ~currentsynth.asString;
5144 ~synthmonitor.font = Font(size: 10);
5147 ~synthmonitorfunc.value;
5150 //cpu, # of ugens, # of synths, and current frequencies display
5152 ~cpumonitor = StaticText(w, Rect(Window.screenBounds.width-500,~bpt-200,500,90/1.6180339887499)).background_(Color.black).stringColor_(Color.white);
5157 ~cpumonitor = StaticText(w, Rect(20,~bpt-100,800,124/1.6180339887499)).background_(Color.black).stringColor_(Color.white);
5158 ~cpumonitor.string =
5159 "cpu: "+s.avgCPU.asString+"%"++"\n" ++
5160 "ugens: "+s.numUGens.asString++"\n" ++
5161 "synths: "+s.numSynths.asString++"\n" ++
5162 /*"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)++","++
5163 "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);
5164 */ ~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);
5165 /*[ ~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;
5166 */ ~cpumonitor.font = Font(size: 14);
5169 ~cpumonitorroutine = Routine({
5172 ~cpumonitorfunc.value;
5178 ~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;
5180 if(button.value == 1, {
5181 ~cpumonitorroutine.reset;
5182 ~cpumonitorroutine.play;
5183 }, {~cpumonitorroutine.stop; ~cpumonitor.close;});
5188 //information button
5190 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;
5192 if(button.value == 1, {
5193 ~hb = TextView(w, Rect(0,0, Window.screenBounds.width, Window.screenBounds.height-200)).background_(Color.black);
5195 "(scroll down to see more)"++"\n"++"\n"++"\n"++
5196 "ctrl/cmd-period: stop synth/free server"++"\n"++"\n"++"\n"++
5197 "GUI Buttons"++"\n"++"\n"++"\n"++
5198 "synth0/synth1: start/stop synth set"++"\n"++"\n"++
5199 "pause0/pause1: pause/unpause synth set"++"\n"++"\n"++
5200 "tsynth0/tsynth1: tsynth0 to allow timed synth set, then click on any o or f button to time a progression. click on the st button in the bottom right to stop the timer. tsynth1 to dis-allow timed synth set"++"\n"++"\n"++
5201 "copy: copy frequency/note info"++"\n"++"\n"++
5202 "kws: change number of kw(King Wen) sequences in a timewave half-cycle (or amplitude x2). press set to load"++"\n"++"\n"++
5203 "top-level hz frequency: set the base frequency. press set to load"++"\n"++"\n"++
5204 "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), hsineuf1-hsineuf3 (based on 19.47:360, without low-pass filter) - set synthdef type. press set to load"++"\n"++"\n"++
5205 "lower-level hz frequency: change the low-pass filter frequency limit. default is 2100. press set to load"++"\n"++"\n"++
5206 "s1-s8: set/save note positions"++"\n"++"\n"++
5207 "g1-g8: groups of saved note positions"++"\n"++"\n"++
5208 "uc-u8: undo changes to set note positions. press set to load"++"\n"++"\n"++
5209 "rc, /rc: start recording/stop recording"++"\n"++"\n"++
5210 "prc: pause recording"++"\n"++"\n"++
5211 "o1-o8: play set/saved note positions by opening a new synth set"++"\n"++"\n"++
5212 "f1-f8: flow transition to set/saved note positions"++"\n"++"\n"++
5213 "s1-s8: slide transition to set/saved note positions"++"\n"++"\n"++
5214 "m/u: mute/unmute all"++"\n"++"\n"++
5215 "1-12: mute or unmute individual synth"++"\n"++"\n"++
5216 "cm: cpu percentage/number of ugens/number of synths display"++"\n"++"\n"++
5217 "rw: random western scale"++"\n"++"\n"++
5218 "re: random eastern scale"++"\n"++"\n"++
5219 "r: routine/loop function - rslot for synth set, rtime for time between transitions"++"\n"++"\n"++
5220 "st: stop synth timer/show timer results"++"\n"++"\n"++
5221 "s: set slide time/increment"++"\n"++"\n"++
5222 "i: help"++"\n"++"\n"++
5223 "m: minimize window"++"\n"++"\n"++
5224 "c: close window"++"\n"++"\n"++"\n"++
5225 "Keyboard Functions (functionality will vary with device)"++"\n"++"\n"++"\n"++
5226 "s: start/stop synth set"++"\n"++"\n"++
5227 "space bar: pause/unpause synth set"++"\n"++"\n"++
5228 "ctrl-period/cmd-period: stop synth/free server"++"\n"++"\n"++
5229 "left/right arrow(or J and L): move down/up note"++"\n"++"\n"++
5230 "up/down arrow(or I and K): change synth for left/right arrow note function"++"\n"++"\n"++
5231 "#1-= on keyboard: choose synth for left/right arrow note function"++"\n"++"\n"++
5232 "r: routine/loop function - rslot for synth set, rtime for time between transitions"++"\n"++"\n"++
5233 "m: mute/unmute all"++"\n"++"\n"++
5234 "c: copy function"++"\n"++"\n"++
5235 "t: timed synth function"++"\n"++"\n"++
5236 "esc: minimize window"
5239 ~hb.stringColor = Color.white;
5245 //random notes button 1
5247 ~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;
5249 if((~l1a.isRunning == true) or: (~l1a1.isRunning == true), {
5250 12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut(~freqmap.at(rrand(36, 91));)});
5256 //random notes button 2
5258 ~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;
5260 if((~l1a.isRunning == true) or: (~l1a1.isRunning == true), {
5261 12.do(x = 0; {("f"++(x=x+1)).asSymbol.envirPut((~freqmap.at(127)/8).rand;)});
5267 //setgroup buttons, sg1-sg8
5269 ~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;
5271 if(button.value == 1, {
5272 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))});
5273 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))});
5274 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))});
5275 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))});
5276 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))});
5277 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))});
5278 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))});
5279 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))});
5281 ~setgroup2.value = 0;
5282 ~setgroup3.value = 0;
5283 ~setgroup4.value = 0;
5284 ~setgroup5.value = 0;
5285 ~setgroup6.value = 0;
5286 ~setgroup7.value = 0;
5287 ~setgroup8.value = 0;
5292 ~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;
5294 if(button.value == 1, {
5295 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))});
5296 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))});
5297 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))});
5298 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))});
5299 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))});
5300 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))});
5301 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))});
5302 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))});
5304 ~setgroup1.value = 0;
5305 ~setgroup3.value = 0;
5306 ~setgroup4.value = 0;
5307 ~setgroup5.value = 0;
5308 ~setgroup6.value = 0;
5309 ~setgroup7.value = 0;
5310 ~setgroup8.value = 0;
5315 ~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;
5317 if(button.value == 1, {
5318 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))});
5319 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))});
5320 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))});
5321 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))});
5322 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))});
5323 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))});
5324 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))});
5325 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))});
5327 ~setgroup1.value = 0;
5328 ~setgroup2.value = 0;
5329 ~setgroup4.value = 0;
5330 ~setgroup5.value = 0;
5331 ~setgroup6.value = 0;
5332 ~setgroup7.value = 0;
5333 ~setgroup8.value = 0;
5338 ~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;
5340 if(button.value == 1, {
5341 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))});
5342 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))});
5343 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))});
5344 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))});
5345 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))});
5346 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))});
5347 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))});
5348 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))});
5350 ~setgroup1.value = 0;
5351 ~setgroup2.value = 0;
5352 ~setgroup3.value = 0;
5353 ~setgroup5.value = 0;
5354 ~setgroup6.value = 0;
5355 ~setgroup7.value = 0;
5356 ~setgroup8.value = 0;
5361 ~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;
5363 if(button.value == 1, {
5364 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))});
5365 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))});
5366 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))});
5367 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))});
5368 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))});
5369 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))});
5370 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))});
5371 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))});
5373 ~setgroup1.value = 0;
5374 ~setgroup2.value = 0;
5375 ~setgroup3.value = 0;
5376 ~setgroup4.value = 0;
5377 ~setgroup6.value = 0;
5378 ~setgroup7.value = 0;
5379 ~setgroup8.value = 0;
5384 ~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;
5386 if(button.value == 1, {
5387 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))});
5388 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))});
5389 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))});
5390 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))});
5391 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))});
5392 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))});
5393 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))});
5394 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))});
5396 ~setgroup1.value = 0;
5397 ~setgroup2.value = 0;
5398 ~setgroup3.value = 0;
5399 ~setgroup4.value = 0;
5400 ~setgroup5.value = 0;
5401 ~setgroup7.value = 0;
5402 ~setgroup8.value = 0;
5407 ~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;
5409 if(button.value == 1, {
5410 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))});
5411 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))});
5412 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))});
5413 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))});
5414 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))});
5415 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))});
5416 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))});
5417 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))});
5419 ~setgroup1.value = 0;
5420 ~setgroup2.value = 0;
5421 ~setgroup3.value = 0;
5422 ~setgroup4.value = 0;
5423 ~setgroup5.value = 0;
5424 ~setgroup6.value = 0;
5425 ~setgroup8.value = 0;
5430 ~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;
5432 if(button.value == 1, {
5433 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))});
5434 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))});
5435 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))});
5436 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))});
5437 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))});
5438 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))});
5439 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))});
5440 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))});
5442 ~setgroup1.value = 0;
5443 ~setgroup2.value = 0;
5444 ~setgroup3.value = 0;
5445 ~setgroup4.value = 0;
5446 ~setgroup5.value = 0;
5447 ~setgroup6.value = 0;
5448 ~setgroup7.value = 0;
5455 //if setgroup values are nil
5457 if(~setgroupval == nil, {~setgroup1.value = 1;});
5458 if(~setgroupval == 1, {~setgroup1.value = 1;});
5459 if(~setgroupval == 2, {~setgroup2.value = 1;});
5460 if(~setgroupval == 3, {~setgroup3.value = 1;});
5461 if(~setgroupval == 4, {~setgroup4.value = 1;});
5462 if(~setgroupval == 5, {~setgroup5.value = 1;});
5463 if(~setgroupval == 6, {~setgroup6.value = 1;});
5464 if(~setgroupval == 7, {~setgroup7.value = 1;});
5465 if(~setgroupval == 8, {~setgroup8.value = 1;});
5468 //save chord notes buttons, s1-s8
5470 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;
5472 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))});});
5473 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))});});
5474 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))});});
5475 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))});});
5476 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))});});
5477 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))});});
5478 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))});});
5479 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))});});
5481 n1.states_([["s1",Color.green,Color.black]]);
5482 n2.states_([["s2",Color.white,Color.black]]);
5483 n3.states_([["s3",Color.white,Color.black]]);
5484 n4.states_([["s4",Color.white,Color.black]]);
5485 n5.states_([["s5",Color.white,Color.black]]);
5486 n6.states_([["s6",Color.white,Color.black]]);
5487 n7.states_([["s7",Color.white,Color.black]]);
5488 n8.states_([["s8",Color.white,Color.black]]);
5491 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;
5493 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))});});
5494 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))});});
5495 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))});});
5496 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))});});
5497 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))});});
5498 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))});});
5499 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))});});
5500 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))});});
5502 n1.states_([["s1",Color.white,Color.black]]);
5503 n2.states_([["s2",Color.green,Color.black]]);
5504 n3.states_([["s3",Color.white,Color.black]]);
5505 n4.states_([["s4",Color.white,Color.black]]);
5506 n5.states_([["s5",Color.white,Color.black]]);
5507 n6.states_([["s6",Color.white,Color.black]]);
5508 n7.states_([["s7",Color.white,Color.black]]);
5509 n8.states_([["s8",Color.white,Color.black]]);
5511 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;
5513 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))});});
5514 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))});});
5515 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))});});
5516 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))});});
5517 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))});});
5518 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))});});
5519 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))});});
5520 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))});});
5522 n1.states_([["s1",Color.white,Color.black]]);
5523 n2.states_([["s2",Color.white,Color.black]]);
5524 n3.states_([["s3",Color.green,Color.black]]);
5525 n4.states_([["s4",Color.white,Color.black]]);
5526 n5.states_([["s5",Color.white,Color.black]]);
5527 n6.states_([["s6",Color.white,Color.black]]);
5528 n7.states_([["s7",Color.white,Color.black]]);
5529 n8.states_([["s8",Color.white,Color.black]]);
5531 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;
5533 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))});});
5534 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))});});
5535 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))});});
5536 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))});});
5537 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))});});
5538 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))});});
5539 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))});});
5540 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))});});
5542 n1.states_([["s1",Color.white,Color.black]]);
5543 n2.states_([["s2",Color.white,Color.black]]);
5544 n3.states_([["s3",Color.white,Color.black]]);
5545 n4.states_([["s4",Color.green,Color.black]]);
5546 n5.states_([["s5",Color.white,Color.black]]);
5547 n6.states_([["s6",Color.white,Color.black]]);
5548 n7.states_([["s7",Color.white,Color.black]]);
5549 n8.states_([["s8",Color.white,Color.black]]);
5551 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;
5553 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))});});
5554 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))});});
5555 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))});});
5556 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))});});
5557 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))});});
5558 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))});});
5559 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))});});
5560 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))});});
5562 n1.states_([["s1",Color.white,Color.black]]);
5563 n2.states_([["s2",Color.white,Color.black]]);
5564 n3.states_([["s3",Color.white,Color.black]]);
5565 n4.states_([["s4",Color.white,Color.black]]);
5566 n5.states_([["s5",Color.green,Color.black]]);
5567 n6.states_([["s6",Color.white,Color.black]]);
5568 n7.states_([["s7",Color.white,Color.black]]);
5569 n8.states_([["s8",Color.white,Color.black]]);
5571 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;
5573 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))});});
5574 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))});});
5575 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))});});
5576 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))});});
5577 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))});});
5578 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))});});
5579 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))});});
5580 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))});});
5582 n1.states_([["s1",Color.white,Color.black]]);
5583 n2.states_([["s2",Color.white,Color.black]]);
5584 n3.states_([["s3",Color.white,Color.black]]);
5585 n4.states_([["s4",Color.white,Color.black]]);
5586 n5.states_([["s5",Color.white,Color.black]]);
5587 n6.states_([["s6",Color.green,Color.black]]);
5588 n7.states_([["s7",Color.white,Color.black]]);
5589 n8.states_([["s8",Color.white,Color.black]]);
5591 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;
5593 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))});});
5594 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))});});
5595 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))});});
5596 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))});});
5597 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))});});
5598 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))});});
5599 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))});});
5600 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))});});
5602 n1.states_([["s1",Color.white,Color.black]]);
5603 n2.states_([["s2",Color.white,Color.black]]);
5604 n3.states_([["s3",Color.white,Color.black]]);
5605 n4.states_([["s4",Color.white,Color.black]]);
5606 n5.states_([["s5",Color.white,Color.black]]);
5607 n6.states_([["s6",Color.white,Color.black]]);
5608 n7.states_([["s7",Color.green,Color.black]]);
5609 n8.states_([["s8",Color.white,Color.black]]);
5611 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;
5613 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))});});
5614 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))});});
5615 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))});});
5616 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))});});
5617 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))});});
5618 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))});});
5619 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))});});
5620 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))});});
5622 n1.states_([["s1",Color.white,Color.black]]);
5623 n2.states_([["s2",Color.white,Color.black]]);
5624 n3.states_([["s3",Color.white,Color.black]]);
5625 n4.states_([["s4",Color.white,Color.black]]);
5626 n5.states_([["s5",Color.white,Color.black]]);
5627 n6.states_([["s6",Color.white,Color.black]]);
5628 n7.states_([["s7",Color.white,Color.black]]);
5629 n8.states_([["s8",Color.green,Color.black]]);
5633 //undo saved chord pop-up menu
5635 ~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;});
5638 //set button for undo pop-up menu
5640 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;
5642 {~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;}
5643 {~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;}
5644 {~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;}
5645 {~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;}
5646 {~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;}
5647 {~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;}
5648 {~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;}
5649 {~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;}
5650 {~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;};
5654 //record/stop record button
5656 ~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;
5658 if(button.value == 1, {~numsynths.stop; s.record; if(button.value == 0, {button.value = 1});},
5659 {s.stopRecording; ~startrecord.value = 0; ~pauserecord.value = 0; ~numsynths.stop; ~numsynths.play;});
5663 //pause record button
5665 ~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});});
5668 //minimize GUI window button
5670 ~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;
5672 ~fullscreen_correct = {w.fullScreen};
5673 ~fscview = UserView(w, Rect(0,0, Window.screenBounds.width-100, Window.screenBounds.height;));
5674 ~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;});
5675 ~fscview.mouseEnterAction_{|v, x, y| ~fullscreen_correct.value; ~fullscreen_correct = nil; ~fscview.close; ~fscview = nil; ~fullscreen_button.close; ~fullscreen_button = nil;};
5679 //close GUI window button
5681 ~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;
5683 if(~closemessage != nil, {~closemessage.close}, {nil});
5684 ~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;
5685 ~closemessagestring = StaticText(~closemessage, Rect(0,0,340+46,340+46/1.6180339887499)).background_(Color.black);
5686 ~closemessagestring.align = \center;
5687 ~closemessagestring.string ="Close Timewave Synth?";
5688 ~closemessagestring.stringColor = Color.white;
5689 ~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;});});
5690 ~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;});});
5691 ~closemessage.front;
5696 w.front; w.fullScreen;
5698 /* e-mail: ken_brant@ymail.com */
5705 //Interpreted King Wen Sequences
5709 (#a,b,c,d,e,f = /*[ 128.43436842029,128.43436842029,128.43436842029,128.43436842029,128.43436842029,128.43436842029 ]*/
5710 [ ~basefreq,~basefreq,~basefreq,~basefreq,~basefreq,~basefreq ];
5711 ~a = a; ~b = b; ~c =c; ~d = d; ~e = e;~f=f;);
5713 ~fth = 1.4142135623729;
5714 ~bi = ~fth; (~bi = "binary interval" - intverval of key change to a hexagram line's opposite in King Wen sequence)
5719 /*1*/ #a,b,c,d,e,f=[ ~a,~b,~c,~d,~e,~f ],
5720 /*2*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d/~bi, e = e/~bi, f = f/~bi ],
5721 /*3*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],
5722 /*4*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],
5723 /*5*/ [ a = a/~bi, b = b*~bi, c = c, d = d*~bi, e = e, f = f*~bi ],
5724 /*6*/ [ a = a*~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f/~bi ],
5725 /*7*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d, e = e, f = f ],
5726 /*8*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
5727 /*9*/ [ a = a*~bi, b = b, c = c, d = d*~bi, e = e*~bi, f = f*~bi ],
5728 /*10*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],
5729 /*11*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e, f = f ],
5730 /*12*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d/~bi, e = e/~bi, f = f/~bi ],
5731 /*13*/ [ a = a, b = b, c = c, d = d*~bi, e = e, f = f*~bi ],
5732 /*14*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],
5733 /*15*/ [ a = a/~bi, b = b, c = c/~bi, d = d, e = e/~bi, f = f/~bi ],
5734 /*16*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],
5735 /*17*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],
5736 /*18*/ [ a = a*~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f/~bi ],
5737 /*19*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e, f = f*~bi ],
5738 /*20*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f/~bi ],
5739 /*21*/ [ a = a, b = b/~bi, c = c*~bi, d = d, e = e, f = f*~bi ],
5740 /*22*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],
5741 /*23*/ [ a = a, b = b, c = c, d = d/~bi, e = e, f = f/~bi ],
5742 /*24*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],
5743 /*25*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d, e = e, f = f ],
5744 /*26*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],
5745 /*27*/ [ a = a, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],
5746 /*28*/ [ a = a/~bi, b = b*~bi, c = c*~bi, d = d*~bi, e = e*~bi, f = f/~bi ],
5747 /*29*/ [ a = a, b = b, c = c/~bi, d = d/~bi, e = e, f = f ],
5748 /*30*/ [ a = a*~bi, b = b/~bi, c = c*~bi, d = d*~bi, e = e/~bi, f = f*~bi ],
5749 /*31*/ [ a = a/~bi, b = b*~bi, c = c, d = d, e = e, f = f/~bi ],
5750 /*32*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],
5751 /*33*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
5752 /*34*/ [ a = a/~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f*~bi ],
5753 /*35*/ [ a = a*~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f/~bi ],
5754 /*36*/ [ a = a/~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f*~bi ],
5755 /*37*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e, f = f ],
5756 /*38*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],
5757 /*39*/ [ a = a/~bi, b = b*~bi, c = c/~bi, d = d*~bi, e = e/~bi, f = f/~bi ],
5758 /*40*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],
5759 /*41*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f*~bi ],
5760 /*42*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
5761 /*43*/ [ a = a/~bi, b = b, c = c*~bi, d = d*~bi, e = e*~bi, f = f ],
5762 /*44*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],
5763 /*45*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],
5764 /*46*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],
5765 /*47*/ [ a = a, b = b*~bi, c = c*~bi, d = d/~bi, e = e, f = f ],
5766 /*48*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],
5767 /*49*/ [ a = a, b = b, c = c*~bi, d = d, e = e/~bi, f = f*~bi ],
5768 /*50*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],
5769 /*51*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f*~bi ],
5770 /*52*/ [ a = a*~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f/~bi ],
5771 /*53*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f ],
5772 /*54*/ [ a = a/~bi, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f*~bi ],
5773 /*55*/ [ a = a, b = b, c = c, d = d*~bi, e = e/~bi, f = f ],
5774 /*56*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],
5775 /*57*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e*~bi, f = f ],
5776 /*58*/ [ a = a/~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f*~bi ],
5777 /*59*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f/~bi ],
5778 /*60*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],
5779 /*61*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f ],
5780 /*62*/ [ a = a/~bi, b = b/~bi, c = c*~bi, d = d*~bi, e = e/~bi, f = f/~bi ],
5781 /*63*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e, f = f*~bi ],
5782 /*64*/ [ a = a*~bi, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f/~bi ]
5784 /*1*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],...
5789 /*1*/ #a,b,c,d,e,f=[ ~a,~b,~c,~d,~e,~f ],
5790 /*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 ],
5791 /*3*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],
5792 /*4*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],
5793 /*5*/ [ a = a/~bi, b = b*~bi, c = c, d = d*~bi, e = e, f = f*~bi ],
5794 /*6*/ [ a = a*~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f/~bi ],
5795 /*7*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d, e = e, f = f ],
5796 /*8*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
5797 /*9*/ [ a = a*~bi, b = b, c = c, d = d*~bi, e = e*~bi, f = f*~bi ],
5798 /*10*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],
5799 /*11*/ [ a = a/~bi, b = b/~bi, c = c/~bi, d = d*~bi, e = e, f = f ],
5800 /*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 ],
5801 /*13*/ [ a = a, b = b, c = c, d = d*~bi, e = e, f = f*~bi ],
5802 /*14*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],
5803 /*15*/ [ a = a/~bi, b = b, c = c/~bi, d = d, e = e/~bi, f = f/~bi ],
5804 /*16*/ [ a = a, b = b, c = c*~bi, d = d/~bi, e = e, f = f ],
5805 /*17*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f*~bi ],
5806 /*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 ],
5807 /*19*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e, f = f*~bi ],
5808 /*20*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f/~bi ],
5809 /*21*/ [ a = a, b = b/~bi, c = c*~bi, d = d, e = e, f = f*~bi ],
5810 /*22*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],
5811 /*23*/ [ a = a, b = b, c = c, d = d/~bi, e = e, f = f/~bi ],
5812 /*24*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],
5813 /*25*/ [ a = a*~bi, b = b*~bi, c = c*~bi, d = d, e = e, f = f ],
5814 /*26*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],
5815 /*27*/ [ a = a, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],
5816 /*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 ],
5817 /*29*/ [ a = a, b = b, c = c/~bi, d = d/~bi, e = e, f = f ],
5818 /*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 ],
5819 /*31*/ [ a = a/~bi, b = b*~bi, c = c, d = d, e = e, f = f/~bi ],
5820 /*32*/ [ a = a, b = b/~bi, c = c, d = d, e = e*~bi, f = f ],
5821 /*33*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
5822 /*34*/ [ a = a/~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f*~bi ],
5823 /*35*/ [ a = a*~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f/~bi ],
5824 /*36*/ [ a = a/~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f*~bi ],
5825 /*37*/ [ a = a*~bi, b = b*~bi, c = c, d = d, e = e, f = f ],
5826 /*38*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],
5827 /*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 ],
5828 /*40*/ [ a = a, b = b/~bi, c = c*~bi, d = d/~bi, e = e*~bi, f = f ],
5829 /*41*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f*~bi ],
5830 /*42*/ [ a = a, b = b*~bi, c = c, d = d, e = e/~bi, f = f ],
5831 /*43*/ [ a = a/~bi, b = b, c = c*~bi, d = d*~bi, e = e*~bi, f = f ],
5832 /*44*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],
5833 /*45*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f ],
5834 /*46*/ [ a = a, b = b/~bi, c = c/~bi, d = d*~bi, e = e*~bi, f = f ],
5835 /*47*/ [ a = a, b = b*~bi, c = c*~bi, d = d/~bi, e = e, f = f ],
5836 /*48*/ [ a = a, b = b, c = c/~bi, d = d*~bi, e = e, f = f ],
5837 /*49*/ [ a = a, b = b, c = c*~bi, d = d, e = e/~bi, f = f*~bi ],
5838 /*50*/ [ a = a*~bi, b = b/~bi, c = c, d = d, e = e*~bi, f = f/~bi ],
5839 /*51*/ [ a = a/~bi, b = b, c = c, d = d/~bi, e = e/~bi, f = f*~bi ],
5840 /*52*/ [ a = a*~bi, b = b, c = c/~bi, d = d*~bi, e = e, f = f/~bi ],
5841 /*53*/ [ a = a, b = b*~bi, c = c, d = d, e = e, f = f ],
5842 /*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 ],
5843 /*55*/ [ a = a, b = b, c = c, d = d*~bi, e = e/~bi, f = f ],
5844 /*56*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f/~bi ],
5845 /*57*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e*~bi, f = f ],
5846 /*58*/ [ a = a/~bi, b = b, c = c*~bi, d = d/~bi, e = e, f = f*~bi ],
5847 /*59*/ [ a = a*~bi, b = b, c = c/~bi, d = d, e = e, f = f/~bi ],
5848 /*60*/ [ a = a/~bi, b = b, c = c, d = d, e = e, f = f*~bi ],
5849 /*61*/ [ a = a*~bi, b = b, c = c, d = d, e = e, f = f ],
5850 /*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 ],
5851 /*63*/ [ a = a, b = b*~bi, c = c/~bi, d = d, e = e, f = f*~bi ],
5852 /*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 ]
5854 /*1*/ [ a = a, b = b*~bi, c = c, d = d*~bi, e = e, f = f*~bi ],...
5859 /*1*/ #a,b,c,d,e,f=[ ~a,~b,~c,~d,~e,~f ],
5860 /*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 ],
5861 /*3*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
5862 /*4*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1/~bi ],
5863 /*5*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],
5864 /*6*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1/~bi ],
5865 /*7*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1 ],
5866 /*8*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],
5867 /*9*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1*~bi ],
5868 /*10*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],
5869 /*11*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],
5870 /*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 ],
5871 /*13*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],
5872 /*14*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],
5873 /*15*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1/~bi, f = f*~n1/~bi ],
5874 /*16*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],
5875 /*17*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
5876 /*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 ],
5877 /*19*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1, f = f*~n1*~bi ],
5878 /*20*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1/~bi ],
5879 /*21*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
5880 /*22*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],
5881 /*23*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1, f = f*~n1/~bi ],
5882 /*24*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
5883 /*25*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1, e = e*~n1, f = f*~n1 ],
5884 /*26*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],
5885 /*27*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1 ],
5886 /*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 ],
5887 /*29*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],
5888 /*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 ],
5889 /*31*/ [ a = a*~n1/~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],
5890 /*32*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],
5891 /*33*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],
5892 /*34*/ [ a = a*~n1/~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1*~bi ],
5893 /*35*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1/~bi ],
5894 /*36*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],
5895 /*37*/ [ a = a*~n1*~bi, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],
5896 /*38*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1 ],
5897 /*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 ],
5898 /*40*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1*~bi, f = f*~n1 ],
5899 /*41*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
5900 /*42*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1/~bi, f = f*~n1 ],
5901 /*43*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],
5902 /*44*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],
5903 /*45*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1 ],
5904 /*46*/ [ a = a*~n1, b = b*~n1/~bi, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1*~bi, f = f*~n1 ],
5905 /*47*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1 ],
5906 /*48*/ [ a = a*~n1, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1 ],
5907 /*49*/ [ a = a*~n1, b = b*~n1, c = c*~n1*~bi, d = d*~n1, e = e*~n1/~bi, f = f*~n1*~bi ],
5908 /*50*/ [ a = a*~n1*~bi, b = b*~n1/~bi, c = c*~n1, d = d*~n1, e = e*~n1*~bi, f = f*~n1/~bi ],
5909 /*51*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1/~bi, e = e*~n1/~bi, f = f*~n1*~bi ],
5910 /*52*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1*~bi, e = e*~n1, f = f*~n1/~bi ],
5911 /*53*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],
5912 /*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 ],
5913 /*55*/ [ a = a*~n1, b = b*~n1, c = c*~n1, d = d*~n1*~bi, e = e*~n1/~bi, f = f*~n1 ],
5914 /*56*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],
5915 /*57*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1*~bi, f = f*~n1 ],
5916 /*58*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1*~bi, d = d*~n1/~bi, e = e*~n1, f = f*~n1*~bi ],
5917 /*59*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1/~bi ],
5918 /*60*/ [ a = a*~n1/~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
5919 /*61*/ [ a = a*~n1*~bi, b = b*~n1, c = c*~n1, d = d*~n1, e = e*~n1, f = f*~n1 ],
5920 /*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 ],
5921 /*63*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1/~bi, d = d*~n1, e = e*~n1, f = f*~n1*~bi ],
5922 /*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 ]
5924 /*1*/ [ a = a*~n1, b = b*~n1*~bi, c = c*~n1, d = d*~n1*~bi, e = e*~n1, f = f*~n1*~bi ],...