OSDN Git Service

Fixed bugs, and others
[timewavesynth/Timewave_Synthesizer.git] / timewavesynth3script.scd
index e6dcc63..27cd587 100644 (file)
@@ -10,11 +10,11 @@ Press "Ctrl/Cmd - Period" to stop synth/free the sever.
 You can compose a piece, and find guides for doing so, inside the "//3 - TASK" function. */
 
 ((//3 - TASK
-       t = Task({/*trace*/ ~st = 0; ~trace = {("event-"++(~st = ~st + 1).asString).postln;}; 3.do(x = 0; {("vol"++(x=x+1)).asSymbol.envirPut(/*volume*/ 0.005)});
+       t = Task({/*trace*/ ~st = 0; ~trace = {("event-"++(~st = ~st + 1).asString).postln;}; 3.do(x = 0; {("vol"++(x=x+1)).asSymbol.envirPut(/*volume*/ ~vol)});
                1.do({
 
                        //duration of each chord
-                       a = 38.832815729998;
+                       a = 12;
 
                        //copy and paste "saved" chords from the "copy" button inside the synthesizer program here:
                        //choose to change each duration individually by changing the "a" variable in the code below this line, as well as "synthopen/synthflow"
@@ -28,11 +28,11 @@ You can compose a piece, and find guides for doing so, inside the "//3 - TASK" f
                        [~f1=654.05453931384,~f2=879.03193048766,~f3=941.25430167146,~f4=521.10543213641,~f5=521.10543213641,~f6=521.10543213641,~f7=521.10543213641,~f8=521.10543213641]; ~synthflow.value; ~trace.value; (a).wait;
 
                        //fade out function
-                       100.do({3.do(x = 0; {("vol"++(x=x+1)).asSymbol.envirPut(("vol"++x).asSymbol.envirGet - 0.00005)}); ~synthflow.value; 0.1.wait;});
+                       100.do({3.do(x = 0; {("vol"++(x=x+1)).asSymbol.envirPut(("vol"++x).asSymbol.envirGet - (~vol/100))}); ~synthflow.value; 0.1.wait;});
 
                        //stop everything
                        ~synthfree.value; 2.wait; s.stopRecording;
-                       3.do(x = 0; {("vol"++(x=x+1)).asSymbol.envirPut(0.005)});
+                       3.do(x = 0; {("vol"++(x=x+1)).asSymbol.envirPut(~vol)});
 
 });}););
 t.play;
@@ -70,7 +70,7 @@ s.stopRecording; // STOP RECORDING
                                case
                                {~sendreplysynthdef_on == 0}{#s1_1,s1_2,s1_3 = \gsineicfld6!3;}
                                {~sendreplysynthdef_on == 1}{#s1_1,s1_2,s1_3 =
-                                       [\gsineicfld6_f1, \gsineicfld6_f2, \gsineicfld6_f3];};
+                                       [\gsineicfld6_f1, \gsineicfld6_f2, \gsineicfld6_f3]; ~sendreply_oscfunc_array.value;};
                                s.makeBundle(0, {
                                        ~l1a = Synth(s1_1, [\dur, ~f1,    \vol, vol1]).register;    ~l1b = Synth(s2, [\dur, ~f1,    \vol, vol1]);
                                        ~l1c = Synth(s3, [\dur, ~f1/~icd3,  \vol, vol1]);   ~l1d = Synth(s4, [\dur, ~f1/~icd3,  \vol, vol1]);
@@ -114,7 +114,7 @@ s.stopRecording; // STOP RECORDING
                                case
                                {~sendreplysynthdef_on == 0}{#s1_1,s1_2,s1_3 = \gsineicfld6!3;}
                                {~sendreplysynthdef_on == 1}{#s1_1,s1_2,s1_3 =
-                                       [\gsineicfld6_f1, \gsineicfld6_f2, \gsineicfld6_f3];};
+                                       [\gsineicfld6_f1, \gsineicfld6_f2, \gsineicfld6_f3]; ~sendreply_oscfunc_array.value;};
                                s.makeBundle(0, {
                                        ~l1a1 = Synth(s1_1, [\dur, ~f1,    \vol, vol1]).register;    ~l1b1 = Synth(s2, [\dur, ~f1,    \vol, vol1]);
                                        ~l1c1 = Synth(s3, [\dur, ~f1/~icd3,  \vol, vol1]);   ~l1d1 = Synth(s4, [\dur, ~f1/~icd3,  \vol, vol1]);