You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dd66f47
Browse filesBrowse the repository at this point in the historyBrowse files
dnb: seeded song forms, clip automation and a DAW-style arrangement strip
Every track draws its own form from the seed: how it reaches the first
drop, what joins one drop to the next, how long each section runs (in
whole phrases) and how each build winds up (snare roll, kick roll, filter
build, or drums gone under the riser). Styles weight the choices, and the
same seed gives each style different forms.
Blocks carry automation: a level fade and a low-pass or high-pass sweep,
played per voice by the Synth. A filter lane sweeps the whole mix. The
shared producer pass staggers entries, pulls parts out before a phrase
lands, teases the bass under builds and sheds parts through the outro.
The strip merges lanes into tracks, shades its clips, draws their
envelopes and drops the section ruler; rows are 25% taller.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/dnb/README.md
+36-9Lines changed: 36 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,12 @@ mix between, each new intro mixed under the outgoing tune.
20
20
The visualizer fills the window, running under the Liquid Glass toolbar;
21
21
the now-playing cards, the arrangement strip and the Groove, Sound and Mix
22
22
sliders float over it in glass. Each track is arranged before it plays, like
23
-
the arrange window of Cubase or MTV Music Generator: a ruler of sections and
24
-
one lane of blocks per part. The strip scrolls those blocks right to left
25
-
past a fixed playhead, brightens the ones playing and shows the next section
26
-
change coming. The style decides which parts its songs play; the listener shapes
23
+
the arrange window of Cubase or MTV Music Generator: sections, and one lane
24
+
of blocks per part. The strip draws them as an arrange window
25
+
does, one track per instrument (Snare holds the ghosts, Hats the ride, Bass
26
+
the sub and the reese) with softly shaded clips that show the fade or filter
27
+
sweep riding them. It scrolls right to left past a fixed playhead, lights
28
+
the clips that sound and shows the next section change coming. The style decides which parts its songs play; the listener shapes
27
29
them with the sliders, and the Mix faders (Drums, Bass, Chords, Melody)
28
30
scale the style's own balance. The Style menu switches genre on the next bar
29
31
line. The Scene menu pins one visualizer scene
@@ -55,13 +57,35 @@ The host's [`Composer`](host/Composer.lua) builds each track's
55
57
bar n from the blocks under it. Energy and Complexity shape the patterns bar
56
58
by bar. Blocks are plain data, never overlap in a lane, and point at
57
59
patterns by id; structure moves (fills, risers, half-time, throws, chops)
58
-
are lanes too, so tests read the plan instead of rendering audio. The kit
60
+
are lanes too, so tests read the plan instead of rendering audio. A block
61
+
may carry automation, as a clip does: `level` fades it and `filter` sweeps
62
+
a low-pass or a high-pass over it. The composer marks every note with its
63
+
block's automation where the note starts, and the Synth plays each voice
64
+
through it. A style arranges section by section and ends with
65
+
`kit.produce(lanes, track)`, the producer's moves drawn from the track's
66
+
seed: parts join a phrase or two late and leave early, the bar before a
67
+
phrase lands pulls the kick and bass or the drums out, the drums open
68
+
through the intro, the tops thin through a build while the reese is teased
69
+
under it, and the outro sheds parts for the next track to mix over. The
70
+
`filter` lane sweeps the whole mix, the way an effect machine has patterns
71
+
of its own in Jeskola Buzz's sequence.
72
+
73
+
No two tracks take the same road. Each draws its form from the seed: how it
74
+
reaches the first drop (a build, straight out of the intro, or by way of a
75
+
melodic passage), what joins one drop to the next (a breakdown and a build,
76
+
a build alone, a breakdown the drop slams out of, or nothing: a double
77
+
drop), and how long each section runs, in whole eight-bar phrases so that
78
+
tracks still line up in the mix. A build winds up in one of four ways: a
79
+
snare roll, a kick roll, the drop's groove opening through a filter, or the
80
+
drums gone under the riser. A style weights these in its set's `form`
81
+
(Trance always breaks down and builds; Techno prefers cold opens and kick
82
+
rolls), and the same seed gives each style different forms. The kit
59
83
([`host/StyleKit.lua`](host/StyleKit.lua)) is the shared functionality:
60
84
seeded randomness, modes, voice-led chords, a drum kit for every track
61
85
(a snare character from the flavour's `snares` — tight, fat, rimshot,
62
86
roomy, crunchy, layered with a clap, vintage — and a retuned kick, hats and
63
87
clap), a call-and-response melody writer, the DJ set that sequences tracks and sections, the bar score with
64
-
humanized hits, the lane builder, the shared punctuation (crashes, risers,
88
+
humanized hits, the lane builder (`add`, `cut`, `automate`), the shared punctuation (crashes, risers,
65
89
build rolls, throws), the blend into a new track, and the Amen break. Adding a genre is one folder and
66
90
one line in [`host/Styles.lua`](host/Styles.lua).
67
91
@@ -91,15 +115,15 @@ stage rather than the window, and the picture continues behind the panels.
91
115
92
116
| File | Role |
93
117
|---|---|
94
-
|`Model.lua`| Lanes by family (the timeline's rows and order), controls (the single source for the sliders), the current style's ranges and which lanes sound |
118
+
|`Model.lua`| Lanes by family, the timeline's tracks and the parts each gathers, controls (the single source for the sliders), the current style's ranges and which lanes sound |
95
119
|`Controller.lua`| Window, transport, Style and Scene menus, the mini player, and the 60 Hz display loop |
96
120
|`host/Styles.lua`, `host/StyleKit.lua`| The style extension point and its host API, with the lane builder and the shared patterns |
97
121
|`host/Arrangement.lua`, `host/Composer.lua`| A track's plan of sections and lanes, checked and searchable; the composer every style shares, which arranges tracks and renders bars from their blocks |
98
122
|`host/Visualizers.lua`| The visualizer extension point, the program it links and the draws that show a scene on a layer |
|`plugins/visualizers/*`| Synthwave Horizon, Valley Flight, Solar System, Liquid Chrome, Light Trails, Tunnel, Crystals |
101
-
|`models/Timeline.lua`, `views/Timeline.etlua`, `shaders/Timeline.metal`| The arrangement strip: rows, instanced block data and the headline; lane names; blocks scrolling past the playhead |
102
-
|`models/Synth.lua`| Sample-accurate synthesis: kicks, snares, claps and hats designed per style and voiced anew for every track, shared cymbals and percussion, the Amen loop and its slice sampler, reese/acid/wobble bass with resonance, filter envelope, accents and retriggered LFO, sub, pads, FM electric piano, stabs, arp plucks, a gliding lead, risers, ping-pong delay with throws, reverb, sidechain pump, soft clip |
125
+
|`models/Timeline.lua`, `views/Timeline.etlua`, `shaders/Timeline.metal`| The arrangement strip: tracks, instanced clips and the headline; track names; clips scrolling past the playhead |
126
+
|`models/Synth.lua`| Sample-accurate synthesis: kicks, snares, claps and hats designed per style and voiced anew for every track, shared cymbals and percussion, the Amen loop and its slice sampler, reese/acid/wobble bass with resonance, filter envelope, accents and retriggered LFO, sub, pads, FM electric piano, stabs, arp plucks, a gliding lead, risers, per-voice fades and filter sweeps from the arrangement, ping-pong delay with throws, reverb, sidechain pump, soft clip |
103
127
|`models/Amen.lua`| The recreated Amen break's four-bar pattern and slice bookkeeping |
104
128
|`models/Visuals.lua`| Spectrum smoothing, peak holds, kick and snare flashes, the scene director with crossfades, and the shader value layout |
105
129
|`services/AudioOutput.lua`| Speaker output through [AudioStream](../../src/plugins/audio/README.md)|
@@ -118,6 +142,9 @@ synthesis costs about a fifth of one core at its busiest.
118
142
119
143
Tests: `tests/dnb.test.lua` (the drum & bass set, composition, synthesis,
120
144
visuals, the controller with a fake output, the native plugin),
145
+
`tests/dnb_arrangement.test.lua` (clip automation, cuts and rides, the
146
+
producer's moves in every style, forms and build kinds, filtered voices,
147
+
the whole-mix sweep, timeline clips),
121
148
`tests/dnb_plugins.test.lua` (the contract every style plugin keeps, style
122
149
switching, scene pinning, the mini player), `tests/plugins.test.lua` (the
0 commit comments