MYCELIUM
mycelium.dmt · 92 BPM · 42 s · 960×600
ambientprocedural
notes
Breathing gills, spores and iridescent mycelium on a 64-beat journey: emergence, branching, bloom and a quiet return.
| music | ambient: heartbeat kick, spores, root bass, breath pad, glints, rustle and wind |
|---|---|
| visual | a warped plane folded into mushroom-gill radials, branching filaments, a cellular spore layer and breathing colour feedback over a 64-beat arc |
| file | mycelium.dmt |
|---|---|
| duration | 0:42 |
| video | 960×600 · 30 fps · h264 + audio · 17 MB |
| song | 92 BPM · speed 6 · rpb 4 · 6 channels |
| loop | 0 |
| render | scale 1 · master 0.54 |
| uniforms | spin swell hue pulse glint bloomAmt breathAmp phase fold |
| collection | Demos |
| tags | ambientprocedural |
| source | 209 lines · 9 KB · download |
anatomy
10VM programs
4patterns
2palettes
0timeline events
0text / sample / texture
209source lines
7inst
0chan
1master
1frame
1pixel
0post
0fn
line composition
pattern 37%pixel 22%inst 21%palette 9%frame 6%master 4%title 1%song 1%order 1%uniform 1%
play order
0011223301231230
order list · 16 entries
palettes
night7 keys · lines 12–20
bloom7 keys · lines 21–29
timeline
This demo has no timeline events; it is driven by the tracker clock and per-frame programs.
resources
No external text, samples, textures or envelopes.
source
1# @description Breathing gills, spores and iridescent mycelium on a 64-beat journey: emergence, branching, bloom and a quiet return.
2# @tags ambient, procedural
3# @collection Demos
4# @music ambient: heartbeat kick, spores, root bass, breath pad, glints, rustle and wind
5# @visual a warped plane folded into mushroom-gill radials, branching filaments, a cellular spore layer and breathing colour feedback over a 64-beat arc
6# mycelium.dmt - psilocybin-inspired breathing gills, spores, and iridescent mycelium
7# A 64-beat journey: emergence, branching, bloom, and a quiet return.
8title MYCELIUM
9song bpm=92 speed=6 rpb=4 channels=6 loop=0 volume=0.54
10order 0 0 1 1 2 2 3 3 0 1 2 3 1 2 3 0
12palette night {
13 0.00 0.005 0.010 0.030
14 0.18 0.025 0.060 0.120
15 0.36 0.110 0.040 0.220
16 0.54 0.200 0.480 0.500
17 0.72 0.850 0.380 0.480
18 0.88 0.980 0.780 0.490
19 1.00 0.005 0.010 0.030
20}
21palette bloom {
22 0.00 0.025 0.010 0.080
23 0.18 0.180 0.035 0.280
24 0.36 0.630 0.100 0.430
25 0.54 0.970 0.400 0.520
26 0.72 0.970 0.830 0.480
27 0.88 0.340 0.900 0.770
28 1.00 0.025 0.010 0.080
29}
31inst heart {
32 f = 48 + 370 * exp(-t * 35)
33 $phase = $phase + f / sr
34 thump = sin($phase * tau) * exp(-t * 7)
35 air = lp(noise(), 900) * exp(-t * 45)
36 out(dist(thump * 1.6 + air * 0.12, 1.3) * 0.60)
37}
38inst spores {
39 n = hp(noise(), 6500)
40 out(n * exp(-t * (24 + 55 * (1 - vel))) * 0.22)
41}
42inst root {
43 e = env(0.015, 0.30, 0.55, 0.35)
44 sub = sin(ph * tau)
45 wood = svf(tri(ph) + saw(ph * 2.003) * 0.24, 130 + 420 * e, 0.25)
46 out((sub * 0.46 + wood * 0.20) * e)
47}
48inst breath {
49 e = env(0.40, 0.8, 0.75, 1.3)
50 a = sin(ph * tau + sin(ph * tau * 0.5 + t * 0.27) * 0.7)
51 b = saw(ph + t * 0.0013) + saw(ph - t * 0.0017)
52 s = svf(a * 0.7 + b * 0.22, 450 + 220 * sin(t * 0.31) + p0 * 800, 0.2)
53 out(s * e * 0.25)
54}
55inst glint {
56 e = exp(-t * 1.9)
57 mod = sin(ph * tau * 2.51) * 1.7 * exp(-t * 2.8)
58 a = sin(ph * tau + mod)
59 b = sin(ph * tau * 2.01 + mod * 0.3)
60 out((a + b * 0.32) * e * 0.24)
61}
62inst rustle {
63 n = svf(noise(), 1700 + 1500 * exp(-t * 12), 0.4)
64 out((n * 0.7 + r2 * 0.5) * exp(-t * 8) * 0.32)
65}
66inst wind {
67 e = env(0.7, 0.7, 0.6, 1.2)
68 n = svf(noise(), 650 + 500 * sin(t * 0.24), 0.3)
69 out(n * e * 0.10)
70}
72master {
73 dl = dly(l, 0.489, 0.42)
74 dr = dly(r, 0.652, 0.42)
75 vl = verb(l + dr * 0.26, 0.77, 0.55)
76 vr = verb(r + dl * 0.26, 0.77, 0.55)
77 out(dist(l + dr * 0.32 + vl * 0.20, 1.15), dist(r + dl * 0.32 + vr * 0.20, 1.15))
78}
80# channels: 0 heartbeat, 1 spores, 2 root bass, 3 breath pad, 4 glints, 5 rustle/wind
81pattern 0 rows=16 {
82 C-2 1 32 | . | A-1 3 34 | A-3 4 27 S30 | . | A-4 7 22
83 . | . | . | . | . | .
84 . | C-6 2 10 | . | . | E-5 5 17 | .
85 . | . | . | . | . | .
86 . | . | . | . | . | .
87 . | C-6 2 14 | . | . | . | .
88 . | . | E-2 3 27 | . | A-5 5 14 | .
89 . | . | . | . | . | .
90 C-2 1 28 | . | F-1 3 34 | F-3 4 26 S55 | . | .
91 . | . | . | . | . | .
92 . | C-6 2 11 | . | . | C-6 5 18 | .
93 . | . | . | . | . | .
94 . | . | . | . | . | .
95 . | C-6 2 14 | C-2 3 25 | . | . | .
96 . | . | . | . | A-5 5 15 | .
97 . | . | . | . | . | .
98}
99pattern 1 rows=16 {
100 C-2 1 36 | . | D-1 3 36 | D-3 4 29 S70 | A-4 5 21 | C-4 6 22
101 . | C-6 2 11 | . | . | . | .
102 . | C-6 2 17 | . | . | F-5 5 19 | .
103 . | . | A-1 3 25 | . | . | .
104 . | . | . | . | C-6 5 17 | C-4 6 18
105 . | C-6 2 12 | . | . | . | .
106 . | C-6 2 19 | D-2 3 28 | . | A-5 5 20 | .
107 . | . | . | . | . | .
108 C-2 1 36 | . | G-1 3 36 | G-3 4 29 S95 | . | C-4 6 24
109 . | C-6 2 11 | . | . | . | .
110 . | C-6 2 17 | . | . | D-6 5 19 | .
111 . | . | D-2 3 25 | . | . | .
112 . | . | . | . | B-5 5 17 | C-4 6 18
113 . | C-6 2 12 | . | . | . | .
114 . | C-6 2 19 | G-2 3 28 | . | G-5 5 20 | .
115 . | . | . | . | D-5 5 13 | .
116}
117pattern 2 rows=16 {
118 C-2 1 39 | C-6 2 10 | A-1 3 38 | A-3 4 31 SC0 | C-5 5 22 | C-4 6 25
119 . | . | . | . | . | .
120 . | C-6 2 19 | E-2 3 29 | . | E-5 5 19 | .
121 . | . | . | . | G-5 5 15 | .
122 . | C-6 2 12 | . | . | A-5 5 22 | C-4 6 19
123 . | . | . | . | . | .
124 . | C-6 2 21 | E-2 3 29 | . | C-6 5 20 | .
125 . | . | . | . | E-6 5 15 | .
126 C-2 1 39 | C-6 2 10 | F-1 3 38 | F-3 4 31 SE0 | A-4 5 22 | C-4 6 25
127 . | . | . | . | . | .
128 . | C-6 2 19 | C-2 3 29 | . | C-5 5 19 | .
129 . | . | . | . | E-5 5 15 | .
130 . | C-6 2 12 | . | . | F-5 5 22 | C-4 6 19
131 . | . | . | . | . | .
132 . | C-6 2 21 | C-2 3 29 | . | A-5 5 20 | .
133 . | . | . | . | C-6 5 15 | .
134}
135pattern 3 rows=16 {
136 C-2 1 31 | . | E-1 3 32 | E-3 4 27 S50 | B-4 5 20 | E-4 7 20
137 . | . | . | . | . | .
138 . | C-6 2 11 | . | . | G-5 5 17 | .
139 . | . | . | . | . | .
140 . | . | B-1 3 25 | . | E-5 5 15 | .
141 . | C-6 2 13 | . | . | . | .
142 . | . | . | . | B-5 5 17 | .
143 . | . | . | . | . | .
144 C-2 1 29 | . | G-1 3 33 | G-3 4 27 S35 | D-5 5 19 | .
145 . | . | . | . | . | .
146 . | C-6 2 11 | . | . | B-4 5 16 | .
147 . | . | . | . | . | .
148 . | . | D-2 3 25 | . | G-5 5 16 | .
149 . | C-6 2 13 | . | . | . | .
150 . | . | . | . | D-5 5 14 | .
151 . | . | . | . | . | .
152}
154uniform spin swell hue pulse glint bloomAmt breathAmp phase fold
155frame {
156 phase = lbeat / llen
157 pulse = exp(-trig(0) * 5)
158 glint = exp(-trig(4) * 3.8)
159 breathAmp = 0.5 + 0.5 * sin(beat * 0.25 * pi - 0.5)
160 bloomAmt = smooth(0.14, 0.43, phase) * (1 - smooth(0.76, 1.0, phase))
161 swell = 0.75 + 0.23 * breathAmp + 0.07 * pulse
162 spin = beat * 0.028 + 0.18 * sin(beat * 0.06)
163 hue = beat * 0.006 + glint * 0.018
164 fold = 6 + floor(bloomAmt * 4)
165}
167pixel {
168 # Fold a slowly warped plane into the radial structure of mushroom gills.
169 warp = fbm(u * 1.7 + beat * 0.012, v * 1.7 - beat * 0.009, 3)
170 wx = u + 0.13 * (warp - 0.5) * (0.4 + bloomAmt)
171 wy = v + 0.10 * sin(u * 5 + beat * 0.045) * (warp - 0.25)
172 radius = polar(wx, wy)
173 angle = r1 + spin + 0.18 * sin(radius * 7 - beat * 0.09)
174 sector = tau / fold
175 mirrored = abs(fract(angle / sector + 0.5) - 0.5) * sector
176 p = radius * swell
177 gx = cos(mirrored) * p
178 gy = sin(mirrored) * p
180 # Branching filaments and cap ribs, with concentric waves from the heart.
181 branch = kali(gx * 0.85, gy * 0.85, 0.76, 0.79, 6)
182 orbit = r1
183 vein = exp(-branch * 17)
184 ribs = exp(-abs(sin(mirrored * fold * 3 + p * 9 - beat * 0.065)) * (4 + 3 * p))
185 rings = exp(-abs(sin(p * 20 - beat * 0.31)) * 7)
186 cap = 1 - smooth(0.57, 0.85, p)
187 centre = exp(-p * 6)
188 edge = exp(-abs(p - (0.53 + 0.025 * sin(mirrored * fold * 3 + beat * 0.08))) * 22)
190 # Fine drifting spores sit above the gills in their own cellular field.
191 cell = vor(wx * 8 + beat * 0.018, wy * 8 - beat * 0.014)
192 cellid = r1
193 sporesGlow = exp(-cell * 24) * (0.24 + 0.55 * glint)
194 mist = fbm(wx * 3.3 - beat * 0.014, wy * 3.3 + beat * 0.011, 3)
196 tone = orbit * 0.32 + p * 0.29 + hue + mist * 0.12
197 pal(night, tone)
198 mixpal(bloom, tone + 0.10, bloomAmt * 0.82)
199 light = 0.10 + cap * (vein * 0.90 + ribs * 0.48 + rings * 0.18 + edge * 0.72)
200 light = light + sporesGlow * (0.35 + 0.65 * bloomAmt) + centre * (0.18 + pulse * 0.40)
201 cmul(light * (1.15 + 0.55 * breathAmp))
202 cadd(edge * (0.07 + bloomAmt * 0.15), sporesGlow * 0.07, vein * glint * 0.10)
204 # Persistent colour smears outward, like an afterimage breathing with the beat.
205 sx = 0.5 + (x - 0.5) * (0.987 + pulse * 0.014)
206 sy = 0.5 + (y - 0.5) * (0.987 + pulse * 0.014)
207 cprev(sx, sy, 0.30 + bloomAmt * 0.14)
208 cmul(1 - 0.22 * radius * radius)
209}
Click a line number to link to that line.