«Midterm Q2» by unknown

on 31 Oct'16 07:54 in
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
(
SynthDef("sawSynth",{arg freq, amp;
	var env, snd;

	env = Env.perc(
		attackTime:0.1,
		releaseTime:2,
		level:amp).kr(doneAction: 2);
	snd = Saw.ar(
		freq:freq*[0.99, 1.0, 1.001, 1.008],
		mul: env);
	snd = LPF.ar(in: snd,freq:2000);
	snd = Splay.ar(snd);
	Out.ar(0,snd);

}).add;
)

(
Pbind(
    \instrument, "sawSynth",
	\freq, Pwhite(300, 700, inf),
    \amp, Pwhite(0.15, 0.2)
).play;
)
raw 419 chars (focus & ctrl+a+c to copy)
reception
comments
Bruno Ruviaro user 31 Oct'16 22:47

correct

1pt