Browse Source

Tunable synth

tags/kitchen
Pete Shadbolt 3 years ago
parent
commit
869eb71667
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      audio.scd

+ 3
- 4
audio.scd View File

@@ -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]);
};

Loading…
Cancel
Save