dmscene Demos & source

TUNNEL

tunnel.dmt · 138 BPM · 30 s · 960×600

trance

notes

A trance gate down an infinite textured tunnel.

musictrance: gated supersaw, offbeat bass, claps
visualperspective tunnel with voronoi wall tiles and kick rings
filetunnel.dmt
duration0:30
video960×600 · 30 fps · h264 + audio · 20 MB
song138 BPM · speed 6 · rpb 4 · 5 channels
loop0
renderscale 1 · master 0.55
uniformsdepth spin kickE clapE hue wob
collectionDemos
tagstrance
source140 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 20%pixel 19%frame 6%palette 6%master 3%title 1%song 1%order 1%uniform 1%

play order

00110012

order list · 8 entries

palettes

neon6 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 A trance gate down an infinite textured tunnel.
2# @tags trance
3# @collection Demos
4# @music trance: gated supersaw, offbeat bass, claps
5# @visual perspective tunnel with voronoi wall tiles and kick rings
6# tunnel.dmt - trance gate down an infinite textured tunnel
7title TUNNEL
8song bpm=138 speed=6 rpb=4 channels=5 loop=0 volume=0.55
9order 0 0 1 1 0 0 1 2
11palette neon {
12 0.00 0.00 0.00 0.05
13 0.25 0.10 0.00 0.40
14 0.50 0.90 0.00 0.60
15 0.70 0.00 0.80 1.00
16 0.85 1.00 1.00 1.00
17 1.00 0.00 0.00 0.05
20inst kick {
21 f = 52 + 650 * exp(-t * 45)
22 $p = $p + f / sr
23 out(dist(sin($p * tau) * exp(-t * 8) * 2.4, 1.6) * 0.85)
25inst bass {
26 e = env(0.002, 0.14, 0.0, 0.03)
27 s = saw(ph) + sqr(ph * 0.5, 0.5) * 0.5
28 s = svf(s, 200 + 1800 * e, 0.3)
29 out(s * e * 0.55)
31inst super {
32 e = env(0.01, 0.1, 0.9, 0.08)
33 g = 0.5 + 0.5 * sqr(t * 9.2, 0.6) # 16th gate at 138 bpm
34 s = saw(ph) + saw(ph + 0.0031 * t) + saw(ph - 0.0027 * t) + saw(ph * 2 + 0.0051 * t) * 0.5 + saw(ph * 0.5) * 0.4
35 s = svf(s, 500 + 4500 * p0 + 1500 * e, 0.25)
36 out(s * e * g * 0.18)
38inst hat {
39 out(hp(noise(), 8500) * exp(-t * (40 + 80 * (1 - vel))) * 0.25)
41inst clap {
42 b = exp(-t * 70) + exp(-(t - 0.011) * 70) * step(0.011, t) + exp(-(t - 0.022) * 70) * step(0.022, t) + exp(-(t - 0.033) * 18) * step(0.033, t) * 0.8
43 out(svf(noise(), 1600, 0.6) * 1.5 * b * 0.45)
46master {
47 d = dly(l * 0.5 + r * 0.5, 0.3261, 0.4)
48 out(dist(l + d * 0.25, 1.2), dist(r + d * 0.25, 1.2))
51# channels: 0 kick 1 bass 2 supersaw 3 hats 4 clap
52pattern 0 rows=16 {
53 C-2 1 40 | . | A-3 3 30 S20 | . | .
54 . | . | . | . | .
55 . | A-1 2 40 | . | C-6 4 28 | .
56 . | . | . | . | .
57 C-2 1 40 | . | . | . | D-5 5 30
58 . | . | . | . | .
59 . | A-1 2 40 | . | C-6 4 28 | .
60 . | . | . | . | .
61 C-2 1 40 | . | . | . | .
62 . | . | . | . | .
63 . | A-1 2 40 | . | C-6 4 28 | .
64 . | . | . | . | .
65 C-2 1 40 | . | . | . | D-5 5 30
66 . | . | . | . | .
67 . | A-1 2 40 | . | C-6 4 28 | .
68 . | A-1 2 30 | . | C-6 4 16 | .
70pattern 1 rows=16 {
71 C-2 1 40 | . | F-3 3 30 S60 | . | .
72 . | . | . | . | .
73 . | F-1 2 40 | . | C-6 4 28 | .
74 . | . | . | . | .
75 C-2 1 40 | . | . | . | D-5 5 30
76 . | . | . | . | .
77 . | F-1 2 40 | . | C-6 4 28 | .
78 . | . | . | . | .
79 C-2 1 40 | . | G-3 3 30 | . | .
80 . | . | . | . | .
81 . | G-1 2 40 | . | C-6 4 28 | .
82 . | . | . | . | .
83 C-2 1 40 | . | . | . | D-5 5 30
84 . | . | . | . | .
85 . | G-1 2 40 | . | C-6 4 28 | .
86 . | G-1 2 30 | . | C-6 4 16 | D-5 5 20
88pattern 2 rows=16 {
89 C-2 1 40 | . | A-3 3 30 SC0 | . | .
90 . | . | . | . | .
91 . | A-1 2 40 | . | C-6 4 28 | .
92 . | . | . | . | .
93 C-2 1 40 | . | . | . | D-5 5 30
94 . | . | . | . | .
95 . | A-1 2 40 | . | C-6 4 28 | .
96 . | . | . | . | .
97 C-2 1 40 | . | E-4 3 30 SFF | . | D-5 5 20
98 . | . | . | . | D-5 5 24
99 . | A-1 2 40 | . | C-6 4 28 | D-5 5 28
100 . | . | . | . | D-5 5 32
101 C-2 1 40 | . | . | . | D-5 5 36
102 . | A-1 2 30 | . | . | D-5 5 38
103 C-2 1 40 | A-1 2 36 | . | C-6 4 28 | D-5 5 40
104 C-2 1 40 | A-1 2 40 | . | C-6 4 30 | D-5 5 40
107uniform depth spin kickE clapE hue wob
109frame {
110 kickE = exp(-trig(0) * 9)
111 clapE = exp(-trig(4) * 7)
112 depth = beat * 0.45
113 spin = beat * 0.04 + sin(beat * 0.11) * 0.6
114 hue = bar * 0.03
115 wob = 0.5 + 0.5 * sin(beat * 0.25 * pi)
117pixel {
118 # bend the tunnel axis with time
119 ox = 0.25 * sin(beat * 0.3)
120 oy = 0.2 * cos(beat * 0.23)
121 rr = polar(u - ox, v - oy)
122 a = r1
123 d = 0.4 / (rr + 0.03) + depth # perspective depth
124 aa = a / tau + spin
125 mx = abs(fract(aa * 3) * 2 - 1) # mirrored so the angle wrap has no seam
126 # texture: voronoi tiles on the tunnel wall, rings every depth unit, noise grime
127 c = vor(mx * 4, d * 2.5)
128 id = r1
129 tile = smooth(0.04, 0.3, c)
130 ring = exp(-abs(fract(d * 0.5) - 0.5) * 9)
131 f = fbm(mx * 5, d * 1.5, 3)
132 pal(neon, id * 0.6 + f * 0.3 + hue + d * 0.03)
133 pulse = 0.5 + 0.5 * sin(id * tau + beat * pi)
134 bright = 0.12 + 0.9 * tile * pulse + ring * kickE * 1.3 + 0.6 * tile * clapE
135 fog = smooth(0.02, 0.3, rr) * (0.35 + 0.65 * min(rr, 1))
136 cmul(bright * fog)
137 g = exp(-c * 8) * 0.25
138 cadd(g, g, g)
139 cprev(x, y, 0.2)

Click a line number to link to that line.

← TRIPHOP