Created
June 5, 2014 11:45
-
-
Save ALOUT/65d75da7c5b90980e43f to your computer and use it in GitHub Desktop.
ベースSynthDef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SynthDef("Bass", { | |
arg amp=0.7, freq=0, gate=1; | |
var out,env,sweep; | |
sweep = Impulse.kr(4).round; | |
out = SinOsc.ar(freq,(Sweep.ar(sweep, 2pi * [52.8, 200]) + (pi/6)).wrap(-pi, pi), [1, 0.1]).mean.tanh; | |
env = EnvGen.kr( | |
Env([0.1, 0.5, 0.4, 0], [0, 0.2, 0.1], -5), | |
gate, | |
doneAction:2); | |
out = out * env; | |
out = out.softclip * amp; | |
out = Pan2.ar(out); | |
Out.ar(0, out); | |
}).send(s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment