dmscene Demos & source

CHIMAERA

chimaera.dmt · 120 BPM · 48 s · 960×600

collablong

notes

An exquisite corpse: four models built one 48-second demo in sequence, each adding twelve seconds without changing a byte of what came before. An eye assembles out of the dark, the camera dives into the pupil, breaches into a night sky and smash-cuts back into fire.

filechimaera.dmt
duration0:48
video960×600 · 30 fps · h264 + audio · 25 MB
song120 BPM · speed 6 · rpb 4 · 8 channels
loop0
renderscale 1 · dither on · master 0.60
uniformskickE clapE hatE bassE sirenE open dive glow spin slit tilt
tagscollablong
source1,256 lines · 57 KB · download

anatomy

25VM programs
4patterns
8palettes
4timeline events
1text / sample / texture
1,256source lines
19inst
0chan
1master
1frame
4pixel
0post
1fn

line composition

pixel 59%inst 17%pattern 11%palette 8%frame 2%fn 1%master 1%timeline 1%title 0%song 0%order 0%pan 0%uniform 0%text 0%

play order

0000111122223333

order list · 16 entries

palettes

abyss5 keys · lines 19–25
hide6 keys · lines 26–33
iris8 keys · lines 34–43
venom7 keys · lines 44–52
brine7 keys · lines 54–62
tallow6 keys · lines 63–70
ember7 keys · lines 73–81
night7 keys · lines 762–770

timeline

0:00 0:12 0:24 0:36 0:48 act act=0 at 0:00 act=1 at 0:12 act=2 at 0:24 act=3 at 0:36
ateventvaluesource
0:00 act 0 L223
0:12 act 1 L224
0:24 act 2 L225
0:36 act 3 L226

Event times are derived from the order list, pattern lengths, BPM and RPB.

resources

kindnameinfovalue
textlogo8CHIMAERA

source

download .dmt
1# @description An exquisite corpse: four models built one 48-second demo in sequence, each adding twelve seconds without changing a byte of what came before. An eye assembles out of the dark, the camera dives into the pupil, breaches into a night sky and smash-cuts back into fire.
2# @tags collab
3# ============================================================================
4# CHIMAERA -- part 1 of 4 -- 0:00 .. 0:12
5# A creature wakes up in pieces: armature rings lock around a closed eye,
6# the lid opens, an iris of wet fibres ignites, and the last three seconds
7# dive into the slit pupil. Ends mid-dive, inside the tunnel.
8#
9# 120 bpm / 6 ticks per row / 4 rows per beat -> one row = 125 ms
10# pattern 0 is 24 rows (3 s, a 6-beat phrase) and loops four times in 12 s.
11# Arrangement is done with `time` inside the instruments, not with the order.
12# ============================================================================
13title CHIMAERA
14song bpm=120 speed=6 rpb=4 channels=8 loop=0 volume=0.60 dither=1
15order 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3
16pan 0.50 0.50 0.62 0.50 0.44 0.36 0.66 0.72
18# ------------------------------------------------------------------ palettes
19palette abyss {
20 0.00 0.000 0.000 0.004
21 0.38 0.006 0.004 0.022
22 0.68 0.020 0.012 0.055
23 0.86 0.050 0.020 0.070
24 1.00 0.000 0.000 0.006
26palette hide {
27 0.00 0.006 0.002 0.008
28 0.30 0.055 0.008 0.035
29 0.55 0.170 0.020 0.060
30 0.76 0.420 0.060 0.075
31 0.90 0.700 0.180 0.110
32 1.00 0.040 0.005 0.010
34palette iris {
35 0.00 0.010 0.004 0.004
36 0.18 0.120 0.012 0.020
37 0.36 0.480 0.060 0.020
38 0.52 0.920 0.220 0.030
39 0.66 1.000 0.520 0.060
40 0.80 1.000 0.830 0.300
41 0.90 1.000 0.980 0.880
42 1.00 0.250 0.030 0.020
44palette venom {
45 0.00 0.002 0.006 0.006
46 0.28 0.004 0.180 0.150
47 0.48 0.020 0.640 0.380
48 0.64 0.300 0.980 0.440
49 0.80 0.820 1.000 0.620
50 0.92 1.000 1.000 0.920
51 1.00 0.010 0.060 0.040
53# section 2: bioluminescent gullet walls, and the amber furnace it warms into
54palette brine {
55 0.00 0.004 0.008 0.016
56 0.22 0.004 0.055 0.075
57 0.40 0.008 0.190 0.150
58 0.58 0.020 0.480 0.320
59 0.74 0.180 0.720 0.300
60 0.88 0.700 0.900 0.420
61 1.00 0.960 1.000 0.850
63palette tallow {
64 0.00 0.010 0.006 0.004
65 0.30 0.110 0.040 0.014
66 0.55 0.480 0.170 0.030
67 0.78 0.980 0.520 0.110
68 0.92 1.000 0.880 0.520
69 1.00 1.000 0.990 0.940
72# section 4: the final furnace (blood-red -> amber -> white-hot)
73palette ember {
74 0.00 0.080 0.006 0.002
75 0.25 0.400 0.020 0.004
76 0.50 0.850 0.120 0.008
77 0.70 1.000 0.420 0.060
78 0.85 1.000 0.820 0.250
79 0.95 1.000 0.980 0.720
80 1.00 0.200 0.020 0.004
83text logo "CHIMAERA"
85# ------------------------------------------------------------------ instruments
86# ch 0: kick. Full weight from the first beat; click brightens as it goes.
87inst kick {
88 f = 42 + 205 * exp(-t * 23) + 58 * exp(-t * 4.2)
89 $p = fract($p + f / sr)
90 body = sin($p * tau) * exp(-t * 7.6)
91 click = hp(noise(), 2400) * exp(-t * 180) * (0.35 + 0.30 * smooth(0, 10, time))
92 out(dist((body * 1.3 + click) * 1.55, 1.9) * 0.40)
95# ch 1: three-burst clap with a short body, dry and wide.
96inst clap {
97 n = hp(noise(), 1300)
98 b1 = exp(-t * 33)
99 b2 = 0.72 * exp(-max(0, t - 0.011) * 54) * step(0.010, t)
100 b3 = 0.52 * exp(-max(0, t - 0.022) * 72) * step(0.021, t)
101 tone = sin(tau * 190 * t) * exp(-t * 42) * 0.42
102 out((n * (b1 + b2 + b3) * 0.95 + tone) * 0.92 * (0.20 + 0.80 * smooth(3.6, 5.0, time)))
105# ch 2: hats. p0 opens the filter and lengthens the tail; later passes ring.
106inst hat {
107 n = hp(noise(), 6600 + 2600 * p0)
108 d = (64 + 58 * p0) * (1 - 0.30 * smooth(4, 11, time))
109 out(n * exp(-t * d) * 0.52 * (0.38 + 0.62 * smooth(0.6, 6.5, time)))
112# ch 3: acid bass. p0 = filter cutoff. The whole channel opens over 9 s.
113inst bass {
114 e = env(0.003, 0.135, 0.32, 0.045)
115 $sub = fract($sub + freq * 0.5 / sr)
116 body = bsaw(ph, freq) * 0.50 + bsqr(ph, 0.36, freq) * 0.30 + sin($sub * tau) * 0.55
117 cut = (95 + 300 * smooth(3.5, 10.0, time)) + (520 + 2800 * p0) * e * (0.45 + 0.55 * smooth(1.5, 9.5, time))
118 body = svf(body, cut, 0.58)
119 body = hp(body, 27) # short low notes would otherwise leave DC
120 out(dist(body, 1.35) * e * 0.82 * (0.72 + 0.36 * smooth(1.5, 8.0, time)))
123# ch 4: drone bed. Continues across notes, filter cracks open over the section.
124inst drone nna=continue {
125 e = env(1.0, 1.2, 0.82, 2.2)
126 a = usaw(freq, 0.30)
127 b = usaw(freq * 1.4983, 0.20)
128 s = a * 0.40 + b * 0.22 + sin(ph * tau) * 0.42
129 cut = 150 + 540 * smooth(0.0, 9.0, time) + 90 * sin(t * 0.55)
130 s = svf(s, cut, 0.32)
131 out(s * e * 0.34 * (0.70 + 0.50 * smooth(1.5, 8.0, time)))
134# ch 5: siren / call. FM bell that bends a little; long release into the delay.
135inst siren {
136 e = env(0.008, 0.30, 0.30, 0.55)
137 vib = 1 + 0.012 * sin(t * 5.2) * min(t * 4, 1)
138 $p = fract($p + freq * vib / sr)
139 m = sin($p * tau * 2.02) * 2.8 * exp(-t * 2.4)
140 s = sin($p * tau + m) * 0.75 + sin($p * tau * 1.4983) * 0.22
141 s = hp(lp(s, 1500 + 2300 * e), 220)
142 out(dist(s, 1.3) * e * 0.50)
145# ch 6: breath / riser. Retriggered every pass, band climbs with song time.
146inst breath nna=continue {
147 e = env(1.4, 0.9, 0.86, 1.6)
148 hz = 280 + 1450 * smooth(0, 11, time) + 520 * (0.5 + 0.5 * sin(t * 0.7 + time))
149 s = svf(noise(), hz, 0.78)
150 band = s * 0.45 + r2 * 0.95
151 out(band * e * 0.26 * (0.65 + 1.70 * smooth(8.2, 12.0, time)))
154# ch 7: anvil. Inharmonic struck metal on the offbeats.
155inst anvil {
156 e = exp(-t * 7.0)
157 m = sin(tau * freq * 3.71 * t) * 2.6 * exp(-t * 12)
158 s = sin(tau * freq * t + m) * 0.55 + sin(tau * freq * 2.37 * t) * 0.25
159 s = s + hp(noise(), 4200) * exp(-t * 55) * 0.5
160 out(dist(s, 1.5) * e * 0.42 * smooth(4.6, 5.8, time))
163# ------------------------------------------------------------------ section 2
164# ch 3: grub. The drop bass: detuned reese + sub, p0 = accent cutoff + wobble.
165inst grub {
166 e = env(0.004, 0.10, 0.60, 0.05)
167 $sub = fract($sub + freq * 0.25 / sr)
168 wob = sin(t * (9 + 30 * p0))
169 a = bsaw(ph, freq) * (1 - 0.30 * wob) * 0.42
170 a2 = bsaw(ph * 0.501, freq * 0.5) * 0.35
171 s = a + a2 + sin($sub * tau) * 0.80
172 cut = 120 + 180 * e + 2400 * p0 * (0.4 + 1.6 * e)
173 s = svf(s, cut, 0.58)
174 s = hp(s, 26)
175 out(dist(s, 1.7) * e * 0.76)
178# ch 5: toll. Deep bronze gong that marks every pass start (12 / 15 / 18 / 21 s).
179inst toll {
180 e = env(0.004, 1.4, 0.10, 2.4)
181 m1 = sin(ph * tau * 1.4941) * 2.4 * exp(-t * 3.2)
182 m2 = sin(ph * tau * 2.7182) * 1.1 * exp(-t * 6.0)
183 s = sin(ph * tau + m1 + m2) * 0.62 + sin(ph * tau * 0.4997) * 0.45
184 s = svf(s, 620 + 2400 * exp(-t * 4.0), 0.40)
185 shk = hp(noise(), 3300) * exp(-t * 90) * 0.30
186 out(dist(s + shk, 1.25) * e * exp(-t * 0.9) * 0.38)
189# ch 7: sting. Glass arp, p0 = cutoff accent. Enters at 15.0 s via time gate.
190inst sting {
191 e = env(0.006, 0.14, 0.16, 0.20)
192 $p = fract($p + freq / sr)
193 body = sin($p * tau) * 0.42 + sin($p * tau * 2) * 0.28 + sin($p * tau * 3.01) * 0.16
194 tw = sin($p * tau * 4.02) * 0.55 * exp(-t * 20)
195 body = body + sin($p * tau * 2 + tw)
196 body = svf(body, 1000 + 3600 * p0 + 900 * exp(-t * 10), 0.66)
197 gate = smooth(15.0, 15.6, time)
198 out(dist(body, 1.25) * e * 0.42 * gate)
201# ch 6: gale. One riser per pass, only the 21 s pass is audible: feed the cut out.
202inst gale nna=continue {
203 e = env(2.2, 0.6, 0.85, 2.4)
204 rise = smooth(21.2, 23.9, time) ^ 2
205 s = svf(noise(), 320 + 3400 * rise, 0.85)
206 roar = s * 0.5 + r2 * 1.35
207 gate = smooth(21.0, 21.4, time) * (0.55 + 0.45 * rise)
208 out((roar * 0.65 + sin(ph * tau) * 0.22) * e * 0.30 * gate)
211# ------------------------------------------------------------------ master
212master {
213 wl = verb(l, 0.88, 0.42)
214 wr = verb(r, 0.88, 0.42)
215 dl = dly(l, 0.3750, 0.34) # dotted eighth at 120
216 dr = dly(r, 0.5625, 0.30) # dotted quarter
217 out(dist(hp(l * 0.90 + dr * 0.20 + wl * 0.30, 17), 1.02) * 1.12,
218 dist(hp(r * 0.90 + dl * 0.20 + wr * 0.30, 17), 1.02) * 1.12)
221# ------------------------------------------------------------------ timeline
222timeline {
223 0:00 act=0
224 4:00 act=1
225 8:00 act=2
226 12:00 act=3
229# ------------------------------------------------------------------ score
230# 24 rows = a 6-beat phrase. Four passes of this loop = the 12 s opening.
231# ch: 0 kick 1 clap 2 hat 3 bass
232# 4 drone 5 siren 6 breath 7 anvil
233pattern 0 rows=24 {
234 00: C-2 1 40 ... | . | C-6 3 14 ... | D-2 4 40 S00 | D-2 5 32 ... | . | C-3 7 22 ... | .
235 01: . | . | . | D-3 4 22 S30 | . | . | . | .
236 02: . | . | C-6 3 10 ... | . | . | . | . | .
237 03: . | . | . | F-2 4 30 S50 | . | . | . | .
238 04: C-2 1 40 ... | . | C-6 3 14 ... | D-3 4 20 ... | . | . | . | .
239 05: . | . | . | . | . | . | . | .
240 06: . | . | C-6 3 10 ... | G-2 4 34 S60 | . | . | . | A-5 8 18 ...
241 07: . | . | . | D-3 4 22 ... | . | . | . | .
242 08: C-2 1 40 ... | D-5 2 20 ... | C-6 3 18 ... | D-2 4 38 S10 | . | A-4 6 26 ... | . | .
243 09: . | . | C-6 3 08 ... | A-2 4 26 ... | . | . | . | .
244 10: . | . | C-6 3 10 ... | D-3 4 22 ... | . | . | . | .
245 11: . | . | . | C-3 4 30 S70 | . | . | . | .
246 12: C-2 1 40 ... | . | C-6 3 14 ... | D-2 4 38 S00 | A-2 5 30 ... | . | . | .
247 13: . | . | . | D-3 4 22 ... | . | . | . | .
248 14: . | . | C-6 3 10 ... | A#2 4 34 S50 | . | E-5 6 22 ... | . | D-6 8 18 ...
249 15: . | . | . | A-2 4 26 ... | . | . | . | .
250 16: C-2 1 40 ... | . | C-6 3 14 ... | G-2 4 36 S60 | . | . | . | .
251 17: . | . | C-6 3 08 ... | F-2 4 30 ... | . | . | . | .
252 18: . | . | C-6 3 10 ... | D#2 4 26 ... | . | . | . | .
253 19: . | . | . | D-2 4 24 ... | . | . | . | .
254 20: C-2 1 40 ... | D-5 2 22 ... | C-6 3 18 ... | G#2 4 38 S80 | . | G#4 6 28 ... | . | .
255 21: . | . | . | A-2 4 30 ... | . | . | . | .
256 22: . | . | C-6 3 10 ... | C-3 4 28 ... | . | . | . | F-5 8 18 ...
257 23: . | . | C-6 3 14 ... | D-2 4 40 S20 | . | . | . | .
260# ---------------------------------------------------------------- section 2
261# 24 rows = 3 s, plays four times (order 4..7) for the 12..24 s section.
262# ch: 0 kick 1 clap 2 hat 3 grub(new bass)
263# 4 drone 5 toll+siren 6 gale 7 sting(new arp)
264# Pass builds are time-gated inside the instruments: sting in at 15 s,
265# gale only at 21 s. Instruments: 1 kick 2 clap 3 hat 4 bass 5 drone
266# 6 siren 7 breath 8 anvil 9 grub 10 toll 11 sting 12 gale.
267pattern 1 rows=24 {
268 00: C-2 1 40 ... | . | C-6 3 14 ... | D-2 4 40 S00 | D-2 5 32 ... | . | C-3 7 22 ... | .
269 01: . | . | . | D-2 9 20 S20 | . | D-3 10 26 ... | C-2 12 30 ... | D-5 11 18 S10
270 02: . | . | . | D-2 9 20 S20 | . | . | . | F-5 11 18 S10
271 03: . | . | . | D-2 9 20 S30 | . | . | . | A-5 11 18 S10
272 04: C-2 1 40 ... | D-5 2 22 ... | . | D-2 9 40 S80 | . | . | . | F-5 11 18 S10
273 05: . | . | . | D-2 9 20 S20 | . | . | . | D-5 11 18 S10
274 06: . | . | C-6 3 16 S60 | D-2 9 20 S20 | . | A-5 6 24 ... | . | F-5 11 18 S10
275 07: . | . | . | D-2 9 20 S30 | . | . | . | A-5 11 18 S10
276 08: C-2 1 40 ... | . | . | A#1 9 40 S80 | A#1 5 40 ... | . | . | C-6 11 24 S40
277 09: . | . | . | A#1 9 20 S20 | . | . | . | A#4 11 18 S10
278 10: . | . | C-6 3 12 ... | A#1 9 20 S20 | . | . | . | D-5 11 18 S10
279 11: . | . | . | A#1 9 20 S30 | . | . | . | F-5 11 18 S10
280 12: C-2 1 40 ... | D-5 2 22 ... | . | C-2 9 40 S80 | . | . | . | D-5 11 24 S40
281 13: . | . | . | C-2 9 20 S20 | . | . | . | C-5 11 18 S10
282 14: . | . | C-6 3 16 S60 | C-2 9 20 S20 | . | . | . | E-5 11 18 S10
283 15: . | . | . | C-2 9 20 S30 | . | . | . | G-5 11 18 S10
284 16: C-2 1 40 ... | . | . | D-2 9 40 S80 | C-2 5 40 ... | . | . | E-5 11 24 S40
285 17: . | . | . | D-2 9 20 S20 | . | . | . | D-5 11 18 S10
286 18: . | . | C-6 3 12 ... | D-2 9 20 S20 | . | . | . | F-5 11 18 S10
287 19: . | . | . | D-2 9 20 S30 | . | . | . | A-5 11 18 S10
288 20: C-2 1 40 ... | D-5 2 22 ... | . | G#1 9 40 S80 | . | . | . | F-5 11 24 S40
289 21: . | . | . | G#1 9 20 S20 | . | . | . | G#4 11 18 S10
290 22: . | . | C-6 3 18 S60 | G#1 9 20 S20 | . | E-5 6 24 ... | . | D-5 11 18 S10
291 23: . | . | . | G#1 9 20 S40 | . | . | . | F-5 11 18 S10
294# ------------------------------------------------------------------ visuals
295uniform kickE clapE hatE bassE sirenE open dive glow spin slit tilt
297frame {
298 kickE = exp(-trig(0) * 13) * step(0.01, vel(0))
299 clapE = exp(-trig(1) * 17)
300 hatE = exp(-trig(2) * 40)
301 bassE = exp(-trig(3) * 9)
302 sirenE = exp(-trig(5) * 2.6)
304 # 0..12 s arc, all driven by song time so the loop keeps evolving
305 open = 0.045 + 0.300 * smooth(1.4, 7.8, time) + 0.012 * kickE
306 dive = smooth(8.2, 11.7, time) ^ 2
307 glow = 0.22 + 0.78 * smooth(1.0, 7.0, time) + 0.30 * kickE + 0.22 * sirenE
308 spin = time * 0.05 + 0.18 * sin(time * 0.43)
309 slit = 0.018 + 0.066 * dive
310 tilt = 0.10 + 0.04 * sin(time * 0.6)
312 select(evt(act))
315# helper: assemble-on wordmark. Letters drop in one by one, then burn off.
316fn wordmark(s, cy0, sz, amp) {
317 n = strlen(s)
318 cw = u / sz + n * 0.5
319 i = floor(cw)
320 gx = fract(cw)
321 cy = (cy0 - v) / sz
322 ti = 0.10 + i * 0.085
323 a = smooth(ti, ti + 0.42, time) * (1 - smooth(2.75 + i * 0.05, 3.45 + i * 0.05, time))
324 jit = (1 - a) * 0.09 * (hash(i * 7.3 + floor(time * 18)) - 0.5)
325 sy = cy + (1 - a) * 0.60 * (0.35 + hash(i * 3.1)) + jit
326 ink = glyph(str(s, i), fract(gx), fract(sy))
327 return ink * a * amp * step(0, sy) * step(sy, 1) * step(0, cw) * step(cw, n)
330pixel wake {
331 # ---------------------------------------------------------------- camera
332 zm = 1.0 + 0.030 * sin(t * 0.62) + dive * 7.6
333 camx = 0.012 * sin(t * 0.41)
334 camy = 0.018 + 0.010 * sin(t * 0.57)
335 rx = rot(u - camx, v - camy, spin)
336 ry = r1
337 ex = rx / zm
338 ey = ry / zm
339 rr = len(ex, ey)
340 aa = atan2(ey, ex)
342 # ---------------------------------------------------------------- void
343 neb = fbm(ex * 2.3 + 7.1, ey * 2.3 - 3.4, 4)
344 pal(abyss, 0.10 + 0.55 * neb)
345 cr = cget(0)
346 cg = cget(1)
347 cb = cget(2)
348 dim = 0.16 + 0.34 * neb + 0.22 * glow
349 cr *= dim
350 cg *= dim
351 cb *= dim
353 # ---------------------------------------------------------------- lid
354 wid = 0.68
355 lid = open * max(0, 1 - (ex / wid) ^ 2) ^ 0.60
356 lid = lid * (1 + tilt * ex / wid)
357 inside = (1 - smooth(lid - 0.006, lid + 0.006, abs(ey))) * (1 - smooth(0.58, 0.70, abs(ex)))
359 irisR = 0.182
361 # ---------------------------------------------------------------- skin
362 wob = fbm(ex * 3.1 + 11.0, ey * 3.1 - 5.0, 2)
363 vd = vor(ex * 6.5 + 4.0 + 0.35 * wob, ey * 6.5 - 2.0 + 0.35 * wob)
364 d1 = vd
365 cid = r1
366 d2 = r2
367 edge = d2 - d1
368 seam = exp(-edge * 30)
369 dome = smooth(0.0, 0.15, edge)
370 plate = hash(cid * 137.1)
371 pal(hide, 0.30 + 0.56 * plate + 0.09 * sin(t * 0.9 + cid * 30))
372 hr = cget(0)
373 hg = cget(1)
374 hb = cget(2)
375 pls = 0.55 + 0.45 * smooth(0.25, 0.85, kickE)
376 hm = (1 - inside) * min(1, 0.20 + 0.78 * seam * pls + 0.60 * dome * (0.45 + 0.55 * wob))
377 lit = 0.30 + 0.70 * exp(-rr * 1.45) + 0.20 * smooth(0.1, 0.9, kickE)
378 cr = mix(cr, hr * 0.95 * lit, hm)
379 cg = mix(cg, hg * 0.95 * lit, hm)
380 cb = mix(cb, hb * 0.95 * lit, hm)
382 # warm halo that the eyeball throws on its own socket
383 halo = exp(-abs(rr - irisR) * 2.6) * (0.10 + 0.22 * glow) * (1 - inside)
384 cr += halo * 0.55
385 cg += halo * 0.20
386 cb += halo * 0.08
388 # wet eyelid seam: the only light before the eye opens
389 lidline = exp(-abs(abs(ey) - lid) * 70) * (1 - smooth(0.55, 0.72, abs(ex)))
390 hot = 0.55 + 0.75 * glow + 1.10 * kickE
391 cr += lidline * hot * 1.05
392 cg += lidline * hot * 0.55
393 cb += lidline * hot * 0.20
395 # ---------------------------------------------------------------- sclera
396 scl = inside
397 vein = fbm(ex * 12 + ey * 3.0, ey * 12 - 4.0, 3)
398 vln = exp(-abs(vein - 0.5) * 24)
399 wet = exp(-abs(ey - lid * 0.62) * 34) * inside * (1 - smooth(0.05, 0.58, abs(ex)))
400 wet = wet * (0.55 + 0.45 * sin(ex * 5.0 + 1.2)) + exp(-abs(ey + lid * 0.80) * 40) * inside * 0.22 * (1 - smooth(0.02, 0.45, abs(ex)))
401 ball = 0.50 + 0.50 * (1 - smooth(0.0, 0.34, rr)) + 0.22 * smooth(-0.20, 0.06, ey)
402 s1 = (0.175 * ball + 0.42 * vln + 0.68 * wet * (0.35 + 0.65 * glow)) * scl
403 s2 = (0.030 * ball + 0.05 * vln + 0.64 * wet * (0.35 + 0.65 * glow)) * scl
404 s3 = (0.042 * ball + 0.08 * vln + 0.62 * wet * (0.35 + 0.65 * glow)) * scl
405 cr = mix(cr, s1, min(scl * 1.6, 1))
406 cg = mix(cg, s2, min(scl * 1.6, 1))
407 cb = mix(cb, s3, min(scl * 1.6, 1))
409 # ---------------------------------------------------------------- iris
410 ann = (1 - smooth(irisR - 0.025, irisR, rr)) * smooth(0.012, 0.05, rr) * inside
411 fv = 0.65 + 0.35 * sin(aa * 7.0 + 1.3 + 0.8 * sin(aa * 3.0 - t * 0.6))
412 fib = 0.5 + 0.5 * sin(aa * 23 + 2.2 * fbm(rr * 7 + 1.3, aa * 3.0, 2) + 0.7 * sin(rr * 38 - t * 1.4))
413 fib = clamp(fib * fv, 0, 1)
414 band = 0.5 + 0.5 * sin(rr * 66 - t * 2.0 + 2.0 * fbm(rr * 12, aa * 2.0, 2))
415 tone = 0.06 + 0.60 * fib * (0.34 + 0.66 * band) + 0.20 * (rr / irisR) + 0.04 * sin(t * 0.5)
416 pal(iris, tone)
417 ir = cget(0)
418 ig = cget(1)
419 ib = cget(2)
420 pal(venom, tone + 0.10 * sin(aa * 3 + t))
421 vr = cget(0)
422 vg = cget(1)
423 vb = cget(2)
424 vk = min(0.80 * dive * dive + 0.15 * kickE * dive, 1)
425 ir = mix(ir, vr, vk)
426 ig = mix(ig, vg, vk)
427 ib = mix(ib, vb, vk)
428 coll = 1 - 0.55 * exp(-abs(rr - 0.62 * irisR) * 90)
429 igain = ann * (0.30 + 1.35 * glow) * (0.45 + 0.55 * fib) * coll
430 cr = mix(cr, ir * igain, min(ann * 1.8, 1))
431 cg = mix(cg, ig * igain, min(ann * 1.8, 1))
432 cb = mix(cb, ib * igain, min(ann * 1.8, 1))
434 # radial dark spokes from the pupil collar
435 spk0 = exp(-abs(sin(aa * 29 + 0.9 * sin(rr * 9))) * 7) * ann * (0.20 + 0.35 * (1 - dive))
436 cr = mix(cr, cr * 0.35 + 0.04, spk0)
438 # ---------------------------------------------------------------- pupil
439 pd = len(ex / (slit * 0.85 + 0.004 * sin(t * 2.3) + 0.008 * kickE), ey / (0.072 + 0.33 * dive))
440 pup = (1 - smooth(0.86, 1.0, pd)) * inside
441 tunn = 0.5 + 0.5 * sin(log(max(pd, 0.02)) * 7.0 - t * (2.0 + 5.0 * dive))
442 pr = 0.004 + 0.010 * tunn
443 pg = 0.004 + 0.030 * tunn * dive
444 pb = 0.006 + 0.022 * tunn * dive
445 core = exp(-pd * 2.4) * (0.35 + 0.65 * dive)
446 cr = mix(cr, pr + 0.55 * core * dive, pup)
447 cg = mix(cg, pg + 0.85 * core * dive, pup)
448 cb = mix(cb, pb + 0.45 * core * dive, pup)
450 # bright pupil collar
451 rim = exp(-abs(pd - 1.0) * 22) * inside
452 rc = 0.55 + 0.75 * glow + 0.9 * kickE
453 cr += rim * rc * (0.95 - 0.35 * dive)
454 cg += rim * rc * (0.62 - 0.10 * dive)
455 cb += rim * rc * (0.26 + 0.28 * dive)
457 # corneal catchlight
458 cl = exp(-len(ex + 0.062, ey - 0.085) * 62) * inside
459 cr += cl * (0.65 + 0.45 * glow)
460 cg += cl * (0.70 + 0.35 * glow)
461 cb += cl * (0.75 + 0.25 * glow)
463 # ---------------------------------------------------------------- armature
464 coh = smooth(0.4, 6.4, t)
465 glw = 0
466 repeat k 3 {
467 rad = mix(0.78 - 0.11 * k, 0.375 + 0.030 * k, coh)
468 wdt = 0.005 + 0.020 * (1 - coh)
469 rng = exp(-abs(rr - rad) / wdt)
470 sg2 = step(0.40 - 0.40 * coh, 0.5 + 0.5 * sin(aa * (6 + 3 * k) + t * (0.9 + 0.55 * k) + k * 1.7))
471 glw += rng * sg2 * (0.28 + 0.72 * (1 - coh) ^ 2)
472 }
473 gr = 1.00 - 0.45 * dive
474 gg = 0.42 + 0.50 * dive
475 gb = 0.10 + 0.28 * dive
476 gp = 0.55 + 0.45 * kickE
477 cr += glw * gr * gp * 0.85
478 cg += glw * gg * gp * 0.85
479 cb += glw * gb * gp * 0.85
481 # ---------------------------------------------------------------- motes
482 rw = rr + 0.006 * sin(aa * 7.0 + t * 0.8) + 0.003 * sin(aa * 17.0 - t)
483 fs = fract(rw * 5.0 - t * (0.6 + 5.2 * dive))
484 mote = exp(-abs(fs - 0.5) * 26) * (0.22 + 0.55 * dive) * smooth(irisR * 0.6, irisR * 1.2, rr)
485 mote = mote * (0.45 + 0.55 * sin(aa * 11.0 + rw * 6.0))
486 cr += mote * (0.55 + 0.45 * dive)
487 cg += mote * (0.48 + 0.30 * dive)
488 cb += mote * (0.55 - 0.30 * dive)
490 # dive speed lines, radial and angular
491 spl = exp(-abs(sin(aa * 36 + t * 3.0)) * 26) * dive * smooth(0.04, 0.35, rr)
492 cr += spl * 0.75
493 cg += spl * 0.95
494 cb += spl * 0.35
495 tun2 = exp(-abs(fract(rr * 2.6 - t * 3.4) - 0.5) * 22) * dive * (1 - inside)
496 cr += tun2 * 0.35
497 cg += tun2 * 0.55
498 cb += tun2 * 0.20
500 # ---------------------------------------------------------------- wordmark
501 wm = wordmark(logo, 0.330, 0.1010, 1.0)
502 cr += wm * 1.00
503 cg += wm * 0.90
504 cb += wm * 0.72
506 # beat flash: two frames of warm light from the kick, a softer one on the clap
507 fl = 0.075 * kickE + 0.045 * clapE
508 cr += fl * 1.00
509 cg += fl * 0.52
510 cb += fl * 0.22
512 # ---------------------------------------------------------------- grade
513 vg = 1 - 0.48 * clamp(len(u * 0.82, v * 1.05), 0, 1) ^ 2
514 cr *= vg
515 cg *= vg
516 cb *= vg
517 rgb(min(cr, 1), min(cg, 1), min(cb, 1))
520# ============================================================================
521# SCENE 2: the maw -- 12..24 s, inside the creature after the pupil dive
522# A 7-fold log-polar gullet: voronoi flesh plates, fbm veins, beat rings
523# racing out from the throat, a bioluminescent core, and a cprevz long-exposure
524# that keeps the stage-1 tunnel alive across the cut. Warm amber takes over
525# from 16 s; 20.6 s on, the tunnel accelerates into a white-cyan dive that
526# stage 3 can pull out of.
527# ============================================================================
528pixel maw {
529 # ---------------------------------------------------------------- sync
530 kickE = exp(-trig(0) * 10) * step(0.01, vel(0))
531 clapE = exp(-trig(1) * 16)
532 bassE = exp(-trig(3) * 6)
533 tollE = exp(-trig(5) * 1.7)
535 # ---------------------------------------------------------------- arcs
536 cut = exp(-(time - 12.0) * 5.0) * step(11.97, time)
537 spread = smooth(12.6, 16.5, time)
538 warmk = 0.10 + 0.30 * smooth(16.0, 20.5, time) + 0.45 * smooth(20.5, 23.9, time)
539 dive2 = smooth(20.6, 23.95, time) ^ 2
540 breath = 0.5 + 0.5 * sin(time * 0.62)
542 # ---------------------------------------------------------------- tunnel
543 px = u * 1.08
544 pr = len(px, v) + 0.012 * kickE + 0.010 * breath
545 ang = atan2(v, px) + time * (0.025 + 0.085 * dive2)
546 fold = tau / 7.0
547 fa = abs(fract(ang / fold + 0.5) - 0.5) * fold
548 fa = fa + 0.10 * sin(time * 0.4) * smooth(13.0, 18.0, time)
549 depth = log(max(pr, 0.015)) * 1.30
550 dz = depth - time * (0.26 + 0.20 * spread + 0.85 * dive2)
552 # ---------------------------------------------------------------- wall
553 wob = fbm(fa * 2.4 + 7.9, dz * 1.1 - time * 0.35, 3)
554 vd = vor(fa * 3.6 + 0.45 * wob, dz * 2.2 + 3.3)
555 d1 = vd
556 cid = r1
557 d2 = r2
558 edge = clamp(d2 - d1, 0, 1)
559 ridge = exp(-edge * 30)
560 vein = fbm(fa * 8.0, dz * 6.0 + 11.0, 3)
561 vln = exp(-abs(vein - 0.5) * 20)
563 tone = clamp(0.30 * d1 + 0.40 * wob + 0.24 * ridge + 0.14 * vln + 0.06 * sin(dz * 7.0 - time), 0, 1)
564 pal(brine, tone)
565 wr = cget(0)
566 wg = cget(1)
567 wb = cget(2)
568 pal(tallow, 0.15 + 0.85 * tone)
569 kr = cget(0)
570 kg = cget(1)
571 kb = cget(2)
572 wk = clamp(warmk, 0, 1)
573 wr = mix(wr, kr, wk)
574 wg = mix(wg, kg, wk)
575 wb = mix(wb, kb, wk)
577 wallk = smooth(0.14, 0.34, pr) * (0.35 + 0.65 * ridge + 0.45 * spread)
578 wallk = clamp(wallk, 0, 1)
579 lit = 0.45 + 0.85 * exp(-pr * 0.55) + 0.25 * kickE + 0.35 * bassE
580 cr = 0.010 + 0.05 * breath
581 cg = 0.016 + 0.05 * breath
582 cb = 0.030 + 0.04 * breath
583 cr = mix(cr, wr * lit * 1.05, wallk)
584 cg = mix(cg, wg * lit * 1.05, wallk)
585 cb = mix(cb, wb * lit * 1.05, wallk)
587 # gill filaments along the folds
588 fil = exp(-abs(sin(fa * 9.0 + dz * 3.0)) * 12) * (0.12 + 0.30 * spread) * wallk
589 cr += fil * (0.15 + 0.45 * warmk)
590 cg += fil * 0.70
591 cb += fil * 0.25
593 # beat rings racing outward from the throat
594 rng = exp(-abs(fract(pr * (2.6 + 1.8 * spread) - beat * 0.55) - 0.5) * 16)
595 ringk = rng * (0.16 + 0.84 * kickE) * smooth(0.03, 0.30, pr) * (1 - wallk * 0.4)
596 cr += ringk * (0.10 + warmk * 0.55)
597 cg += ringk * (0.85 + 0.15 * dive2)
598 cb += ringk * 0.45
600 # bioluminescent core / gullet glow
601 gul = exp(-pr * (6.0 - 2.0 * dive2)) * (0.22 + 0.30 * bassE + 0.55 * dive2)
602 cr += gul * (0.65 + 0.75 * warmk)
603 cg += gul * (0.90 + 0.35 * dive2)
604 cb += gul * (0.30 + 0.50 * dive2)
606 # motes streaming past the camera
607 fs = fract(pr * 5.0 + beat * 0.42)
608 mote = exp(-abs(fs - 0.5) * 20) * smooth(0.5, 0.98, pr) * 0.30
609 cr += mote * 0.35
610 cg += mote * 0.55
611 cb += mote * 0.40
613 # cut flash, gong wash, clap
614 fld = cut * 0.65 + tollE * exp(-abs(pr - 0.5) * 1.3) * 0.35 + clapE * 0.05
615 cr += fld * (0.50 + 0.60 * warmk)
616 cg += fld * 0.85
617 cb += fld * (0.75 - 0.30 * warmk)
619 # finale dive streaks
620 sl = exp(-abs(sin(ang * 34 + time * 3.2)) * 30) * dive2 * smooth(0.02, 0.40, pr)
621 cr += sl * (0.35 + 0.65 * warmk)
622 cg += sl * 0.75
623 cb += sl * (0.30 + 0.70 * dive2)
625 # ---------------------------------------------------------------- grade
626 vg = 1 - 0.44 * clamp(len(u * 0.85, v * 1.05), 0, 1) ^ 2
627 cr *= vg
628 cg *= vg
629 cb *= vg
630 rgb(min(cr, 1), min(cg, 1), min(cb, 1))
631 wf = 0.5 + 0.5 * sin(time * 0.21)
632 cprevz(0.5, 0.5, 1.02 + 0.16 * dive2, 0.03 * wf, 0.30 + 0.34 * dive2)
635# ============================================================================
636# HANDOFF -- section 1 of 4, 0:00 .. 0:12
637# ----------------------------------------------------------------------------
638# KEY / TEMPO
639# D minor / Phrygian colour (D Eb F G A Bb C, plus a G# tritone stab).
640# 120 BPM, speed 6, rpb 4 -> one row = 125 ms.
641# pattern 0 is 24 rows = 3.0 s = a 6-beat phrase, NOT 12 s. With `order 0`
642# it loops four times during the 12 s render. If every stage is meant to
643# own 12 s, repeat the order entry per stage (order 0 0 0 0 1 1 1 1 ...);
644# the whole 0..12 s arc below is driven by `time`, not by order/pos.
646# CHANNELS / INSTRUMENTS (instruments are numbered by definition order)
647# 0 kick inst kick rows 0 4 8 12 16 20
648# 1 clap inst clap rows 8 and 20, fades in ~3.6 s
649# 2 hat inst hat eighth notes, p0 = bright/decay
650# 3 bass inst bass acid 16ths, p0 = filter cutoff
651# 4 drone inst drone nna=continue D-2 at row 0, A-2 at row 12
652# 5 siren inst siren A-4 / E-5 / G#-4 at rows 8/14/20
653# 6 breath inst breath nna=continue noise riser, one trigger per pass
654# 7 anvil inst anvil metal hits rows 6/14/22, in at 4.6 s
655# master = freeverb + dotted-eighth and dotted-quarter delays.
657# PALETTES
658# abyss void background hide voronoi hide plates (maroon/rust)
659# iris gold iris fibres venom acid green (mixed in during dive)
661# UNIFORMS (frame writes, pixel reads; persist across frames)
662# kickE clapE hatE bassE sirenE per-channel envelopes
663# open 0..0.35 eyelid aperture, time-driven (0.045 -> 0.345 by 7.8 s)
664# dive 0..1 dive amount: zoom, slit widening, venom mix, speed lines
665# glow 0.2..1.4 iris brightness (time + kick + siren)
666# spin camera rotation slit pupil slit half-width
667# tilt eyelid asymmetry
669# SCENE MECHANISM
670# timeline { 0:00 act=0 } and the frame block ends with select(evt(act)).
671# NOTE: the compiler wants a bare event name -- evt(act), not evt("act").
672# The single pixel program is the *named* program `wake` (index 0).
673# Later stages append e.g. `1:00 act=1` to switch to pixel program 1.
674# Do not rename `wake` and do not add events before 0:00.
676# WHAT SECTION 2 CAN PICK UP
677# - We end inside the slit pupil: a vertical acid-green tunnel, camera still
678# accelerating (dive hits 1 at 11.7 s, zoom ~8.6x, speed lines on). Keep
679# falling, cut on a hit, or pull back out of the throat.
680# - `venom` is already on screen at the cut; starting stage 2 in that green
681# and swinging to a new palette will read as one continuous shot.
682# - Motif: siren A-4 / E-5 / G#-4 with the G#-against-D tritone in the bass
683# (row 20). Channels 3 and 5 are the melodic leads; answer it there.
684# - Arrangement is time-gated inside the instruments (clap, anvil, hat,
685# riser all use smooth(...time)). Keep that trick if you need a build
686# without touching the score.
687# ============================================================================
689# ============================================================================
690# HANDOFF 2 -- section 2 of 4, 0:12 .. 0:24
691# ----------------------------------------------------------------------------
692# SCENE / PIXEL PROGRAM
693# `pixel maw` = pixel program index 1. Timeline `4:00 act=1` switches to it.
694# NOT `1:00`: timeline positions are ORDER-LIST INDICES (src/dm_seq.c uses
695# cumrows[e->order]), not pattern ids. With order 0 0 0 0 1 1 1 1 the first
696# pattern-1 entry sits at order position 4 (= 12.0 s), so the event is 4:00.
697# To time a scene switch in your own section, count order entries: each is
698# 24 rows = 3 s; my entries are positions 4..7 (12..24 s).
700# TIMING TRAP (important for stage 3)
701# Tick length is quantised to an integer number of samples (918, not
702# 918.75 at 120bpm/speed6). "12.000 s" in wall time is therefore sequencer
703# row 96 = sample 528768 = 11.9902 s: the tail of a `--seconds 12` render
704# contains the first 432 samples (~10 ms) of the NEXT order entry's row 0.
705# That is why pattern 1 row 0 is an EXACT copy of pattern 0 row 0:
706# 00: C-2 1 40 ... | . | C-6 3 14 ... | D-2 4 40 S00 | D-2 5 32 ... | . |
707# C-3 7 22 ... | .
708# Stage 3 must copy pattern 1's row 0 verbatim as pattern 2's row 0 (any
709# difference is audible in the last 10 ms of a truncated 12..24 s render).
710# The visual cut is still clean: frames snap to ~12.0 s where act flips.
712# PATTERN / ORDER
713# order 0 0 0 0 1 1 1 1. pattern 1 rows=24 plays at order positions 4..7
714# (12, 15, 18, 21 s). Same 24-row phrase every pass; arrangement is time-
715# gated INSIDE the instruments (sting in at 15 s, gale only at 21 s).
717# INSTRUMENTS (1-based by definition order; 9..12 are new; channels reuse)
718# 1 kick, 2 clap, 3 hat, 4 bass, 5 drone, 6 siren, 7 breath, 8 anvil (stage 1)
719# 9 grub ch3 drop reese+sub bass, p0 accent = cutoff + wobble
720# 10 toll ch5 bronze gong, hits row 1 every pass (12.125 s marker)
721# 11 sting ch7 glass arp, p0 cutoff accent, time-gated in at 15.0 s
722# 12 gale ch6 noise riser nna=continue, audible only from 21 s
723# Music stays D minor + tritone G# (grub row 20 G#1, sting G#4). 16th grub
724# roots per group: D-2 / A#1 / C-2 / D-2 / G#1 at rows (8,12,16,20).
726# PALETTES (new)
727# brine deep teal -> acid green -> sulfur (the gullet walls)
728# tallow ember -> amber -> white-hot (mixed in by warmk 16..24 s)
730# UNIFORMS
731# None added (frame untouched). `maw` derives everything from `time`, `beat`
732# and trig()/vel() read directly in the pixel program.
734# SCENE MECHANIC / WHAT STAGE 3 CAN PICK UP
735# `maw` is a 7-fold log-polar throat: voronoi flesh plates + fbm veins,
736# beat rings racing outward (fract(pr*k - beat*0.55)), glowing core, and a
737# cprevz long-exposure (zoom 1.02 + 0.16*dive2, k 0.30 + 0.34*dive2).
738# Arc: hard cut at 12.0 (cut flash, green continues stage 1's venom) ->
739# gills spread + slow camera spin (0.025 + 0.085*dive2 rad/s) -> warm amber
740# takes over 16..21 s -> dive2 from 20.6 s: accelerating spin/streaks,
741# tunnel speed ramps 0.26 -> 1.10, long-exposure zooms quicker, core hits
742# white-hot. At 24.0 s we are INSIDE a bright amber furnace eye at ~9 deg/s
743# spin and falling fast.
744# Stage 3 options: blast out of the amber core (it is the brightest point on
745# screen at the cut), keep the cprevz momentum, or drop pixel-trig() state.
746# Leave pattern 2 row 0 = pattern 1 row 0 (see TIMING TRAP) and add your
747# scene event at `8:00 act=2` (order position 8, after appending four `2`
748# entries to the order; that position starts at 24.0 s).
749# ============================================================================
751# ============================================================================
752# SCENE 3: the breach -- 24..36 s, out of the furnace and into the night
753# The amber core the maw dives into at 24 s was the creature's own eye, seen
754# from inside: we burst out through it into a cold night sky and watch the
755# thing swim the cloud tops below the moon. Halftime groove: kick 0/8/16,
756# clap on 12, sub roots A#1 -> A-1, choir stacks the Dm triad over the drone,
757# horn calls A-4/G-4/F-4. Mote arp + shimmer fade in for the 30 s build;
758# 33-36 s the eye flares and the camera pushes in (stage 4's target).
759# ============================================================================
761# section 3: night sky (deep indigo -> teal -> aurora green -> pale cyan)
762palette night {
763 0.00 0.004 0.006 0.016
764 0.30 0.010 0.030 0.060
765 0.52 0.008 0.100 0.120
766 0.70 0.030 0.280 0.240
767 0.85 0.120 0.560 0.380
768 0.95 0.550 0.900 0.720
769 1.00 0.900 1.000 0.950
772# ------------------------------------------------------------------ section 3
773# ch 5: horn. The creature's call heard from outside: detuned saw pair with
774# slow vibrato and a long release. p0 = extra brightness.
775inst horn nna=continue {
776 e = env(0.07, 0.45, 0.50, 1.05)
777 vib = 1 + 0.012 * sin(t * 4.7) * smooth(0.15, 0.70, t)
778 $p = fract($p + freq * vib / sr)
779 $q = fract($q + freq * 1.006 * vib / sr)
780 s = bsaw($p, freq) * 0.36 + bsaw($q, freq * 1.006) * 0.32 + sin($p * tau) * 0.28
781 s = svf(s, 420 + 2300 * e + 1500 * p0, 0.42)
782 out(dist(s, 1.25) * e * 0.38)
785# ch 7: mote. Glassy pluck arp, time-gated in for the 30 s build. p0 = cutoff.
786inst mote nna=continue {
787 e = env(0.004, 0.09, 0.22, 0.16)
788 $p = fract($p + freq / sr)
789 s = sin($p * tau) * 0.46 + sin($p * tau * 2.01) * 0.22 + sin($p * tau * 3.97) * 0.12 * exp(-t * 16)
790 s = svf(s, 1300 + 4200 * p0 + 900 * exp(-t * 9), 0.52)
791 out(dist(s, 1.3) * e * 0.42 * smooth(29.2, 31.4, time))
794# ch 3: sub. Deep sine root under the halftime kicks (A#1 row 8, A-1 row 16).
795inst sub nna=continue {
796 e = env(0.012, 0.28, 0.72, 0.32)
797 $p = fract($p + freq / sr)
798 s = sin($p * tau) + sin($p * tau * 2.0) * 0.30 * e
799 out(dist(s * 1.25, 1.55) * e * 0.80)
802# ch 6: shimmer. High airy band above the breath, enters for the build.
803inst shimmer nna=continue {
804 e = env(0.70, 0.80, 0.70, 1.50)
805 s = svf(noise(), 5200 + 1500 * sin(t * 0.8 + time * 0.4), 0.75)
806 band = s * 0.25 + r2 * 0.85
807 out(band * e * 0.20 * smooth(29.6, 31.8, time))
810# ch 4: choir. Slow pad; F-3 (row 8) and A-3 (row 16) stack the Dm triad
811# against the drone's D-2. nna=continue lets everything ring together.
812inst choir nna=continue {
813 e = env(0.55, 0.80, 0.78, 1.60)
814 $p = fract($p + freq / sr)
815 $q = fract($q + freq * 1.007 / sr)
816 s = bsaw($p, freq) * 0.28 + bsaw($q, freq * 1.007) * 0.26 + sin($p * tau) * 0.24
817 s = svf(s, 280 + 1400 * e + 200 * sin(t * 0.5), 0.50)
818 out(dist(s, 1.15) * e * 0.30)
821# ------------------------------------------------------------------ section 4
822# ch 5: flare. Soaring detuned lead for the final climb.
823inst flare nna=continue {
824 e = env(0.008, 0.55, 0.45, 1.2)
825 vib = 1 + 0.018 * sin(t * 6.2) * smooth(0.1, 0.8, t)
826 $p = fract($p + freq * vib / sr)
827 $q = fract($q + freq * 1.004 * vib / sr)
828 s = bsaw($p, freq) * 0.32 + bsaw($q, freq * 1.004) * 0.30 + sin($p * tau * 2.0) * 0.22
829 s = svf(s, 680 + 3200 * e + 1800 * p0, 0.45)
830 gate = smooth(39.8, 41.0, time) * (0.55 + 0.45 * smooth(42.0, 47.0, time))
831 out(dist(s, 1.2) * e * 0.42 * gate)
834# ch 6: rupture. Noise riser that carries the last four seconds.
835inst rupture nna=continue {
836 e = env(2.0, 0.8, 0.90, 2.4)
837 rise = smooth(43.0, 47.5, time) ^ 2
838 s = svf(noise(), 280 + 5200 * rise, 0.82)
839 roar = s * 0.55 + r2 * 1.25
840 gate = smooth(42.0, 43.5, time)
841 out((roar * 0.75 + sin(ph * tau) * 0.18) * e * 0.32 * gate)
844# ---------------------------------------------------------------- section 3
845# 24 rows = 3 s, plays four times (order positions 8..11) for 24..36 s.
846# Row 0 is a BYTE-EXACT copy of pattern 1 row 0 (see HANDOFF 2 TIMING TRAP).
847# ch: 0 kick 1 clap 2 hat 3 bass/sub
848# 4 drone/choir 5 horn 6 breath/shimmer 7 mote
849# Instruments: 13 horn, 14 mote, 15 sub, 16 shimmer, 17 choir.
850pattern 2 rows=24 {
851 00: C-2 1 40 ... | . | C-6 3 14 ... | D-2 4 40 S00 | D-2 5 32 ... | . | C-3 7 22 ... | .
852 01: . | . | . | . | . | . | . | .
853 02: . | . | C-6 3 0C ... | . | . | A-4 13 28 S10 | . | .
854 03: . | . | . | . | . | . | . | .
855 04: . | . | . | . | . | . | . | D-5 14 20 S20
856 05: . | . | . | . | . | . | . | .
857 06: . | . | C-6 3 0C ... | . | . | . | . | F-5 14 20 S20
858 07: . | . | . | off | . | . | . | .
859 08: C-2 1 3C ... | . | . | A#1 15 38 ... | F-3 17 30 ... | . | . | A-5 14 20 S30
860 09: . | . | . | . | . | . | . | .
861 10: . | . | C-6 3 0C ... | . | . | G-4 13 28 S20 | . | C-6 14 20 S20
862 11: . | . | . | . | . | . | . | .
863 12: . | D-5 2 20 ... | . | . | . | . | D-6 16 30 ... | D-5 14 20 S20
864 13: . | . | . | . | . | . | . | .
865 14: . | . | C-6 3 0C ... | . | . | . | . | F-5 14 20 S20
866 15: . | . | . | off | . | . | . | .
867 16: C-2 1 3C ... | . | . | A-1 15 38 ... | A-3 17 30 ... | . | . | A-5 14 20 S30
868 17: . | . | . | . | . | . | . | .
869 18: . | . | C-6 3 0C ... | . | . | F-4 13 2C S30 | . | C-6 14 20 S20
870 19: . | . | . | . | . | . | . | .
871 20: . | . | . | . | . | . | . | D-5 14 24 S40
872 21: . | . | . | . | . | . | . | .
873 22: . | . | C-6 3 0C ... | . | . | . | . | G#5 14 24 S40
874 23: . | . | . | off | . | . | . | .
877# ---------------------------------------------------------------- section 4
878# 24 rows = 3 s, plays four times (order positions 12..15) for 36..48 s.
879# Row 0 is a BYTE-EXACT copy of pattern 2 row 0 (TIMING TRAP).
880# ch: 0 kick 1 clap 2 hat 3 grub
881# 4 choir 5 flare 6 shimmer/rupture 7 mote
882pattern 3 rows=24 {
883 00: C-2 1 40 ... | . | C-6 3 14 ... | D-2 4 40 S00 | D-2 5 32 ... | . | C-3 7 22 ... | .
884 01: . | . | . | D-2 9 20 S20 | . | . | . | .
885 02: . | . | C-6 3 0C ... | D-2 9 20 S20 | . | A-4 18 24 ... | . | .
886 03: . | . | . | D-2 9 20 S30 | . | . | . | .
887 04: C-2 1 40 ... | D-5 2 22 ... | . | D-2 9 40 S80 | . | . | . | .
888 05: . | . | . | D-2 9 20 S20 | . | . | . | .
889 06: . | . | C-6 3 0C ... | A#1 9 20 S20 | . | . | . | .
890 07: . | . | . | D-2 9 20 S30 | . | . | . | .
891 08: C-2 1 3C ... | . | . | A#1 9 40 S80 | F-3 17 30 ... | . | . | D-5 14 20 S20
892 09: . | . | . | A#1 9 20 S20 | . | . | . | F-5 14 20 S20
893 10: . | . | C-6 3 0C ... | A#1 9 20 S20 | . | G-4 18 28 ... | . | A-5 14 20 S30
894 11: . | . | . | A#1 9 20 S30 | . | . | . | C-6 14 20 S20
895 12: . | D-5 2 20 ... | . | C-2 9 40 S80 | . | . | D-6 16 30 ... | D-5 14 20 S20
896 13: . | . | . | C-2 9 20 S20 | . | . | . | F-5 14 20 S20
897 14: . | . | C-6 3 0C ... | C-2 9 20 S20 | . | A-4 18 2C ... | . | A-5 14 20 S30
898 15: . | . | . | C-2 9 20 S30 | . | . | . | C-6 14 20 S20
899 16: C-2 1 3C ... | . | . | A-1 9 40 S80 | A-3 17 30 ... | . | . | D-5 14 20 S20
900 17: . | . | . | A-1 9 20 S20 | . | . | . | F-5 14 20 S20
901 18: . | . | C-6 3 0C ... | A-1 9 20 S20 | . | F-4 18 30 ... | . | A-5 14 20 S30
902 19: . | . | . | A-1 9 20 S30 | . | . | . | C-6 14 20 S20
903 20: C-2 1 40 ... | D-5 2 22 ... | . | G#1 9 40 S80 | . | . | . | G#5 14 24 S40
904 21: . | . | . | G#1 9 20 S20 | . | . | . | .
905 22: . | . | C-6 3 18 S60 | G#1 9 20 S20 | . | E-5 18 34 ... | . | .
906 23: . | . | . | G#1 9 20 S40 | . | . | . | .
909# ----------------------------------------------------------------------------
910# The breach: whiteout pop at the cut, then the reveal -- night sky, moon,
911# aurora, clouds, and the creature swimming below with its furnace eye.
912# Everything is derived from time/beat/trig(); no new uniforms.
913pixel breach {
914 # ---------------------------------------------------------------- sync
915 kickE = exp(-trig(0) * 9) * step(0.01, vel(0))
916 hornA = trig(5)
917 hornE = exp(-hornA * 1.5)
919 # ---------------------------------------------------------------- arcs
920 flash = exp(-(time - 24.0) * 3.0) * step(23.98, time)
921 outk = smooth(24.30, 25.80, time)
922 push = smooth(30.0, 35.9, time)
923 eyeup = 1.0 + 1.8 * smooth(33.0, 35.9, time)
925 # ---------------------------------------------------------------- camera
926 zm = 1.0 + 0.12 * push
927 cx = (u + 0.012 * sin(time * 0.31)) / zm
928 cy = (v + 0.014 * sin(time * 0.23 + 1.7) - 0.02) / zm
930 # ---------------------------------------------------------------- sky
931 neb = fbm(cx * 1.7 + 5.2, cy * 1.7 - time * 0.010, 4)
932 pal(night, 0.10 + 0.42 * neb + 0.18 * (cy + 0.5))
933 skdim = 0.55 + 0.45 * neb
934 cr = cget(0) * skdim
935 cg = cget(1) * skdim
936 cb = cget(2) * skdim
938 # stars: two twinkling hash-grid layers
939 sx = cx * 60.0
940 sy = cy * 60.0
941 fx = floor(sx)
942 fy = floor(sy)
943 h1 = hash(fx * 12.99 + fy * 78.23)
944 ddx = fract(sx) - (0.25 + 0.5 * hash(fx * 3.1 + fy * 1.7))
945 ddy = fract(sy) - (0.25 + 0.5 * hash(fx * 1.3 + fy * 4.3))
946 st1 = exp(-(ddx * ddx + ddy * ddy) * 300.0) * step(0.80, h1)
947 tw1 = 0.45 + 0.55 * sin(time * (1.0 + 2.5 * h1) + h1 * 39.0)
948 sx2 = cx * 113.0 + 7.0
949 sy2 = cy * 113.0 - 3.0
950 gx = floor(sx2)
951 gy = floor(sy2)
952 h2 = hash(gx * 5.39 + gy * 41.17)
953 ddx2 = fract(sx2) - (0.25 + 0.5 * hash(gx * 7.7 + gy * 2.9))
954 ddy2 = fract(sy2) - (0.25 + 0.5 * hash(gx * 2.3 + gy * 6.1))
955 st2 = exp(-(ddx2 * ddx2 + ddy2 * ddy2) * 340.0) * step(0.86, h2)
956 tw2 = 0.40 + 0.60 * sin(time * (1.4 + 2.0 * h2) + h2 * 57.0)
957 star = (st1 * tw1 + st2 * tw2 * 0.65) * smooth(-0.15, 0.25, cy)
958 cr += star * 0.70
959 cg += star * 0.78
960 cb += star * 1.00
962 # ---------------------------------------------------------------- moon
963 mdx = cx + 0.46
964 mdy = cy - 0.30
965 md = len(mdx, mdy)
966 moon = 1 - smooth(0.078, 0.087, md)
967 mtex = fbm(cx * 26.0 + 9.1, cy * 26.0, 2)
968 mshade = (0.95 - 0.38 * smooth(0.35, 0.65, mtex)) * (0.60 + 0.40 * (1 - smooth(-0.05, 0.09, mdx)))
969 cr = mix(cr, 0.82 * mshade, moon)
970 cg = mix(cg, 0.86 * mshade, moon)
971 cb = mix(cb, 0.95 * mshade, moon)
972 mhalo = exp(-md * 6.5) * (1 - moon)
973 cr += mhalo * 0.070
974 cg += mhalo * 0.085
975 cb += mhalo * 0.120
977 # ---------------------------------------------------------------- aurora
978 au1 = fbm(cx * 1.3 + time * 0.040, 2.2, 3)
979 aband = exp(-abs(cy - (0.13 + 0.20 * au1)) * 5.0)
980 acurt = 0.30 + 0.70 * (0.5 + 0.5 * sin(cx * 7.0 + au1 * 9.0 + time * 0.30))
981 aur = aband * acurt * smooth(-0.05, 0.15, cy)
982 pal(night, 0.58 + 0.34 * au1)
983 cr += aur * cget(0) * 0.50
984 cg += aur * cget(1) * 0.72
985 cb += aur * cget(2) * 0.62
987 # ---------------------------------------------------------------- clouds
988 clf = fbm(cx * 2.4 + time * 0.018, cy * 4.5 + 13.0, 3)
989 cld = smooth(0.42, 0.78, clf) * (1 - smooth(-0.30, 0.10, cy))
990 clit = 0.30 + 0.70 * exp(-md * 0.9)
991 cr = mix(cr, 0.030 + 0.070 * clit + 0.045 * clf, cld * 0.85)
992 cg = mix(cg, 0.045 + 0.080 * clit + 0.045 * clf, cld * 0.85)
993 cb = mix(cb, 0.080 + 0.105 * clit + 0.055 * clf, cld * 0.85)
995 # ---------------------------------------------------------------- creature
996 # serpentine body swimming the cloud tops; thicker skull around the eye
997 yc = -0.26 + 0.085 * sin(cx * 2.4 - time * 1.15) + 0.038 * sin(cx * 5.7 + time * 0.55)
998 headw = 0.080 * exp(-(cx - 0.28) * (cx - 0.28) * 9.0)
999 th = 0.045 + 0.020 * (0.5 + 0.5 * sin(cx * 3.6 + 1.2)) + headw
1000 bd = abs(cy - yc)
1001 body = 1 - smooth(th * 0.70, th, bd)
1002 sv = vor(cx * 8.0, (cy - yc) * 8.0 + 3.0)
1003 cid = r1
1004 sedg = r2 - sv
1005 seam = exp(-sedg * 24)
1006 plate = hash(cid * 137.1)
1007 pal(hide, 0.18 + 0.38 * plate + 0.12 * seam)
1008 hr = cget(0)
1009 hg = cget(1)
1010 hb = cget(2)
1011 toplit = 0.22 + 0.55 * smooth(-th, th, cy - yc)
1012 moonk = 0.35 + 0.65 * exp(-md * 1.0)
1013 eyeX = 0.28
1014 eyeY = -0.26 + 0.085 * sin(eyeX * 2.4 - time * 1.15) + 0.038 * sin(eyeX * 5.7 + time * 0.55) + 0.014
1015 ed = len(cx - eyeX, cy - eyeY)
1016 under = exp(-ed * 2.6)
1017 bcr = hr * (0.16 + 0.45 * toplit * moonk) + under * (0.40 + 0.35 * kickE) * eyeup
1018 bcg = hg * (0.16 + 0.45 * toplit * moonk) + under * (0.20 + 0.16 * kickE) * eyeup
1019 bcb = hb * (0.18 + 0.50 * toplit * moonk) + under * 0.10 * eyeup
1020 rimt = exp(-abs(bd - th) * 34) * clamp((cy - yc) / max(th, 0.001), 0, 1)
1021 bcr += rimt * 0.10 * moonk
1022 bcg += rimt * 0.16 * moonk
1023 bcb += rimt * 0.20 * moonk
1024 cr = mix(cr, bcr, body)
1025 cg = mix(cg, bcg, body)
1026 cb = mix(cb, bcb, body)
1028 # ---------------------------------------------------------------- the eye
1029 # the amber furnace of scene 2 seen from outside: kick-pulsed, slow blink
1030 blink = 1 - 0.93 * smooth(0.984, 0.998, sin(time * 0.85))
1031 irisg = exp(-ed * 60) * blink * eyeup * (0.85 + 0.55 * kickE)
1032 ehalo = exp(-ed * 8) * blink * eyeup * (0.16 + 0.12 * kickE)
1033 cr += irisg * 1.00 + ehalo * 0.55
1034 cg += irisg * 0.62 + ehalo * 0.30
1035 cb += irisg * 0.22 + ehalo * 0.12
1037 # ripple expanding from the eye on every horn call
1038 ringr = hornA * 0.45
1039 ring = exp(-abs(ed - ringr) * 26) * hornE
1040 cr += ring * 0.35
1041 cg += ring * 0.22
1042 cb += ring * 0.10
1044 # ---------------------------------------------------------------- whiteout
1045 core = exp(-len(cx, cy + 0.12) * 3.5)
1046 wo = (1 - outk) * (0.75 + 0.45 * core)
1047 cr = mix(cr, 1.00, min(wo, 1))
1048 cg = mix(cg, 0.93, min(wo, 1))
1049 cb = mix(cb, 0.80, min(wo, 1))
1051 # exit-flash streaks over the whiteout, dying into the night
1052 pa = atan2(cy + 0.12, cx)
1053 streak = exp(-abs(sin(pa * 22.0 + time * 2.4)) * 22) * flash
1054 cr += streak * 0.90 + core * flash * 1.40
1055 cg += streak * 0.62 + core * flash * 1.05
1056 cb += streak * 0.30 + core * flash * 0.65
1058 # ---------------------------------------------------------------- grade
1059 vgk = 1 - 0.42 * clamp(len(u * 0.85, v * 1.05), 0, 1) ^ 2
1060 cr *= vgk
1061 cg *= vgk
1062 cb *= vgk
1063 rgb(min(cr, 1), min(cg, 1), min(cb, 1))
1065 # keep the maw's long-exposure momentum at the cut, then let it die out
1066 trail = 0.50 * exp(-(time - 24.0) * 1.5) * step(23.98, time)
1067 cprevz(0.5, 0.44, 1.06, 0.015 * sin(time * 0.4), trail)
1070# ============================================================================
1071# SCENE 4: the surge -- 36..48 s, back into the eye and through the furnace
1072# The amber eye that breach pushed into at 35.9 s becomes the entry wound:
1073# we dive back inside, race a seven-fold fire tunnel, and burst into white.
1074# No new uniforms; everything is derived from time/beat/trig() and evt(act).
1075# ============================================================================
1076pixel surge {
1077 kickE = exp(-trig(0) * 9) * step(0.01, vel(0))
1078 clapE = exp(-trig(1) * 16)
1079 bassE = exp(-trig(3) * 6)
1080 flareA = trig(5)
1081 flareE = exp(-flareA * 1.4)
1083 dive = smooth(36.0, 39.0, time)
1084 climb = smooth(40.0, 44.0, time) ^ 2
1085 burst = smooth(44.0, 47.5, time) ^ 2
1086 calm = smooth(47.0, 48.0, time)
1088 eyeX = 0.28
1089 eyeY = -0.26 + 0.085 * sin(eyeX * 2.4 - time * 1.15) + 0.038 * sin(eyeX * 5.7 + time * 0.55) + 0.014
1091 z0 = 1.0 + 6.0 * dive + 14.0 * climb * (1 - calm)
1092 cx = (u - eyeX * (1 - calm)) / z0
1093 cy = (v - eyeY * (1 - calm)) / z0
1095 ang = atan2(cy, cx) + time * (0.04 + 0.18 * climb)
1096 rr = len(cx, cy)
1098 fold = tau / 7.0
1099 fa = abs(fract(ang / fold + 0.5) - 0.5) * fold
1100 depth = log(max(rr, 0.008)) * 1.4
1101 dz = depth - time * (0.4 + 1.2 * climb + 4.0 * burst)
1103 wob = fbm(fa * 3.2 + 8.0, dz * 1.3 - time * 0.9, 3)
1104 vd = vor(fa * 4.2 + 0.5 * wob, dz * 2.6 + 2.5)
1105 edge = clamp(r2 - vd, 0, 1)
1106 ridge = exp(-edge * 26)
1107 tone = clamp(0.22 * vd + 0.48 * wob + 0.28 * ridge + 0.12 * sin(dz * 9.0 - time), 0, 1)
1109 pal(ember, 0.12 + 0.88 * tone)
1110 fr = cget(0)
1111 fg = cget(1)
1112 fb = cget(2)
1113 pal(tallow, 0.08 + 0.92 * tone)
1114 tr = cget(0)
1115 tg = cget(1)
1116 tb = cget(2)
1118 wk = smooth(0.2, 0.7, climb)
1119 fr = mix(fr, tr, wk)
1120 fg = mix(fg, tg, wk)
1121 fb = mix(fb, tb, wk)
1123 lit = 0.55 + 1.60 * exp(-rr * 1.4) + 0.40 * kickE + 0.50 * bassE
1124 cr = fr * lit
1125 cg = fg * lit
1126 cb = fb * lit
1128 rng = exp(-abs(fract(rr * (3.2 + 2.2 * climb) - beat * 0.70) - 0.5) * 18)
1129 ringk = rng * (0.25 + 0.75 * kickE) * smooth(0.02, 0.35, rr)
1130 cr = cr + ringk * 1.00
1131 cg = cg + ringk * 0.55
1132 cb = cb + ringk * 0.12
1134 core = exp(-rr * (6.0 + 10.0 * burst)) * (0.5 + 1.0 * burst + 0.35 * kickE)
1135 cr = cr + core * 1.00
1136 cg = cg + core * 0.95
1137 cb = cb + core * 0.85
1139 streak = exp(-abs(sin(ang * 28 + time * 4.5)) * 24) * climb * smooth(0.04, 0.55, rr)
1140 cr = cr + streak * 0.90
1141 cg = cg + streak * 0.75
1142 cb = cb + streak * 0.30
1144 wo = burst * (0.65 + 0.35 * sin(time * 22.0))
1145 cr = mix(cr, 1.00, wo)
1146 cg = mix(cg, 0.98, wo)
1147 cb = mix(cb, 0.92, wo)
1149 vgk = 1 - 0.42 * clamp(len(u * 0.85, v * 1.05), 0, 1) ^ 2
1150 cr = cr * vgk
1151 cg = cg * vgk
1152 cb = cb * vgk
1153 rgb(min(cr, 1), min(cg, 1), min(cb, 1))
1155 trail = 0.50 * (1 - calm)
1156 cprevz(0.5, 0.5, 1.08 + 0.24 * climb, 0.02 * climb, trail)
1159# ============================================================================
1160# HANDOFF 3 -- section 3 of 4, 0:24 .. 0:36
1161# ----------------------------------------------------------------------------
1162# SCENE / PIXEL PROGRAM
1163# `pixel breach` = pixel program index 2. Timeline `8:00 act=2` (order
1164# position 8 = 24.0 s; timeline positions are DECIMAL order:row indices and
1165# the order list now has 12 entries 0..11). The maw's amber core is
1166# revealed as the creature's own eye seen from outside: whiteout pop
1167# 24.0..25.8 (outk), then night sky -- two hash star layers, fbm moon at
1168# (-0.46, 0.30), aurora curtains (palette night), fbm cloud deck, and a
1169# voronoi-hide serpent swimming the cloud tops (palette hide reused). Its
1170# amber eye at (0.28, ~-0.25) pulses on the kick, blinks every ~7.4 s,
1171# ripples on every horn call (trig(5)), and flares 33.0..35.9 s
1172# (eyeup x2.8) while the camera pushes in x1.12 (push). A cprevz trail
1173# (k = 0.50 decaying, zoom 1.06) keeps the maw's momentum for ~1.5 s.
1174# No new uniforms; the frame block is untouched.
1176# TIMING TRAP (still applies to stage 4)
1177# pattern 2 row 0 is a BYTE-EXACT copy of pattern 1 row 0. Stage 4: copy
1178# pattern 2 row 0 verbatim into pattern 3 row 0. Tick quantisation (918
1179# samples/tick) makes a truncated render end ~29 ms into the NEXT order
1180# entry's row 0 at 36 s (288 rows * 5508 = 1586304 vs 1587600 samples).
1182# PATTERN / ORDER
1183# order 0 0 0 0 1 1 1 1 2 2 2 2. pattern 2 rows=24 plays at order
1184# positions 8..11 (24, 27, 30, 33 s). Halftime groove: kick rows 0/8/16,
1185# clap row 12, hat offbeats; ch3 = acid bass D-2 (row 0, fixed) -> sub
1186# A#1 (row 8) -> sub A-1 (row 16) with `off` releases at rows 7/15/23;
1187# ch4 = drone D-2 (fixed) + choir F-3 (8) + A-3 (16), a Dm triad ringing
1188# across the loop; ch5 horn calls A-4 / G-4 / F-4 at rows 2/10/18
1189# (p0 crescendo S10/S20/S30); ch7 mote arp D5 F5 A5 C6 ... with the G#5
1190# tritone stab at row 22 (S40), time-gated in 29.2..31.4 s; ch6 breath
1191# (fixed) + shimmer D-6 at row 12, gated 29.6..31.8 s. Four passes =
1192# sparse (24-29 s) -> full (31.4-36 s) build with no pattern changes.
1194# INSTRUMENTS (13..17 are new; 1..12 untouched)
1195# 13 horn ch5 nna=continue detuned saw call, vibrato, p0 = brightness
1196# 14 mote ch7 nna=continue glass pluck, p0 = cutoff, gate 29.2..31.4 s
1197# 15 sub ch3 nna=continue deep sine root, pairs with kick rows 8/16
1198# 16 shimmer ch6 nna=continue airy band-passed noise, gate 29.6..31.8 s
1199# 17 choir ch4 nna=continue slow pad, stacks F-3 / A-3 over drone D-2
1200# NNA RULE (src/dm_synth.c:67): the OLD voice's instrument flag decides
1201# release-vs-cut. toll (cut type) would be chopped by any same-channel
1202# note inside its 2.4 s release, so section 3 leaves toll silent.
1204# PALETTES
1205# night added -- 7 of 8 palette slots used, ONE slot left for stage 4.
1206# breach also reuses `hide` for the creature's scales.
1208# WHAT STAGE 4 CAN PICK UP
1209# - At 36.0 s the camera is mid push-in on the eye, which is at 2.8x
1210# brightness and kick-pulsed, at screen pos (0.28, ~-0.25): dive back
1211# INTO it (mirror of scene 1's dive), or let the creature turn/attack.
1212# - The texture is full by now (mote arp + shimmer running); the groove is
1213# halftime -- doubling back to 16th bass reads as an instant lift.
1214# - Add your scene event at `12:00 act=3` after appending four `3`s to the
1215# order (order position 12 = 36.0 s; positions are decimal). Your
1216# `pixel` block becomes program index 3.
1217# ============================================================================
1219# ============================================================================
1220# HANDOFF 4 -- section 4 of 4, 0:36 .. 0:48
1221# ----------------------------------------------------------------------------
1222# SCENE / PIXEL PROGRAM
1223# `pixel surge` = pixel program index 3. Timeline `12:00 act=3` (order
1224# position 12 = 36.0 s). The finale dives back into the amber eye that
1225# breach flared at 35.9 s: the camera pulls the eye to centre and zooms
1226# 1x -> 7x -> 15x over 36..44 s, while a seven-fold log-polar furnace tunnel
1227# (palette ember mixed into tallow) races inward. Beat rings, a white core,
1228# angular fire streaks and a cprevz trail build the intensity; 44..47.5 s
1229# a sinusoidal whiteout (`burst`) washes the screen, and 47..48 s `calm`
1230# pulls the camera back to leave a fading ember after-image.
1232# TIMING TRAP (verified)
1233# pattern 3 row 0 is a BYTE-EXACT copy of pattern 2 row 0. A --seconds 36
1234# render ends ~29 ms into order position 12's row 0; copying the row keeps
1235# the first 36 s byte-identical.
1237# PATTERN / ORDER
1238# order 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3. pattern 3 rows=24 plays at order
1239# positions 12..15 (36, 39, 42, 45 s). Row 0 is identical to pattern 2 row 0;
1240# rows 1..23 intensify the groove: kick every 4 rows, clap on rows 8/20,
1241# hat offbeats, ch3 = grub 16th roots (D-2 / A#1 / C-2 / A-1 / G#1),
1242# ch4 choir F-3/A-3, ch5 drone D-2 + flare lead A-4/G-4/A-4/F-4/E-5,
1243# ch6 breath C-3 + shimmer D-6 + rupture noise riser, ch7 mote arp.
1245# INSTRUMENTS (18..19 are new; 1..17 untouched)
1246# 18 flare ch5 nna=continue detuned saw lead, gated 39.8..47.0 s
1247# 19 rupture ch6 nna=continue noise riser, gated 42.0..47.5 s
1249# PALETTES
1250# ember added -- the 8th and final palette slot. Reuses tallow for the
1251# white-hot mix and ember for the blood-amber furnace.
1253# WHAT WAS DELIVERED
1254# This is the final section; no later stage exists. The 48 s demo renders
1255# to build/video/chimaera.mp4 and build/audio/chimaera.wav.
1256# ============================================================================

Click a line number to link to that line.

← CELLS