Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: oscillator based kickdrums
name
code content
/// Kicks and Bassdrums ///SinOsc Kick ( SynthDef("kicksin", { arg pitchkick=40, pitchrel=0.17, pitchmod=5, pitchcrv=(-7), amprel=0.76, ampcrv=(-2),amposc=1, clickrel=0.18, clickamp=0.31,clickcrv=(-9), dist=4, pan=(0),amp=0.41, out=0; var env0, env1, envclick, click, sig; env0 = EnvGen.kr(Env.perc(0.01,amprel,amposc,ampcrv), doneAction:2); env1 = EnvGen.kr(Env.perc(0.01,pitchrel,pitchmod,pitchcrv),1,1,1); envclick=EnvGen.kr(Env.perc(0.0001,clickrel,clickamp,clickcrv)); click = LPF.ar(WhiteNoise.ar(1),((env1/pitchmod)*10000)+40,envclick); sig = click + SinOsc.ar(env1*pitchkick, pi/2, env0); sig = LeakDC.ar(sig,0.996); sig = (sig*dist).tanh; sig = Pan2.ar(sig,pan,amp); Out.ar(out,sig); }).play; ) ///TriOsc Kick ( SynthDef("kicktri", { arg pitchkick=49, pitchrel=0.17, pitchmod=4, pitchcrv=(-7), amprel=0.66, ampcrv=(-3),amposc=1, clickrel=0.28, clickamp=0.41,clickcrv=(-8), dist=4, pan=(0),amp=0.41, out=0; var env0, env1, envclick, click, sig; env0 = EnvGen.kr(Env.perc(0.01,amprel,amposc,ampcrv), doneAction:2); env1 = EnvGen.kr(Env.perc(0.01,pitchrel,pitchmod,pitchcrv),1,1,1); envclick=EnvGen.kr(Env.perc(0.0001,clickrel,clickamp,clickcrv)); click = LPF.ar(WhiteNoise.ar(1),((env1/pitchmod)*10000)+40,envclick); sig = click + LFTri.ar(env1*pitchkick, 1, env0); sig = LeakDC.ar(sig,0.996); sig = (sig*dist).tanh; sig = Pan2.ar(sig,pan,amp); Out.ar(out,sig); }).play; ) ///Square Kick ( SynthDef("kicksqr", { arg pitchkick=49, pitchrel=0.23, pitchmod=3, pitchcrv=(-7), amprel=1.26, ampcrv=(-3),amposc=1, clickrel=0.38, clickamp=0.71,clickcrv=(-8), dist=2, pan=(0),amp=0.71, out=0; var env0, env1, envclick, click, sig; env0 = EnvGen.kr(Env.perc(0.01,amprel,amposc,ampcrv), doneAction:2); env1 = EnvGen.kr(Env.perc(0.01,pitchrel,pitchmod,pitchcrv),1,1,1); envclick=EnvGen.kr(Env.perc(0.0001,clickrel,clickamp,clickcrv)); click = LPF.ar(WhiteNoise.ar(1),((env1/pitchmod)*10000)+40,envclick); sig = click + LFPulse.ar(env1*pitchkick, 0.5,0.5,env0); sig = LPF.ar(sig,pitchkick*((env0**3*225)+1)); sig = LeakDC.ar(sig,0.996); sig = (sig*dist).tanh; sig = Pan2.ar(sig,pan,amp); Out.ar(out,sig); }).play; ) ///Para Kick ( SynthDef("kickpara", { arg pitchkick=49, pitchrel=0.23, pitchmod=4, pitchcrv=(-7), amprel=0.91, ampcrv=(-5),amposc=1, clickrel=0.11, clickamp=0.14,clickcrv=(-9), dist=7, wet=0.5, pan=(0),amp=1, out=0; var env0, env1, envclick, click, sig; env0 = EnvGen.kr(Env.perc(0.001,amprel,amposc,ampcrv), doneAction:2); env1 = EnvGen.kr(Env.perc(0.001,pitchrel,pitchmod,pitchcrv),1,1,1); envclick=EnvGen.kr(Env.perc(0.0001,clickrel,clickamp,clickcrv)); click = LPF.ar(WhiteNoise.ar(0.71)+Crackle.ar(1.9,1),(11000*(((env1/pitchmod))**3)),envclick); sig = click + LFPar.ar(env1*pitchkick,2,env0); sig = LeakDC.ar(sig,0.996); sig = Balance2.ar(sig,(sig*dist).tanh/2,(wet*2)-1); sig = Mix.ar(sig/2); sig = Pan2.ar(sig,pan,amp); Out.ar(out,sig); }).play; )
code description
oscillator based kickdrums. Yes I like distortion on kickdrums :)
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change