dmscene Demos & source

NEWTON

newton.dmt · 90 BPM · 30 s · 960×600

ambientfractal

notes

Slow ambient over the three basins of a Newton fractal.

musicambient: evolving pad, FM bells, sub, filtered air
visualNewton fractal for z³-1, three shaded basins, slow drift
filenewton.dmt
duration0:30
video960×600 · 30 fps · h264 + audio · 7.6 MB
song90 BPM · speed 6 · rpb 4 · 4 channels
loop0
renderscale 1 · master 0.72
uniformsang zoom bellE hue cx cy
collectionDemos
tagsambientfractal
source128 lines · 4 KB · download

anatomy

7VM programs
3patterns
1palettes
0timeline events
0text / sample / texture
128source lines
4inst
0chan
1master
1frame
1pixel
0post
0fn

line composition

pattern 47%inst 18%pixel 13%frame 7%palette 7%master 4%title 1%song 1%order 1%uniform 1%

play order

0121

order list · 4 entries

palettes

basin6 keys · lines 11–18

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

download .dmt
1# @description Slow ambient over the three basins of a Newton fractal.
2# @tags ambient, fractal
3# @collection Demos
4# @music ambient: evolving pad, FM bells, sub, filtered air
5# @visual Newton fractal for z³-1, three shaded basins, slow drift
6# newton.dmt - slow ambient over a Newton fractal's three basins
7title NEWTON
8song bpm=90 speed=6 rpb=4 channels=4 loop=0 volume=0.72
9order 0 1 2 1
11palette basin {
12 0.00 0.95 0.35 0.10
13 0.33 0.95 0.35 0.10
14 0.34 0.10 0.70 0.95
15 0.66 0.10 0.70 0.95
16 0.67 0.80 0.95 0.30
17 1.00 0.80 0.95 0.30
20inst pad {
21 e = env(0.8, 1.0, 0.8, 1.5)
22 a = sin(ph * tau + 0.9 * sin(ph * tau * 0.5 + t * 0.3))
23 b = saw(ph + 0.0018 * t) * 0.4 + saw(ph - 0.0014 * t) * 0.4 + tri(ph * 2.002) * 0.3
24 s = svf(a + b, 300 + 600 * e + 200 * sin(t * 0.9), 0.2)
25 out(s * e * 0.3)
27inst bell {
28 e = exp(-t * 1.8)
29 m = sin(ph * tau * 3.5) * 1.8 * exp(-t * 3)
30 s = sin(ph * tau + m) + sin(ph * tau * 2 + m * 0.5) * 0.3
31 out(s * e * 0.28)
33inst sub {
34 e = env(0.05, 0.4, 0.7, 0.8)
35 out(sin(ph * tau) * e * 0.6 + sin(ph * tau * 2) * e * 0.1)
37inst air {
38 e = env(1.5, 1.0, 0.6, 2.0)
39 out(svf(noise(), 1500 + 1000 * sin(t * 0.5), 0.9) * e * 0.08)
42master {
43 dl = dly(l, 0.6667, 0.55)
44 dr = dly(r, 0.5, 0.55)
45 out(dist(l + dr * 0.45, 1.1), dist(r + dl * 0.45, 1.1))
48# channels: 0 pad 1 bell 2 sub 3 air
49pattern 0 rows=16 {
50 A-3 1 30 | . | A-1 3 40 | A-4 4 30
51 . | . | . | .
52 . | E-5 2 26 | . | .
53 . | . | . | .
54 . | . | . | .
55 . | A-5 2 20 | . | .
56 . | . | . | .
57 . | . | . | .
58 E-3 1 30 | . | . | .
59 . | B-5 2 22 | . | .
60 . | . | . | .
61 . | . | E-1 3 . | .
62 . | . | . | .
63 . | G#5 2 18 | . | .
64 . | . | . | .
65 . | . | . | .
67pattern 1 rows=16 {
68 F-3 1 30 | . | F-1 3 40 | .
69 . | . | . | .
70 . | C-6 2 26 | . | .
71 . | . | . | .
72 . | . | . | .
73 . | A-5 2 20 | . | .
74 . | F-5 2 16 | . | .
75 . | . | . | .
76 G-3 1 30 | . | . | .
77 . | D-6 2 22 | . | .
78 . | . | . | .
79 . | . | G-1 3 . | .
80 . | B-5 2 18 | . | .
81 . | . | . | .
82 . | G-5 2 14 | . | .
83 . | . | . | .
85pattern 2 rows=16 {
86 D-3 1 30 | . | D-1 3 40 | D-4 4 30
87 . | . | . | .
88 . | A-5 2 26 | . | .
89 . | . | . | .
90 . | F-5 2 18 | . | .
91 . | . | . | .
92 . | . | . | .
93 . | D-6 2 22 | . | .
94 E-3 1 30 | . | . | .
95 . | . | . | .
96 . | B-5 2 22 | E-1 3 . | .
97 . | . | . | .
98 . | . | . | .
99 . | G#5 2 18 | . | .
100 . | E-5 2 14 | . | .
101 . | . | . | .
104uniform ang zoom bellE hue cx cy
106frame {
107 bellE = exp(-trig(1) * 3)
108 ang = beat * 0.02 + sin(beat * 0.05) * 0.3
109 zoom = 1.6 + 0.6 * sin(beat * 0.03) + bellE * 0.05
110 hue = beat * 0.004
111 cx = 0.3 * sin(beat * 0.021)
112 cy = 0.3 * cos(beat * 0.017)
114pixel {
115 px = rot(u, v, ang) * zoom + cx
116 py = r1 * zoom + cy
117 root = newton(px, py, 40)
118 it = r1
119 d = r2
120 shade = exp(-it * 0.12)
121 pal(basin, root / 3 + 0.05 + hue)
122 edge = 1 - exp(-d * 6)
123 cmul(0.2 + 0.8 * shade)
124 cmul(0.6 + 0.4 * sin(it * 0.8 + beat) ^ 2)
125 g = exp(-it * 0.35) * bellE
126 cadd(g * 0.6, g * 0.6, g * 0.6)
127 cprev(x, y, 0.55)

Click a line number to link to that line.