From cdd91cd7e1834ec8e14e87763b5cda11edaa1b5d Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Sat, 29 May 2021 16:49:03 -0700 Subject: [PATCH] Move stuff around --- fm.scd | 28 ---------------------------- curves.py => stuff/curves.py | 0 dev.scd => stuff/dev.scd | 0 osctest.py => stuff/osctest.py | 0 stuff/sine.scd | 17 +++++++++++++++++ 5 files changed, 17 insertions(+), 28 deletions(-) delete mode 100644 fm.scd rename curves.py => stuff/curves.py (100%) rename dev.scd => stuff/dev.scd (100%) rename osctest.py => stuff/osctest.py (100%) create mode 100644 stuff/sine.scd 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"); +};