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