-/*Order of execution to run script and record: Hit Ctrl/Cmd - Enter inside the "load synth functions" parenthesis,
-click on the same line as "s.record;" (above the "load synth functions" parenthesis) and hit Ctrl/Cmd - Enter, then
-hit Ctrl/Cmd - Enter inside the "3 - Task" parenthesis above. The record file location will be found in the post window. Just leave
-out the hit record step to run the script without recording.
-Note: You must load the timewave synth program and press the "synth0" button at least once before this script can run.*/
+/*Order of execution to run script and record(goes from bottom to top):
+1. Hit "Ctrl/Cmd - Enter" anywhere inside the "LOAD SYNTH FUNCTIONS" parenthesis,
+2. Click on the same line as "START RECORDING;" (above the "LOAD SYNTH FUNCTIONS" parenthesis) and hit "Ctrl/Cmd - Enter",
+3. Hit "Ctrl/Cmd - Enter" anywhere inside the "TASK" parenthesis above the "START RECORDING;" line...
+The record file location will be found in the post window...
+Leave out #2 to run the script without recording...
+Important Note: You must load the Timewave Synthesizer program and press the "synth0" button at least once before this script can run.*/
-((// 3 - Task
+((//3 - TASK
t = Task({~st = 0; ~trace = {("event-"++(~st = ~st + 1).asString).postln;};
~vol = 0.005;~vol1 = ~vol;~vol2 = ~vol;~vol3 = ~vol;~vol4 = ~vol;~vol5 = ~vol;~vol6 = ~vol;~vol7 = ~vol;~vol8 = ~vol;~vol9 = ~vol;~vol10 = ~vol;~vol11 = ~vol;~vol12 = ~vol;
1.do({
//fade out function
- x=0.00005;
- 100.do({
- ~vol1=~vol1-x;
- ~vol2=~vol2-x;
- ~vol3=~vol3-x;
- ~vol4=~vol4-x;
- ~vol5=~vol5-x;
- ~vol6=~vol6-x;
- ~vol7=~vol7-x;
- ~vol8=~vol8-x;
- ~synthflow.value;
- 0.1.wait;
- });
+ x=0.00005;100.do({~vol1=~vol1-x;~vol2=~vol2-x;~vol3=~vol3-x;~vol4=~vol4-x;~vol5=~vol5-x;~vol6=~vol6-x;~vol7=~vol7-x;~vol8=~vol8-x;~synthflow.value;0.1.wait;});
//stop everything
~synthfree.value; 2.wait; s.stopRecording;
t.play;
);
-s.record; // 2 - start recording
-s.stopRecording; // stop recording
+s.record; //2 - START RECORDING
+s.stopRecording; // STOP RECORDING
-(// 1 - load synth functions
+(//1 - LOAD SYNTH FUNCTIONS
~synthopen = {
case
{((~l1a.isRunning == false) and: (~l1a1.isRunning == false)) or: ~l1a1.isRunning == true}{