-
Notifications
You must be signed in to change notification settings - Fork 10
/
werkit.scd
34 lines (29 loc) · 948 Bytes
/
werkit.scd
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
s/*
Mitchell Sigman (2011) Steal this Sound. Milwaukee, WI: Hal Leonard Books
pp. 14-15
Adapted for SuperCollider and elaborated by Nick Collins
http://www.sussex.ac.uk/Users/nc81/index.html
under GNU GPL 3 as per SuperCollider license
Minor modifications by Bruno Ruviaro, June 2015.
*/
(
SynthDef("werkit", {
arg out = 0, pan = 0.0, freq = 440, amp = 0.1, gate = 1, cutoff = 100, rq = 0.1, att = 0.01, dec = 0, sus = 1, rel = 1, delay = 0.3;
var source, filter, env, snd, delayEnv;
source = WhiteNoise.ar;
filter = BLowPass4.ar(source, freq, rq) * 0.3;
env = EnvGen.ar(
envelope: Env.adsr(att, dec, sus, rel, amp),
gate: gate,
doneAction: 2);
snd = (0.7 * filter + (0.3 * filter.distort)) * env;
Out.ar(out, Pan2.ar(snd, pan));
}).add;
Pbind(
\instrument, "werkit",
\amp, Pwhite(0.05, 0.1),
\note, Pseq([-1, 1, -1, 1, 3, 6, 9, 11, 12, 15, 17, 18, 19, 20, 23, 26], inf),
\dur, 0.25,
\rq, Pwhite(0.005, 0.01)
).play;
)