diff --git a/fm.scd b/fm.scd deleted file mode 100644 index a9d086a..0000000 --- a/fm.scd +++ /dev/null @@ -1,28 +0,0 @@ -s = Server.local; -s.waitForBoot { - var synth, module; - - // Create the synth definition and load it - module = SynthDef.new("module", { - var mod, car, modPartial=2.401, carPartial=1, index=3, freq=440, mul=0.05; - - mod = SinOsc.ar( - freq * modPartial, - 0, - 200 - ); - - car = SinOsc.ar( - (freq * carPartial) + mod, - 0, - 1 - ); - - Out.ar(0, Disintegrator.ar(car, MouseX.kr(0, 1))); - }); - - module.load(s); - s.sync; - - synth = Synth.new("module"); -}; diff --git a/curves.py b/stuff/curves.py similarity index 100% rename from curves.py rename to stuff/curves.py diff --git a/dev.scd b/stuff/dev.scd similarity index 100% rename from dev.scd rename to stuff/dev.scd diff --git a/osctest.py b/stuff/osctest.py similarity index 100% rename from osctest.py rename to stuff/osctest.py diff --git a/stuff/sine.scd b/stuff/sine.scd new file mode 100644 index 0000000..c2ae2e2 --- /dev/null +++ b/stuff/sine.scd @@ -0,0 +1,17 @@ +s = Server.local; +s.waitForBoot { + var synth, module; + + // Create the synth definition and load it + module = SynthDef.new("module", { + var panner; + var sin = SinOsc.ar(440); + panner = LinPan2.ar(sin, MouseX.kr(-1, 1), 1); + Out.ar(0, panner); + }); + + module.load(s); + s.sync; + + synth = Synth.new("module"); +};