ACID
acid.dmt · 140 BPM · 30 s · 960×600
acidfeedbackfractal
notes
A 303 line over a breathing Mandelbrot with feedback trails.
| music | 303 line (svf + tone portamento + accents), claps, stabs |
|---|---|
| visual | Mandelbrot seahorse valley breathing in and out, feedback trails |
| file | acid.dmt |
|---|---|
| duration | 0:30 |
| video | 960×600 · 30 fps · h264 + audio · 26 MB |
| song | 140 BPM · speed 6 · rpb 4 · 4 channels |
| loop | 0 |
| render | scale 1 · master 0.52 |
| uniforms | zoom cx cy kickE acidE hue ang |
| collection | Demos |
| tags | acidfeedbackfractal |
| source | 140 lines · 5 KB · download |
anatomy
8VM programs
3patterns
1palettes
0timeline events
0text / sample / texture
140source lines
5inst
0chan
1master
1frame
1pixel
0post
0fn
line composition
pattern 43%inst 21%pixel 13%frame 9%palette 7%master 4%title 1%song 1%order 1%uniform 1%
play order
00110212
order list · 8 entries
palettes
acid7 keys · lines 11–19
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 A 303 line over a breathing Mandelbrot with feedback trails.
2# @tags acid, fractal, feedback
3# @collection Demos
4# @music 303 line (svf + tone portamento + accents), claps, stabs
5# @visual Mandelbrot seahorse valley breathing in and out, feedback trails
6# acid.dmt - 303 line over a breathing Mandelbrot with feedback trails
7title ACID
8song bpm=140 speed=6 rpb=4 channels=4 loop=0 volume=0.52
9order 0 0 1 1 0 2 1 2
11palette acid {
12 0.00 0.00 0.00 0.00
13 0.25 0.05 0.25 0.05
14 0.45 0.20 1.00 0.10
15 0.60 0.95 1.00 0.20
16 0.75 1.00 0.20 0.80
17 0.90 0.20 0.00 0.30
18 1.00 0.00 0.00 0.00
19}
21inst kick {
22 f = 50 + 600 * exp(-t * 42)
23 $p = $p + f / sr
24 out(dist(sin($p * tau) * exp(-t * 7) * 2.5, 1.6) * 0.8)
25}
26inst acid {
27 e = env(0.002, 0.22, 0.0, 0.03)
28 acc = step(0.55, vel) # accented notes open the filter more
29 cut = 120 + (1200 + 4000 * p0) * e * (0.55 + 0.6 * acc)
30 s = svf(saw(ph) + sqr(ph, 0.5) * 0.3, cut, 0.86)
31 out(dist(s * (1.2 + e * acc), 1.8) * 0.42)
32}
33inst hat {
34 n = hp(noise(), 9000)
35 out(n * exp(-t * (35 + 60 * (1 - vel))) * 0.3)
36}
37inst clap {
38 b = exp(-t * 60) + exp(-(t - 0.012) * 60) * step(0.012, t) + exp(-(t - 0.024) * 60) * step(0.024, t)
39 n = svf(noise(), 1800, 0.5)
40 out((r2 * 2.5 * b * 0.5 + n * exp(-t * 10) * 0.6) * 0.5)
41}
42inst stab {
43 e = env(0.002, 0.12, 0.0, 0.04)
44 s = saw(ph) + saw(ph * 1.5 + 0.1) * 0.6 + saw(ph * 2 + 0.3) * 0.4
45 s = svf(s, 600 + 2500 * e, 0.4)
46 out(s * e * 0.3)
47}
49master {
50 d = dly(l * 0.5 + r * 0.5, 0.3214, 0.45)
51 d = hp(d, 300)
52 out(dist(l + d * 0.3, 1.3), dist(r + d * 0.3, 1.3))
53}
55# channels: 0 kick 1 acid 2 hats/clap 3 stab
56pattern 0 rows=16 {
57 C-2 1 40 | C-2 2 40 S20 | C-6 3 10 |
58 . | . | . |
59 . | C-2 . 28 | C-6 3 20 |
60 . | . | . |
61 C-2 1 40 | C-3 . . 320 | D-5 4 30 |
62 . | . | . |
63 . | C-2 2 28 | C-6 3 20 |
64 . | D#2 2 40 | . |
65 C-2 1 40 | . | C-6 3 10 |
66 . | C-2 2 28 | . |
67 . | . | C-6 3 20 |
68 . | G-2 2 40 S60 | . |
69 C-2 1 40 | C-2 . . 320 | D-5 4 30 |
70 . | . | . |
71 . | C-2 2 28 | C-6 3 20 |
72 . | A#1 2 36 | C-6 3 14 |
73}
74pattern 1 rows=16 {
75 C-2 1 40 | C-2 2 40 S80 | C-6 3 10 | C-4 5 24
76 . | C-2 2 28 | . | .
77 . | . | C-6 3 20 | .
78 . | C-3 2 40 | . | .
79 C-2 1 40 | C-2 . . 318 | D-5 4 30 | .
80 . | . | . | .
81 . | D#2 2 28 | C-6 3 20 | D#4 5 24
82 . | . | . | .
83 C-2 1 40 | C-2 2 40 | C-6 3 10 | .
84 . | . | . | .
85 . | F-2 2 28 | C-6 3 20 | F-4 5 24
86 . | G-2 . . 310 | . | .
87 C-2 1 40 | . | D-5 4 30 | .
88 . | C-2 2 28 | . | .
89 . | . | C-6 3 20 | .
90 . | G-1 2 40 SB0 | C-6 3 14 | G-3 5 20
91}
92pattern 2 rows=16 {
93 C-2 1 40 | C-2 2 40 SFF | C-6 3 10 | C-4 5 24
94 . | . | C-6 3 10 | .
95 C-2 1 30 | C-3 2 28 | C-6 3 20 | .
96 . | . | C-6 3 10 | .
97 C-2 1 40 | C-4 . . 330 | D-5 4 30 | .
98 . | . | C-6 3 10 | .
99 . | A#2 2 28 | C-6 3 20 | A#3 5 24
100 C-2 1 30 | . | C-6 3 10 | .
101 C-2 1 40 | C-2 2 40 | C-6 3 10 | .
102 . | . | C-6 3 10 | .
103 . | G-2 2 28 | C-6 3 20 | G-3 5 24
104 . | . | C-6 3 10 | .
105 C-2 1 40 | C-2 . . 330 | D-5 4 30 | .
106 . | . | D-5 4 20 | .
107 C-2 1 30 | D#2 2 28 | C-6 3 20 | .
108 C-2 1 40 | C-2 2 40 S00 | D-5 4 36 | C-4 5 20
109}
111uniform zoom cx cy kickE acidE hue ang
113frame {
114 kickE = exp(-trig(0) * 9)
115 acidE = exp(-trig(1) * 6) * (0.4 + 0.6 * vel(1))
116 # breathe in and out of the seahorse valley over the loop
117 ph = lbeat / llen
118 zoom = 2.2 + 1.8 * (0.5 - 0.5 * cos(ph * tau)) ^ 2 * 9 + kickE * 0.35
119 cx = -0.745 + 0.01 * sin(beat * 0.17)
120 cy = 0.186 + 0.008 * cos(beat * 0.13)
121 hue = beat * 0.012 + acidE * 0.1
122 ang = sin(beat * 0.05) * 0.4
123}
124pixel {
125 px = rot(u, v, ang)
126 py = r1
127 zx = cx + px / zoom
128 zy = cy + py / zoom
129 it = julia(0, 0, zx, zy, 96) # julia(0,0,c) == mandelbrot at c
130 trap = r1
131 k = log(1 + it) / log(97)
132 inside = step(96, it)
133 pal(acid, k * 3 + hue)
134 cmul((0.1 + 1.4 * k * k) * (1 - inside) + inside * (0.02 + 0.3 * kickE * exp(-trap * 3)))
135 # acid line lights the orbit traps
136 g = exp(-trap * 8) * acidE * (1 - inside)
137 cadd(g * 0.3, g * 1.0, g * 0.2)
138 # feedback trails: pull the previous frame in toward the centre
139 cprev(0.5 + (x - 0.5) * 0.985, 0.5 + (y - 0.5) * 0.985, 0.45 + 0.25 * kickE)
140}
Click a line number to link to that line.
ANJUNA →