«oscillator based kickdrums» by Bernhard Zitz

on 22 Dec'24 01:03 in kickgabberbassdrum

oscillator based kickdrums. Yes I like distortion on kickdrums :)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/// 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;
)
raw 3649 chars (focus & ctrl+a+c to copy)
reception
comments