dmscene Demos & source

BONECHURCH

bonechurch.dmt · 110 BPM · 29 s · 960×600

model-madeloopsfractalrave

notes

A gothic cathedral built from fractal bone and stained glass, set to thirteen bars of dark rave mass.

musicgothic rave in D minor: deep kick, snare, 8th hats, organ bass, choir arpeggios, bell melody over Dm–B♭–F–C
visualinside a bone nave: a kaleidoscopic kali rose window, domain-repeated SDF arches and ribbed vaults, a receding floor grid, columns, rotating light shafts and dust; bloom and vignette
filebonechurch.dmt
duration0:29
video960×600 · 30 fps · h264 + audio · 4.6 MB
song110 BPM · speed 6 · rpb 4 · 6 channels
loop1
renderscale 1 · master 0.60
uniformskickE snE bellE cam fog glow
modelKimi K2.7 Code
collectionWritten by the models
tagsmodel-madeloopsfractalrave
source410 lines · 13 KB · download

anatomy

10VM programs
10patterns
3palettes
12timeline events
1text / sample / texture
410source lines
6inst
0chan
1master
1frame
1pixel
1post
1fn

line composition

pattern 52%pixel 19%inst 10%palette 7%timeline 2%frame 2%post 2%fn 2%master 2%title 0%song 0%order 0%pan 0%uniform 0%text 0%

play order

0123456735869

order list · loop returns to order 1 · 13 entries

palettes

bone5 keys · lines 19–25
glass10 keys · lines 27–38
ember5 keys · lines 40–46

timeline

0:00 0:07 0:14 0:22 0:29 cam cam=0 at 0:00 cam=1 at 0:09 cam=2 at 0:13 cam=3 at 0:17 fog fog=1 at 0:00 glow glow=0.5 at 0:00 glow=1 at 0:04 glow=1.3 at 0:09 glow=0.9 at 0:13 glow=1.6 at 0:17 glow=0.7 at 0:22 glow=0.3 at 0:26
ateventvaluesource
0:00 cam 0 L305
0:00 fog 1 L305
0:00 glow 0.5 L305
0:04 glow 1.0 L306
0:09 cam 1 L307
0:09 glow 1.3 L307
0:13 cam 2 L308
0:13 glow 0.9 L308
0:17 cam 3 L309
0:17 glow 1.6 L309
0:22 glow 0.7 L310
0:26 glow 0.3 L311

Event times are derived from the order list, pattern lengths, BPM and RPB. The timeline loops with the song, so this is the first pass.

resources

kindnameinfovalue
textword10BONECHURCH

source

download .dmt
1# @description A gothic cathedral built from fractal bone and stained glass, set to thirteen bars of dark rave mass.
2# @tags fractal, rave
3# @model Kimi K2.7 Code
4# @collection Written by the models
5# @music gothic rave in D minor: deep kick, snare, 8th hats, organ bass, choir arpeggios, bell melody over Dm–B♭–F–C
6# @visual inside a bone nave: a kaleidoscopic kali rose window, domain-repeated SDF arches and ribbed vaults, a receding floor grid, columns, rotating light shafts and dust; bloom and vignette
7# @duration 29
8# bonechurch.dmt - a gothic cathedral built from fractal bone and stained glass
9# 110 BPM, ~28 seconds, 13 bars of dark rave mass.
11title BONECHURCH
12song bpm=110 speed=6 rpb=4 channels=6 loop=1 volume=0.60
13order 0 1 2 3 4 5 6 7 3 5 8 6 9
14pan 0.5 0.5 0.5 0.4 0.6 0.5
16# ------------------------------------------------------------------ palettes
17text word "BONECHURCH"
19palette bone {
20 0.00 0.100 0.110 0.130
21 0.25 0.220 0.230 0.250
22 0.50 0.420 0.430 0.450
23 0.75 0.680 0.690 0.700
24 1.00 0.950 0.950 0.940
27palette glass {
28 0.00 0.150 0.000 0.250
29 0.11 0.500 0.000 0.550
30 0.22 0.950 0.000 0.300
31 0.33 1.000 0.550 0.000
32 0.44 0.000 0.600 1.000
33 0.55 0.000 0.950 1.000
34 0.66 1.000 1.000 0.000
35 0.77 1.000 0.250 0.250
36 0.88 0.700 0.000 0.900
37 1.00 0.150 0.000 0.250
40palette ember {
41 0.00 0.050 0.010 0.000
42 0.30 0.600 0.150 0.020
43 0.60 1.000 0.450 0.050
44 0.85 1.000 0.900 0.250
45 1.00 1.000 1.000 0.700
48# ------------------------------------------------------------------ instruments
49inst kick {
50 f = 50 + 420 * exp(-t * 42)
51 $p = $p + f / sr
52 body = sin($p * tau) * exp(-t * 7)
53 click = noise() * exp(-t * 90) * 0.6
54 out(dist((body + click) * 2.2, 1.45) * 0.72)
57inst snare {
58 n = hp(noise(), 2200) * exp(-t * 15)
59 tone = sin(tau * 210 * t) * exp(-t * 38)
60 out((n * 0.8 + tone * 0.55) * 0.55)
63inst hat {
64 n = hp(noise(), 6500)
65 out(n * exp(-t * 75) * 0.32)
68inst organ {
69 e = env(0.04, 0.35, 0.75, 0.35)
70 a = saw(ph) + saw(ph * 0.997) * 0.5 + saw(ph * 1.004) * 0.3
71 a = lp(a, 700 + 1800 * e)
72 out(a * e * 0.22)
75inst choir {
76 e = env(0.25, 0.55, 0.7, 0.75)
77 vib = 1 + 0.012 * sin(t * 4.5)
78 $p = $p + freq * vib / sr
79 a = saw($p) + saw($p * 1.003) * 0.55 + saw($p * 0.996) * 0.45
80 a = svf(a, 900 + 600 * sin(t * 0.4), 0.35)
81 out(a * e * 0.16)
84inst bell {
85 e = exp(-t * 2.2)
86 m = sin(ph * tau * 2.3) * 2.8 * exp(-t * 2.8)
87 a = sin(ph * tau + m)
88 b = sin(ph * tau * 3.4 + m * 0.4)
89 out((a * 0.7 + b * 0.3) * e * 0.26)
92# ------------------------------------------------------------------ master
93master {
94 dl = dly(l, 0.273, 0.34)
95 dr = dly(r, 0.409, 0.34)
96 w = verb(l * 0.5 + r * 0.5, 0.82, 0.5)
97 out(dist(l + dr * 0.24 + w * 0.16, 1.2), dist(r + dl * 0.24 + w * 0.16, 1.2))
100# ------------------------------------------------------------------ patterns
101# channels: 0 kick 1 snare 2 hat 3 organ bass 4 choir arp 5 bell
103pattern 0 rows=16 {
104 # intro: organ drone + choir, no drums
105 . | . | . | D-1 4 38 | D-3 5 30 037 | .
106 . | . | . | . | . | .
107 . | . | . | . | . | .
108 . | . | . | . | . | .
109 . | . | . | . | F-3 5 24 037 | .
110 . | . | . | . | . | .
111 . | . | . | . | A-3 5 22 037 | .
112 . | . | . | . | . | .
113 . | . | . | D-1 4 36 | D-3 5 28 037 | .
114 . | . | . | . | . | .
115 . | . | . | . | . | .
116 . | . | . | . | . | .
117 . | . | . | . | F-3 5 22 037 | .
118 . | . | . | . | . | .
119 . | . | . | . | A-3 5 20 037 | .
120 . | . | . | . | . | .
123pattern 1 rows=16 {
124 # drums enter on Dm
125 D-2 1 40 | . | C-6 3 18 | D-1 4 40 | D-3 5 32 037 | .
126 . | . | C-6 3 14 | . | . | .
127 . | . | C-6 3 18 | . | . | .
128 . | . | C-6 3 14 | . | . | .
129 . | C-5 2 38 | C-6 3 18 | . | F-3 5 28 037 | .
130 . | . | C-6 3 14 | . | . | .
131 . | . | C-6 3 18 | . | A-3 5 26 037 | .
132 . | . | C-6 3 14 | . | . | .
133 D-2 1 40 | . | C-6 3 18 | D-1 4 . | D-3 5 32 037 | .
134 . | . | C-6 3 14 | . | . | .
135 . | . | C-6 3 18 | . | . | .
136 . | . | C-6 3 14 | . | . | .
137 . | C-5 2 40 | C-6 3 18 | . | F-3 5 28 037 | .
138 . | . | C-6 3 14 | . | . | .
139 . | . | C-6 3 18 | . | A-3 5 26 037 | .
140 . | . | C-6 3 14 | . | . | .
143pattern 2 rows=16 {
144 # build: kick every beat, busy hats
145 D-2 1 40 | . | C-6 3 20 | D-1 4 40 | D-3 5 34 037 | .
146 . | . | C-6 3 16 | . | . | .
147 D-2 1 34 | . | C-6 3 20 | . | . | .
148 . | . | C-6 3 16 | . | . | .
149 D-2 1 40 | C-5 2 38 | C-6 3 20 | . | F-3 5 30 047 | .
150 . | . | C-6 3 16 | . | . | .
151 D-2 1 34 | . | C-6 3 20 | . | A-3 5 28 047 | .
152 . | . | C-6 3 16 | . | . | .
153 D-2 1 40 | . | C-6 3 20 | D-1 4 . | D-3 5 34 037 | .
154 . | . | C-6 3 16 | . | . | .
155 D-2 1 36 | . | C-6 3 20 | . | . | .
156 . | . | C-6 3 16 | . | . | .
157 D-2 1 40 | C-5 2 40 | C-6 3 20 | . | F-3 5 30 047 | .
158 . | . | C-6 3 16 | . | . | .
159 D-2 1 38 | . | C-6 3 20 | . | A-3 5 28 047 | .
160 . | . | C-6 3 16 | . | . | .
163pattern 3 rows=16 {
164 # chorus Dm: bell melody enters
165 D-2 1 40 | . | C-6 3 20 | D-1 4 40 | D-3 5 36 037 | D-5 6 32
166 . | . | C-6 3 16 | . | . | .
167 D-2 1 36 | . | C-6 3 20 | . | . | .
168 . | . | C-6 3 16 | . | . | .
169 D-2 1 40 | C-5 2 40 | C-6 3 20 | . | F-3 5 32 047 | F-5 6 28
170 . | . | C-6 3 16 | . | . | .
171 D-2 1 36 | . | C-6 3 20 | . | A-3 5 30 047 | .
172 . | . | C-6 3 16 | . | . | .
173 D-2 1 40 | . | C-6 3 20 | D-1 4 . | D-3 5 36 037 | A-5 6 30
174 . | . | C-6 3 16 | . | . | .
175 D-2 1 36 | . | C-6 3 20 | . | . | .
176 . | . | C-6 3 16 | . | . | .
177 D-2 1 40 | C-5 2 40 | C-6 3 20 | . | F-3 5 32 047 | D-5 6 28
178 . | . | C-6 3 16 | . | . | .
179 D-2 1 38 | . | C-6 3 20 | . | A-3 5 30 047 | F-5 6 26
180 . | . | C-6 3 16 | . | . | .
183pattern 4 rows=16 {
184 # chorus Bb
185 A#1 1 40 | . | C-6 3 20 | A#0 4 40 | A#2 5 36 037 | D-5 6 30
186 . | . | C-6 3 16 | . | . | .
187 A#1 1 36 | . | C-6 3 20 | . | . | .
188 . | . | C-6 3 16 | . | . | .
189 A#1 1 40 | C-5 2 40 | C-6 3 20 | . | D-3 5 32 047 | F-5 6 28
190 . | . | C-6 3 16 | . | . | .
191 A#1 1 36 | . | C-6 3 20 | . | F-3 5 30 047 | .
192 . | . | C-6 3 16 | . | . | .
193 A#1 1 40 | . | C-6 3 20 | A#0 4 . | A#2 5 36 037 | A#4 6 30
194 . | . | C-6 3 16 | . | . | .
195 A#1 1 36 | . | C-6 3 20 | . | . | .
196 . | . | C-6 3 16 | . | . | .
197 A#1 1 40 | C-5 2 40 | C-6 3 20 | . | D-3 5 32 047 | D-5 6 28
198 . | . | C-6 3 16 | . | . | .
199 A#1 1 38 | . | C-6 3 20 | . | F-3 5 30 047 | F-5 6 26
200 . | . | C-6 3 16 | . | . | .
203pattern 5 rows=16 {
204 # chorus F
205 F-1 1 40 | . | C-6 3 20 | F-0 4 40 | F-2 5 36 037 | A-4 6 30
206 . | . | C-6 3 16 | . | . | .
207 F-1 1 36 | . | C-6 3 20 | . | . | .
208 . | . | C-6 3 16 | . | . | .
209 F-1 1 40 | C-5 2 40 | C-6 3 20 | . | A-2 5 32 047 | C-5 6 28
210 . | . | C-6 3 16 | . | . | .
211 F-1 1 36 | . | C-6 3 20 | . | C-3 5 30 047 | .
212 . | . | C-6 3 16 | . | . | .
213 F-1 1 40 | . | C-6 3 20 | F-0 4 . | F-2 5 36 037 | F-4 6 30
214 . | . | C-6 3 16 | . | . | .
215 F-1 1 36 | . | C-6 3 20 | . | . | .
216 . | . | C-6 3 16 | . | . | .
217 F-1 1 40 | C-5 2 40 | C-6 3 20 | . | A-2 5 32 047 | A-4 6 28
218 . | . | C-6 3 16 | . | . | .
219 F-1 1 38 | . | C-6 3 20 | . | C-3 5 30 047 | C-5 6 26
220 . | . | C-6 3 16 | . | . | .
223pattern 6 rows=16 {
224 # chorus C
225 C-1 1 40 | . | C-6 3 20 | C-0 4 40 | C-2 5 36 037 | E-4 6 30
226 . | . | C-6 3 16 | . | . | .
227 C-1 1 36 | . | C-6 3 20 | . | . | .
228 . | . | C-6 3 16 | . | . | .
229 C-1 1 40 | C-5 2 40 | C-6 3 20 | . | E-2 5 32 047 | G-4 6 28
230 . | . | C-6 3 16 | . | . | .
231 C-1 1 36 | . | C-6 3 20 | . | G-2 5 30 047 | .
232 . | . | C-6 3 16 | . | . | .
233 C-1 1 40 | . | C-6 3 20 | C-0 4 . | C-2 5 36 037 | C-5 6 30
234 . | . | C-6 3 16 | . | . | .
235 C-1 1 36 | . | C-6 3 20 | . | . | .
236 . | . | C-6 3 16 | . | . | .
237 C-1 1 40 | C-5 2 40 | C-6 3 20 | . | E-2 5 32 047 | E-4 6 28
238 . | . | C-6 3 16 | . | . | .
239 C-1 1 38 | . | C-6 3 20 | . | G-2 5 30 047 | G-4 6 26
240 . | . | C-6 3 16 | . | . | .
243pattern 7 rows=16 {
244 # break: no drums, choir swells, bell arpeggio
245 . | . | . | D-1 4 34 | D-3 5 30 037 | D-5 6 28
246 . | . | . | . | . | .
247 . | . | . | . | . | F-5 6 26
248 . | . | . | . | . | .
249 . | . | . | . | F-3 5 28 047 | A-5 6 24
250 . | . | . | . | . | .
251 . | . | . | . | . | D-6 6 22
252 . | . | . | . | . | .
253 . | . | . | D-1 4 32 | D-3 5 26 037 | A-5 6 24
254 . | . | . | . | . | .
255 . | . | . | . | . | F-5 6 22
256 . | . | . | . | . | .
257 . | . | . | . | F-3 5 26 047 | D-5 6 20
258 . | . | . | . | . | .
259 . | . | . | . | . | A-4 6 18
260 . | . | . | . | . | .
263pattern 8 rows=16 {
264 # finale Dm: kick rolls, all in
265 D-2 1 40 | . | C-6 3 22 | D-1 4 40 | D-3 5 38 037 | D-5 6 34
266 D-2 1 34 | . | C-6 3 16 | . | . | .
267 D-2 1 38 | . | C-6 3 22 | . | . | .
268 D-2 1 36 | . | C-6 3 16 | . | . | .
269 D-2 1 40 | C-5 2 40 | C-6 3 22 | . | F-3 5 34 047 | F-5 6 30
270 . | . | C-6 3 16 | . | . | .
271 D-2 1 40 | . | C-6 3 22 | . | A-3 5 32 047 | A-5 6 28
272 . | . | C-6 3 16 | . | . | .
273 D-2 1 40 | . | C-6 3 22 | D-1 4 . | D-3 5 38 037 | D-6 6 32
274 D-2 1 38 | . | C-6 3 16 | . | . | .
275 D-2 1 40 | . | C-6 3 22 | . | . | .
276 D-2 1 40 | . | C-6 3 16 | . | . | .
277 D-2 1 40 | C-5 2 40 | C-6 3 22 | . | F-3 5 34 047 | A-5 6 30
278 D-2 1 40 | . | C-6 3 16 | . | . | .
279 D-2 1 40 | . | C-6 3 22 | . | A-3 5 32 047 | F-5 6 28
280 D-2 1 40 | . | C-6 3 16 | . | . | D-6 6 34
283pattern 9 rows=16 {
284 # outro: fade, but still visible and audible
285 D-2 1 36 | . | . | D-1 4 34 | D-3 5 30 037 | D-5 6 24
286 . | . | . | . | . | .
287 . | . | . | . | . | .
288 . | . | . | . | . | .
289 . | . | . | . | F-3 5 26 047 | F-5 6 20
290 . | . | . | . | . | .
291 . | . | . | . | . | .
292 . | . | . | . | . | .
293 D-2 1 30 | . | . | D-1 4 30 | D-3 5 24 037 | A-4 6 18
294 . | . | . | . | . | .
295 . | . | . | . | . | .
296 . | . | . | . | . | .
297 . | . | . | . | F-3 5 22 047 | F-4 6 16
298 . | . | . | . | . | .
299 . | . | . | . | . | .
300 . | . | . | . | . | .
303# ------------------------------------------------------------------ visuals
304timeline {
305 0:00 cam=0 fog=1 glow=0.5
306 2:00 glow=1.0
307 4:00 cam=1 glow=1.3
308 6:00 cam=2 glow=0.9
309 8:00 cam=3 glow=1.6
310 10:00 glow=0.7
311 12:00 glow=0.3
314fn textline(s, px, py, sz) {
315 cx = (u - px) / sz
316 cy = (py - v) / sz
317 i = floor(cx)
318 return glyph(str(s, i), fract(cx), fract(cy)) * step(0, cx) * step(cx, strlen(s)) * step(0, cy) * step(cy, 1)
321uniform kickE snE bellE cam fog glow
323frame {
324 kickE = exp(-trig(0) * 8)
325 snE = exp(-trig(1) * 10) * step(0.5, vel(1))
326 bellE = exp(-trig(5) * 5)
327 cam = evtl(cam)
328 fog = evtl(fog)
329 glow = evtl(glow) + kickE * 0.25 + snE * 0.15 + bellE * 0.2
332pixel {
333 # --- stone wall background ---
334 stone = fbm(u * 2.2 + beat * 0.008, v * 1.8 - beat * 0.004, 4)
335 pal(bone, stone * 0.28 + 0.12 + cam * 0.015)
337 # --- rose window (stained glass) ---
338 wx = u * 2.2
339 wy = (v - 0.28) * 2.2
340 wd = len(wx, wy)
341 mask = step(wd, 0.92) * step(0.05, v)
342 ring = exp(-abs(wd - 0.86) * 45)
343 it = kali(wx, wy, 0.78 + 0.05 * sin(beat * 0.1), 0.62, 10)
344 tone = 0.20 + log(1 + it) * 0.30 + beat * 0.025 + cam * 0.03
345 pal(glass, tone)
346 win_r = cget(0)
347 win_g = cget(1)
348 win_b = cget(2)
349 # restore stone and blend
350 pal(bone, stone * 0.28 + 0.12 + cam * 0.015)
351 cmul(1 - mask * 0.92)
352 win = mask * (0.7 + 0.35 * ring)
353 cadd(win_r * win, win_g * win, win_b * win)
354 # bone frame around the window
355 cadd(ring * 0.40, ring * 0.36, ring * 0.28)
357 # --- ribbed bone vaults (domain-repeated arches) ---
358 repeat i 4 {
359 rx = fract(u * (0.8 + i * 0.25) + 0.5) - 0.5
360 ry = v - 0.18 - i * 0.05
361 arc = abs(len(rx * (2.2 + i * 0.4), ry)) - (0.32 + i * 0.04)
362 rib = exp(-arc * arc * (70 + i * 20))
363 cadd(rib * 0.40, rib * 0.36, rib * 0.28)
364 }
366 # --- perspective floor and columns ---
367 floor = step(v, 0)
368 depth = 1 / (0.08 - v * 0.5 + 0.02)
369 wxf = u * depth * 0.45
370 gz = depth + beat * 0.15
371 gx = abs(fract(wxf * 2) - 0.5)
372 gzline = abs(fract(gz * 0.5) - 0.5)
373 fgrid = (exp(-gx * 14) + exp(-gzline * 14)) * floor
374 cadd(fgrid * 0.15, fgrid * 0.14, fgrid * 0.11)
376 colx = fract(wxf * 0.5 + 0.5) * 2 - 1
377 colw = 0.08 * depth
378 col = step(abs(colx), colw) * floor * step(depth, 9)
379 cadd(col * 0.18, col * 0.16, col * 0.13)
381 # --- light shafts from above ---
382 angle = atan2(u, v - 0.55)
383 shaft = abs(fract(angle * 3 / tau + beat * 0.035 + cam * 0.08) - 0.5)
384 beam = exp(-shaft * 28) * step(0.12, v) * (0.05 + glow * 0.05)
385 cadd(beam * 0.85, beam * 0.75, beam * 0.55)
387 # --- sparse dust motes ---
388 dust = step(0.997, hash(floor(u * 100) + floor(v * 100) * 101 + floor(beat * 6))) * (0.04 + glow * 0.04)
389 cadd(dust, dust * 0.95, dust * 0.8)
391 # --- title inscription ---
392 ttl = textline(word, -1.05, -0.72, 0.24)
393 cadd(ttl * 0.90, ttl * 0.83, ttl * 0.68)
395 # --- atmospheric feedback (very slight ghost) ---
396 drift = 0.003 * sin(beat * 0.08 + cam)
397 cprevz(0.5, 0.5, 1.001 + kickE * 0.0005, drift, 0.04 + glow * 0.02)
399 # --- kick flash and snare tint ---
400 cadd(kickE * 0.04, kickE * 0.035 + snE * 0.015, kickE * 0.03 + snE * 0.01)
403post {
404 # soft bloom and vignette
405 b = tap(-1, 0) + tap(1, 0) + tap(0, -1) + tap(0, 1)
406 bl = b * 0.25
407 rgb(cget(0) + bl * 0.25, cget(1) + bl * 0.20, cget(2) + bl * 0.16)
408 d = len(u, v)
409 cmul(1 - 0.30 * d * d)

Click a line number to link to that line.