| @@ -1,6 +1,6 @@ | |||||
| s = Server.local; | s = Server.local; | ||||
| s.waitForBoot { | s.waitForBoot { | ||||
| var module, sound1, sound2; | |||||
| var module, sound; | |||||
| // Connect to OSC | // Connect to OSC | ||||
| thisProcess.openUDPPort(5005); | thisProcess.openUDPPort(5005); | ||||
| @@ -10,11 +10,10 @@ s.waitForBoot { | |||||
| // Create the synth definition and load it | // Create the synth definition and load it | ||||
| module = SynthDef.new("module", { arg hue, saturation, value; | module = SynthDef.new("module", { arg hue, saturation, value; | ||||
| Out.ar(0, SinOsc.ar(hue)); | |||||
| Out.ar(0, SinOsc.ar(MouseX.kr(220, 1000))); | |||||
| }); | }); | ||||
| module.load(s); | module.load(s); | ||||
| // Make a sound | // Make a sound | ||||
| sound1 = Synth.new("module", [\hue, 440, \saturation, 100, \value, 500]); | |||||
| sound2 = Synth.new("module", [\hue, 800, \saturation, 100, \value, 500]); | |||||
| sound = Synth.new("module", [\hue, 440, \saturation, 100, \value, 500]); | |||||
| }; | }; | ||||