From 869eb716672f99892315d9b8c2c404cba88297ee Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Mon, 3 May 2021 13:50:03 -0700 Subject: [PATCH] Tunable synth --- audio.scd | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/audio.scd b/audio.scd index c164d90..57c4791 100644 --- a/audio.scd +++ b/audio.scd @@ -1,6 +1,6 @@ s = Server.local; s.waitForBoot { - var module, sound1, sound2; + var module, sound; // Connect to OSC thisProcess.openUDPPort(5005); @@ -10,11 +10,10 @@ s.waitForBoot { // Create the synth definition and load it 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); // 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]); };