Pārlūkot izejas kodu

Tunable synth

tags/kitchen
Pete Shadbolt pirms 3 gadiem
vecāks
revīzija
869eb71667
1 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. +3
    -4
      audio.scd

+ 3
- 4
audio.scd Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt