FEEDBACK
feedback.dmt · 75 BPM · 30 s · 960×600
feedbackfractal
notes
Dub at 75 BPM: a tiny Julia seed smeared through a rotating zoom feedback loop.
| music | dub: 808 kick, rim, skank chords, long filtered delays |
|---|---|
| visual | tiny Julia seed smeared through a rotating zoom feedback loop |
| file | feedback.dmt |
|---|---|
| duration | 0:30 |
| video | 960×600 · 30 fps · h264 + audio · 4.9 MB |
| song | 75 BPM · speed 6 · rpb 4 · 5 channels |
| loop | 0 |
| render | scale 1 · master 0.48 |
| uniforms | cx cy kickE rimE sk hue seedR |
| collection | Demos |
| tags | feedbackfractal |
| source | 143 lines · 5 KB · download |
anatomy
8VM programs
3patterns
1palettes
0timeline events
0text / sample / texture
143source lines
5inst
0chan
1master
1frame
1pixel
0post
0fn
line composition
pattern 42%inst 18%pixel 18%frame 8%master 5%palette 5%title 1%song 1%order 1%uniform 1%
play order
0102
order list · 4 entries
palettes
dub5 keys · lines 11–17
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 Dub at 75 BPM: a tiny Julia seed smeared through a rotating zoom feedback loop.
2# @tags fractal, feedback
3# @collection Demos
4# @music dub: 808 kick, rim, skank chords, long filtered delays
5# @visual tiny Julia seed smeared through a rotating zoom feedback loop
6# feedback.dmt - dub at 75 bpm; a tiny julia seed smeared through a rotating zoom feedback loop
7title FEEDBACK
8song bpm=75 speed=6 rpb=4 channels=5 loop=0 volume=0.48
9order 0 1 0 2
11palette dub {
12 0.00 0.00 0.00 0.00
13 0.30 0.00 0.20 0.30
14 0.55 0.90 0.60 0.00
15 0.75 1.00 0.10 0.10
16 1.00 0.00 0.00 0.00
17}
19inst kick808 {
20 f = 42 + 300 * exp(-t * 25)
21 $p = $p + f / sr
22 out(dist(sin($p * tau) * exp(-t * 2.5) * 2, 1.3) * 0.85)
23}
24inst rim {
25 out((sin(tau * 1700 * t) * exp(-t * 90) + hp(noise(), 3000) * exp(-t * 150)) * 0.5)
26}
27inst skank {
28 e = env(0.002, 0.09, 0.0, 0.05)
29 s = sqr(ph, 0.5) + sqr(ph * 1.26, 0.5) + sqr(ph * 1.5, 0.5)
30 s = svf(s, 600 + 2000 * e, 0.3)
31 out(s * e * 0.14)
32}
33inst sub {
34 e = env(0.02, 0.3, 0.8, 0.4)
35 out(sin(ph * tau) * e * 0.7)
36}
37inst melodica {
38 e = env(0.05, 0.3, 0.6, 0.3)
39 s = saw(ph) * 0.5 + sqr(ph, 0.3) * 0.5
40 s = svf(s, 900 + 500 * sin(t * 5), 0.4)
41 out(s * e * 0.22)
42}
44master {
45 dl = dly(l, 0.6, 0.6)
46 dr = dly(r, 0.4, 0.6)
47 dl = svf(dl, 1800, 0.3)
48 dr = svf(dr, 1400, 0.3)
49 out(dist(l + dr * 0.5, 1.1), dist(r + dl * 0.5, 1.1))
50}
52# channels: 0 kick 1 rim 2 skank 3 sub 4 melodica
53pattern 0 rows=16 {
54 C-2 1 40 | . | . | A-1 4 40 | .
55 . | . | . | . | .
56 . | . | A-3 3 30 | . | .
57 . | . | . | . | .
58 . | D-5 2 36 | . | . | .
59 . | . | . | . | .
60 . | . | A-3 3 30 | . | .
61 . | . | . | . | .
62 C-2 1 40 | . | . | . | .
63 . | . | . | . | .
64 C-2 1 30 | . | A-3 3 30 | . | .
65 . | . | . | . | .
66 . | D-5 2 36 | . | G-1 4 . | .
67 . | . | . | . | .
68 . | . | A-3 3 30 | . | .
69 . | . | . | . | .
70}
71pattern 1 rows=16 {
72 C-2 1 40 | . | . | F-1 4 40 | A-4 5 30
73 . | . | . | . | .
74 . | . | F-3 3 30 | . | .
75 . | . | . | . | .
76 . | D-5 2 36 | . | . | C-5 5 28
77 . | . | . | . | .
78 . | . | F-3 3 30 | . | .
79 . | . | . | . | .
80 C-2 1 40 | . | . | . | E-5 5 30
81 . | . | . | . | .
82 . | . | G-3 3 30 | G-1 4 . | .
83 . | . | . | . | .
84 . | D-5 2 36 | . | . | D-5 5 26
85 . | D-5 2 20 | . | . | .
86 . | . | G-3 3 30 | . | .
87 . | D-5 2 28 | . | . | B-4 5 20
88}
89pattern 2 rows=16 {
90 C-2 1 40 | . | . | A-1 4 40 | C-5 5 30
91 . | . | . | . | .
92 . | . | A-3 3 30 | . | .
93 . | . | . | . | .
94 . | D-5 2 36 | . | . | A-4 5 28
95 . | . | . | . | .
96 . | . | A-3 3 30 | . | .
97 . | . | . | . | .
98 C-2 1 40 | . | . | . | .
99 . | . | . | . | .
100 . | . | E-3 3 30 | E-1 4 . | G-4 5 26
101 . | . | . | . | .
102 . | D-5 2 36 | . | . | .
103 . | . | . | . | .
104 . | . | E-3 3 30 | . | E-4 5 24
105 . | D-5 2 36 | . | . | .
106}
108uniform cx cy kickE rimE sk hue seedR
110frame {
111 kickE = exp(-trig(0) * 4)
112 rimE = exp(-trig(1) * 10)
113 sk = exp(-trig(2) * 12)
114 a = beat * 0.08 * tau
115 cx = 0.7885 * cos(a)
116 cy = 0.7885 * sin(a)
117 hue = beat * 0.02
118 seedR = 0.22 + 0.06 * kickE
119}
120pixel {
121 # feedback: sample the previous frame rotated and zoomed around the centre
122 ang = 0.04 + 0.03 * sk
123 zm = 1.035 + 0.02 * kickE
124 fx = rot((x - 0.5) * aspect, y - 0.5, ang)
125 fy = r1
126 sx = 0.5 + fx / zm / aspect
127 sy = 0.5 + fy / zm
128 pr = prev(sx, sy)
129 pg = r1
130 pb = r2
131 # slow hue rotation of the trail: rotate rgb components a little
132 rgb(pr * 0.962 + pb * 0.012, pg * 0.958 + pr * 0.012, pb * 0.96 + pg * 0.012)
133 # seed: small julia in a disc near the centre
134 rr = len(u, v)
135 disc = 1 - smooth(seedR * 0.8, seedR, rr)
136 zx = u / seedR * 1.5
137 zy = v / seedR * 1.5
138 it = julia(zx, zy, cx, cy, 40)
139 k = it / 40
140 trap = r1
141 bright = (0.3 + 1.6 * k * k) * (1 - step(1, k)) + exp(-trap * 8) * rimE * 1.5
142 mixpal(dub, k * 1.5 + hue, disc * bright)
143}
Click a line number to link to that line.