«Locked In» by 56228375

on 29 Nov'20 14:15 in 8bitdarkgenerativesoundscapeominousclaustrophic

a surprisingly rich soundscape in a few lines of code (lucky accident)

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
// what can it sound like? see: https://www.youtube.com/watch?v=dRmY3tEwZyE 
// the youtube version has been sent through an additional reverb pedal, but
// you don't need the pedal to get something that sounds interesting

(
s.options.memSize_(16384*10);
s.reboot;
s.waitForBoot({
	
	Ndef(\bits, {
		var t = PulseCount.ar(Impulse.ar(8e3));
		var u = PulseCount.ar(Impulse.ar(7009));
		var sig = HPF.ar(
			(
				((t * 15) & (t >> 5)) |
				((t * 5) & (t >> [3, 4])) |
				((t * 2) & (t >> 9)) |
				((t * 8) & (t >> 11)) |
				(((t*t) & t) | (t >> 3))
				- 3 % 256
			) / 127-1 * 3
			, 20
		) * 0.1;
		var sig2 = LPF.ar(HPF.ar(gcd(t*u, u+t), WhiteNoise.ar()*2000 + 1000), 20);
		sig2 = sig2*sig;
		sig = 0.3*Splay.ar(Limiter.ar(Greyhole.ar(sig + sig2, sig, 0.5, sig), 0.5).flatten);
	}).play;
});
)
raw 829 chars (focus & ctrl+a+c to copy)
reception
comments
eprayner user 06 Dec'22 05:17

hey, I'm just starting to learn SuperCollider, so apologies for this. When I copy paste this into SuperCollider 3.13.0-rc1 I get: ERROR: Class not defined. In general, the code here does not work for me. Can you tell me why?

56228375 user 09 Dec'22 21:36

I think you are missing the sc3plugins. You need to download and install them separately (or build them yourself, if you built supercollider from code yourself)

56228375 user 09 Dec'22 21:36

I think you are missing the sc3plugins. You need to download and install them separately (or build them yourself, if you built supercollider from code yourself)

56228375 user 09 Dec'22 21:36

I think you are missing the sc3plugins. You need to download and install them separately (or build them yourself, if you built supercollider from code yourself)

ales.zemene user 29 Dec'22 05:15

sehr beeindruckend