«minor scale filtered pulsewave demands» by Luka P.

on 22 Oct'20 14:46 in filteredscalesdemand ugens

I was playing around trying to understand how Demand UGens work and come up with this rave-ish example.

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
(
{
	arg amp=0.1;
	var a, trig, basefreq, snd, cutoffmod, rqmod;
	
	a = Dseq([0, 2, 3, 5, 7, 8, 10, 12], inf);
	trig = Impulse.kr(4);
	basefreq = Demand.kr(trig, 0, a) + 38;
	basefreq = basefreq.midicps;
	cutoffmod = LFNoise2.ar(0.2).range(100,1500);
	rqmod = LFNoise2.ar(0.2).range(1,0.05);

	snd = (Pulse.ar(basefreq + 1 * SinOsc.kr(0.1.rand).range(0.99,1.010)) * amp) 
	+ (Pulse.ar(basefreq + 2 * SinOsc.kr(0.1.rand).range(0.99,1.010)) * amp) 
	+ (Pulse.ar(basefreq + 3 * SinOsc.kr(0.1.rand).range(0.99,1.01)) * amp)
	+ (Pulse.ar(basefreq + 4 * SinOsc.kr(0.1.rand).range(0.99,1.01)) * amp)
	+ (Pulse.ar(basefreq + 5 * SinOsc.kr(0.1.rand).range(0.99,1.01)) * amp)
	+ (Pulse.ar(basefreq + 2 * SinOsc.kr(0.1.rand).range(0.99,1.010)) * amp) 
	+ (Pulse.ar(basefreq + 3 * SinOsc.kr(0.1.rand).range(0.99,1.01)) * amp)
	+ (Pulse.ar(basefreq + 4 * SinOsc.kr(0.1.rand).range(0.99,1.01)) * amp)
	+ (Pulse.ar(basefreq + 5 * SinOsc.kr(0.1.rand).range(0.99,1.01)) * amp)
	+ (Pulse.ar(basefreq + 6 * SinOsc.kr(0.1.rand).range(0.99,1.01)) * amp);
	
	
	snd = LeakDC.ar(snd);
	snd = RLPF.ar(snd, cutoffmod, rqmod);
	snd = Limiter.ar(in: snd, level: 0.8, dur:0.001);
	snd.dup;
	
}.play)
raw 1199 chars (focus & ctrl+a+c to copy)
reception
comments