«bytebeat homage» by blueprint

on 17 Mar'23 19:54 in math

// these are variations on http://sccode.org/1-5ei#c1021 // my variations are based on bytebeat stuff I did for the midiboy, arduino code // here https://github.com/poetaster/bytebeats/blob/master/bytebeats.ino // that thing draws pictures, too.

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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// these are variations on http://sccode.org/1-5ei#c1021
// my variations are based on bytebeat stuff I did for the midiboy, arduino code
// here https://github.com/poetaster/bytebeats/blob/master/bytebeats.ino
// that thing draws pictures, too.

//  t / 13 >> (1 + ((t >> 12) & 3)) | i / 2 >> 2 & (t / 6) >> 7 | t & 31 * t * (i >> 8)
// (t / 3 >> (t % 40 + 5) | t / (24 + t & 3) >> (t % (15 - ((t >> 15) % 8) * 6) + 5)) / 8

// one more noise than ....
(
	Ndef(\bits1, {
		var t = PulseCount.ar(Impulse.ar(8e3));
		var u = PulseCount.ar(Impulse.ar(7009));
		var sig = HPF.ar(
			(
			    ((t >> 12) | (t >> 8) & (63 & t) >> 4)
				- 3 % 256
			) / - 3 % 512
			, 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;
)

// two, pingy but more than the original.
(
	Ndef(\bits2, {
		var t = PulseCount.ar(Impulse.ar(8e3));
		var u = PulseCount.ar(Impulse.ar(7009));
		var sig = HPF.ar(
			(
			(t / 3 >> (t % 40 + 5)) | ((t / (24 + t & 3) >> (t % (15 - ((t >> 15) % 8) * 6) + 5)) / 8)
				- 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.scope;
)
// three is much like 2 more high frequency reflections.
(
	Ndef(\bits3, {
		var t = PulseCount.ar(Impulse.ar(8e3));
		var u = PulseCount.ar(Impulse.ar(7009));
		var sig = HPF.ar(
			(
			    ( t / 13 >> (1 + ((t >> 12) & 3))) |
			    ( t / 2 >> 2 & (t / 6) >> 7 ) |
			    (t & 31 * t * (t >> 8))
				- 3 % 128
			) / 64-1 * 3
			, 20
		) * 0.1;
		var sig2 = LPF.ar( HPF.ar(gcd(t*u, u+t), WhiteNoise.ar()*2200 + 1000), 20);
		sig2 = sig2*sig;
		sig = 0.3* Splay.ar( Limiter.ar( Greyhole.ar(sig + sig2, sig, 0.5, sig), 0.5).flatten);
	}).play.scope;
)

// four is slow, minimal. very.
(
	Ndef(\bits4, {
		var t = PulseCount.ar(Impulse.ar(8e3));
		var u = PulseCount.ar(Impulse.ar(7009));
		var sig = HPF.ar(
			(
			    (t ** t >> 8) | (t << 3 & 56 ** t)
				- 3 % 32
			) / -3 % 16
			, 20
		) * 0.1;
		var sig2 = LPF.ar( HPF.ar(gcd(t*u, u+t), WhiteNoise.ar()*2200 + 1000), 20);
		sig2 = sig2*sig;
		sig = 0.3* Splay.ar( Limiter.ar( Greyhole.ar(sig + sig2, sig, 0.5, sig), 0.5).flatten);
	}).play.scope;
)

(
	Ndef(\bits5, {
		var t = PulseCount.ar(Impulse.ar(7099));
		var u = PulseCount.ar(Impulse.ar(7009));
		var sig = HPF.ar(
			(
			    t * ((t >> 12 | t >> 8) & 63 & t >> 4)
			    - 3 % 32
			) / -3 % 16
			, 25
		) * 0.1;
		var sig2 = LPF.ar( HPF.ar(gcd(t*u, u+t), WhiteNoise.ar()*2000 + 1001), 20);
		sig2 = sig2*sig;
		sig = 0.3* Splay.ar( Limiter.ar( Greyhole.ar(sig + sig2, sig, 0.5, sig), 0.5).flatten);
	}).play.scope;
)

// really sci fi ... astroid belt mining operation.
(
	Ndef(\bits5, {
		var t = PulseCount.ar(Impulse.ar(8e3));
		var u = PulseCount.ar(Impulse.ar(7009));
		var sig = HPF.ar(
			(
			  ( ( ( ( (t>>12) ** (t>>12) -2 ) %11 *t ) /4 | t>>13 ) & 127)
			)
			, 20
		) * 0.1;
		var sig2 = LPF.ar( HPF.ar(gcd(t*u, u+t), WhiteNoise.ar()*1900 + 800), 10);
		sig2 = sig2*sig;
		sig = 0.3* Splay.ar( Limiter.ar( Greyhole.ar(sig + sig2, sig, 0.5, sig), 0.5).flatten);
	}).play.scope;
)


// noisy swinging wings and whips.
(
	Ndef(\bits6, {
		var t = PulseCount.ar(Impulse.ar(8e3));
		var u = PulseCount.ar(Impulse.ar(7009));
		var sig = HPF.ar(
			(
			   t / 13 >> (1 + ((t >> 12) & 3)) | t / 2 >> 2 & (t / 6) >> 7 | t & 31 * t * (t >> 8)
			    - 3 % 32
			) / - 3 % 64
			, 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.scope;
)

// ping/pong cricket match.
(
	Ndef(\bits7, {
		var t = PulseCount.ar(Impulse.ar(8e3));
		var u = PulseCount.ar(Impulse.ar(7009));
		var sig = HPF.ar(
			(
			    ((t << 1) ** ((t << 1) + (t >> 7)&t >> 12)) |
			    t >> (4 - ( 1 ** 7 & (t >> 19))) |
			    t >> 7
			    - 3 % 64
			) / - 3 % 32
			, 20
		) * 0.1;
		var sig2 = LPF.ar( HPF.ar(gcd(t*u, u+t), WhiteNoise.ar()*1900 + 1000), 20);
		sig2 = sig2*sig;
		sig = 0.3* Splay.ar( Limiter.ar( Greyhole.ar(sig + sig2, sig, 0.9, sig), 0.9).flatten);
	}).play.scope;
)
raw 4492 chars (focus & ctrl+a+c to copy)
reception
comments
56228375 user 23 Apr'23 13:17

nice variations!