Skip to content

Instantly share code, notes, and snippets.

@ALOUT
Created May 30, 2014 10:21
Show Gist options
  • Save ALOUT/58dd52769f230b502557 to your computer and use it in GitHub Desktop.
Save ALOUT/58dd52769f230b502557 to your computer and use it in GitHub Desktop.
808LikeなKick
SynthDef("808kick", { arg gate=0;
var daNoise,daOsc,env1,env2,env3;
env1=Env.perc(0.001,1,80,-20);
env2=Env.perc(0.001,1,1,-8);
env3=Env.perc(0.001,1,80,-8);
daNoise=LPF.ar(WhiteNoise.ar(1),EnvGen.kr(env1,gate)+20);
daOsc=LPF.ar(SinOsc.ar(EnvGen.kr(env3,gate)+20),200);
Out.ar(0,Pan2.ar(
Mix.ar([daNoise,daOsc]),
0,
EnvGen.kr(env2,gate,doneAction: 2)
);
);
}
).load(s);
Synth("kickDrum",[\gate,1]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment