瀏覽代碼

Tunable synth

tags/kitchen
Pete Shadbolt 3 年之前
父節點
當前提交
869eb71667
共有 1 個檔案被更改,包括 3 行新增4 行删除
  1. +3
    -4
      audio.scd

+ 3
- 4
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]);
};

Loading…
取消
儲存