Skip to content

Instantly share code, notes, and snippets.

@ALOUT
Last active August 29, 2015 14:01
Show Gist options
  • Save ALOUT/9594a02b527376ef72b7 to your computer and use it in GitHub Desktop.
Save ALOUT/9594a02b527376ef72b7 to your computer and use it in GitHub Desktop.
サイン波&MoogFF(SynthDefの定義からPbindを使用した簡単なシーケンス)
(
SynthDef(\SawAndMoogFilter, { |out, freq=440, amp=0.1, gate=1,cutoff=1000,resonance=2|
var snd = Splay.ar(SinOsc.ar(freq * [1,2,3,4], mul:0.25));
snd = MoogFF.ar(snd, cutoff * 10, resonance);
snd = snd * EnvGen.ar(Env.adsr(0.501, 0.1, 0.7, 0.8), gate, doneAction:2);
OffsetOut.ar(out, snd * amp)
}).add;
);
(
Pdef(\a).quant = 8;
Pdef(\a, Pbind(
\instrument, \SawAndMoogFilter,
\scale, Scale.dorian,
\octave, Prand([3,2,4],inf),
\degree, Pseq([[1,3,5], \,1,[4,7,11], \,3,[1,3,5], \],inf),
\amp, Pseq([0.5,0.7,0.9,0.6],inf),
\gate, Pseq([0.5,0.7,0.2,0.6],inf),
\cutoff, Pseq([0,100,10,200,150,300,10,200],inf),
\resonance, Pseq([3.5,1.7,3.8,2.6],inf),
\strum, Prand([0.75,0,0.125],inf) ,
\sustain, 0.2,
\dur,1/8
)
).play;
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment