«first steps with NamedControl» by emergent

on 05 Dec'20 18:15 in

my first experiment with NamedControl shorthand notation.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(
SynthDef.new(\syn2, {
	var sig, env;
	env = Env.adsr(0.01, 0.3, 0.6, 1).kr(2, \gate.kr(1)); 
	sig = SinOsc.ar(\freq.kr([440, 439, 441, 220, 219],\freqlag.kr(2)), 0, 0.8);
	sig = Splay.ar(sig, 0.8);
	sig = sig * env * \amp.kr(0.15);
	Out.ar(\out.kr(0), sig)
}).add;
)

y = Synth.new(\syn2);
y.set(\freq, [220, 280, 330, 439])
y.set(\freqlag, 1.2)

// execute the following in any order you like...
y.set(\freq, [110, 165, 220, 330, 440])
y.set(\freq, [100, 150, 175, 200, 300])
y.set(\freq, [80, 120, 160, 200, 220])
y.set(\freqlag, 4)

y.set(\gate, 0);
raw 575 chars (focus & ctrl+a+c to copy)
reception
comments