«tired pads» by xffff

on 14 Jul'12 01:14 in ambientpadsdynklanksubtractivesynthesispinknoise

knackered

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
// this is what I write when I didn't sleep last night.. zzzzzz
// easy subsynth with dynklank and simple scale

(

fork{ 
	loop{
		var time;
		time = 5.rand;
		{
			var sound, freqs, envs, rings, numvoices, env;
			numvoices = 40;
			freqs = {(Scale.major(\just).degrees+26+
				(0,12..110).choose).choose}.dup(numvoices).midicps;
			rings = {1.0.rand}.dup(numvoices);
			envs = { EnvGen.kr(Env.linen( time/3.0.rand, 
				time/3.0.rand, time/3.0.rand, 1.0.rand ) ) }.dup(numvoices);
			
			sound = PinkNoise.ar(numvoices.reciprocal!2);
			sound = DynKlank.ar(`[freqs,envs,rings], sound );
			sound = sound * EnvGen.kr(Env.linen(time.rand,time/3,time.rand),doneAction:2);
			
			sound = HPF.ar(sound, 120);
			
			4.do{sound = DelayC.ar(sound, 0.4, [0.4.rand,0.4.rand], 1/8, sound) };
					
			//good call - lets turn this down	
			sound*0.2;
		}.play;
	time.rand.wait;
	}
}
)
raw 908 chars (focus & ctrl+a+c to copy)
reception
comments
vividsnow user 14 Jul'12 22:55

got cpu overload )

Erik Natanael Gustafsson user 13 Aug'12 11:42

Nice sound, good for learning. I prefer setting the PinkNoise amp/mul a bit lower though.

mstep user 17 Sep'12 14:30

sounds interesting! but i got a "exception in real time: alloc failed"-error after about 2 minutes runtime.

xffff user 22 Sep'12 02:25

yep - sorry not hugely tested - just train journey tunes. think a few of my uploads have this issue... can't think of a logical fix right now apart from dropping voicecount to 24 and comment out those delay lines. likely make a huge improvement.

bad headphones + train sound = huge amplitude (should have really listened to it properly before I uploaded, but you're right @erik ).

supercollider is great on trains eh? :)