From 3e3776a20d0dae4e4c796778e4c8cbf35bc220ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Wed, 25 Nov 2026 10:35:12 +0100 Subject: [PATCH] Add detailed READMEs for the collection and Exit Progressive Emulation Co-Authored-By: Claude Sonnet 5.5 --- README.md | 86 +++++++ exit-progressive-emulation/README.md | 360 +++++++++++++++++++++++++-- 2 files changed, 422 insertions(+), 24 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..dc4dd7e --- /dev/null +++ b/README.md @@ -0,0 +1,86 @@ +# tracks + +A collection of electronic music projects that are **generated from code** instead of being clicked together in a DAW. Each track lives in its own folder with a deterministic Python script, and the script produces files that open in [Bitwig Studio](https://www.bitwig.com/) (or any DAWproject / MIDI-capable DAW). + +Because everything is generated, a track is fully reproducible: the same script always writes the same notes, and arrangements can be changed by editing a few lines and re-running. + +## Tracks + +| Track | Style | Tempo / Key | Length | Details | +|---|---|---|---|---| +| **Exit Progressive Emulation** | Schranz / industrial techno | 150 BPM, F minor | 320 bars (8:32) | [exit-progressive-emulation/README.md](exit-progressive-emulation/README.md) | + +## Repository layout + +``` +tracks/ +├── README.md ← you are here +├── .gitignore ← ignores __pycache__/ +├── exit-progressive-emulation/ ← one folder per track +│ ├── README.md ← full track documentation +│ ├── build_track.py ← the generator (Python 3, stdlib only) +│ ├── exit-progressive-emulation.dawproject +│ └── midi/ ← per-track and full-arrangement MIDI +└── progressive-emulation/ ← empty folder with its own empty nested .git (not tracked here) +``` + +> `progressive-emulation/` is an empty sibling repository with no commits. It is deliberately **not** part of this repo's history; git would otherwise treat it as an embedded repository. + +## What each track folder contains + +| File | Purpose | +|---|---| +| `build_track.py` | Generator script. Defines the song structure, writes the notes, and exports every file below. | +| `*.dawproject` | Open [DAWproject](https://github.com/bitwig/dawproject) file. Import in Bitwig via **File → Import → DAWproject**. | +| `midi/full_arrangement.mid` | All tracks in a single type 1 MIDI file (tempo and time signature included). | +| `midi/NN_.mid` | One full-length MIDI file per instrument, for dragging into any DAW. | +| `README.md` | Structure, patterns, harmony, file formats and sound-design notes for that track. | + +## Requirements + +- **Python 3.12** (any recent Python 3 should work). The generators use only the standard library, so there is nothing to install. +- **Bitwig Studio** (or another DAW) to open the result. Bitwig is *not* needed to generate the files. +- Optional, for validation: `xmllint` (libxml2) and the official `Project.xsd` from [bitwig/dawproject](https://github.com/bitwig/dawproject). + +## Quick start + +```bash +cd exit-progressive-emulation +python3 build_track.py # writes the .dawproject and midi/ next to the script +python3 build_track.py --devices # same, with instrument-device hints on each track +``` + +Then open Bitwig and use **File → Import → DAWproject**, or drag the `.mid` files onto instrument tracks. + +## How the generators work + +All tracks follow the same recipe, so a new one can be started by copying an existing script: + +1. **Structure**: a list of sections (name, start bar, length) defines the arrangement. +2. **Harmony**: chord and bass-root tables for the key, plus short progressions chosen per section. +3. **Pattern generators**: one function per instrument returns a list of notes as `(start_beat, duration_beats, midi_key, velocity 0–1)`. A seeded `random.Random` adds small humanisation and variation, so output is stable between runs. +4. **Finalise**: notes are clamped to the arrangement length, dead notes are dropped, velocities are clamped and the list is sorted. +5. **Writers**: a hand-written Standard MIDI File writer (no dependencies) and a DAWproject writer (`project.xml` + `metadata.xml` zipped with `zipfile`). + +## Validating output + +```bash +python3 -I -c "import zipfile; zipfile.ZipFile('exit-progressive-emulation/exit-progressive-emulation.dawproject').extractall('/tmp/dp')" +xmllint --noout --schema Project.xsd /tmp/dp/project.xml +xmllint --noout --schema MetaData.xsd /tmp/dp/metadata.xml +``` + +The shipped `.dawproject` validates against the official schemas. The MIDI files were parsed back to confirm the tempo, track count and note range. + +## Status and limitations + +- Output has been **validated against the schema but not yet opened in Bitwig**. If an import misbehaves, the MIDI files are the dependable fallback. +- Generated tracks carry **notes, clip layout, section markers, volume and pan only**. Instrument patches, effects, automation and sidechain compression are left to be built in the DAW. +- DAWproject can name a device but cannot carry a Bitwig-specific patch, so device hints (`--devices`) are only hints. + +## Conventions + +- One folder per track, named after the track in kebab-case. +- Each track has its own `README.md`, linked from the table at the top of this file. +- Generated outputs (`.dawproject`, `.mid`) are committed alongside the script so the track can be opened without running anything. +- Scripts stay deterministic: fixed seeds, no timestamps, no network access. diff --git a/exit-progressive-emulation/README.md b/exit-progressive-emulation/README.md index 919ffe6..284932f 100644 --- a/exit-progressive-emulation/README.md +++ b/exit-progressive-emulation/README.md @@ -1,33 +1,345 @@ # Exit Progressive Emulation -Schranz / industrial techno, **150 BPM, F minor, 320 bars (8:32)**. -Generated by `build_track.py` (stdlib only, deterministic): `python3 build_track.py [--devices]`. +> Back to the collection: [tracks/README.md](../README.md) + +A long, heavy, progressive **Schranz / industrial techno** track: a fat 808 kick, nicely placed snares, rolling hats, jungle-flavoured percussion and a deep, harmonic saw bassline, built to be big, danceable and bounceable. + +| | | +|---|---| +| Tempo | **150 BPM**, 4/4 | +| Key | **F minor** | +| Length | **320 bars = 8:32** (one bar = 1.6 s) | +| Tracks | 9 note tracks plus a master | +| Notes | 16,838 in total | +| Generator | `build_track.py`, Python 3 standard library only, deterministic | + +This README documents the song structure, every pattern, the harmony, the file formats and the sound-design suggestions for finishing the track in Bitwig. Bar numbers below are **1-based**, so "bar 65" is the first bar of Drop 1. + +--- + +## Contents + +1. [Files](#files) +2. [Quick start](#quick-start) +3. [Song structure](#song-structure) +4. [Harmony](#harmony) +5. [Tracks and patterns](#tracks-and-patterns) +6. [Intensity map](#intensity-map) +7. [Sound design guide](#sound-design-guide) +8. [File format details](#file-format-details) +9. [How the script is organised](#how-the-script-is-organised) +10. [Customising the track](#customising-the-track) +11. [Validation](#validation) +12. [Known limitations](#known-limitations) + +--- ## Files -- `exit-progressive-emulation.dawproject`: open in Bitwig via File → Import → DAWproject. It has 9 note tracks, 8-bar clips and section markers. It is validated against the official `Project.xsd`, but not yet opened in Bitwig. -- `midi/full_arrangement.mid`: all tracks in one file; `midi/NN_.mid`: one file per track (full length). -- `--devices` adds instrument hints (Drum Machine / Polysynth / Sampler) to the tracks; by default the tracks are bare. -## Structure -| Bars | Section | | +``` +exit-progressive-emulation/ +├── README.md ← this file +├── build_track.py ← generator (stdlib only) +├── exit-progressive-emulation.dawproject ← Bitwig/DAWproject file +└── midi/ + ├── full_arrangement.mid ← all 9 tracks, one file + ├── 01_kick_808.mid + ├── 02_snare.mid + ├── 03_clap.mid + ├── 04_hats.mid + ├── 05_jungle_perc.mid + ├── 06_saw_bass.mid + ├── 07_pad.mid + ├── 08_lead.mid + └── 09_fx.mid +``` + +## Quick start + +**Use the generated files** + +1. In Bitwig: **File → Import → DAWproject** and choose `exit-progressive-emulation.dawproject`. +2. Load instruments on the tracks (see the [sound design guide](#sound-design-guide)). +3. Alternatively, drag `midi/full_arrangement.mid` or any single `midi/NN_*.mid` onto your own tracks. + +**Regenerate** + +```bash +python3 build_track.py # bare note tracks +python3 build_track.py --devices # adds an instrument-device hint to each track +``` + +The run prints the length and the note count per track. The seeds are fixed, so output is identical on every run. + +--- + +## Song structure + +The arrangement is a classic long, progressive Schranz journey: two drops separated by a breakdown, with every transition carrying a riser, a roll or a gap. + +| # | Section | Bars | Length | Role | +|---|---|---|---|---| +| 1 | **Intro** | 1–32 | 32 | DJ-friendly start: kick and hats, percussion fades in | +| 2 | **Build 1** | 33–64 | 32 | Snares, bass and toms arrive; roll and riser lead into the drop | +| 3 | **Drop 1** | 65–128 | 64 | First full groove, rolling bass and jungle percussion | +| 4 | **Breakdown** | 129–160 | 32 | No kick; pad, drone bass and melody: the emotional centre | +| 5 | **Build 2** | 161–192 | 32 | Half-time kick returns, snare and kick rolls, arps ramp up | +| 6 | **Drop 2** | 193–288 | 96 | The peak: everything, with variations every 4, 8 and 16 bars | +| 7 | **Outro** | 289–320 | 32 | Elements drop out one by one for mixing out | + +### Section by section + +**Intro (1–32)** +- Kick on every beat for all 32 bars. +- Bars 5–16: open hats on the off-beats only. From bar 17, closed 16ths join and fade in in volume (50 % → 90 %). +- Bars 17–32: shaker on 16ths. Bars 25–32: the first percussion pattern (pattern A) joins quietly. + +**Build 1 (33–64)** +- Hats run full 16ths with open off-beats, plus a double hit at the end of every 8th bar. +- Bars 49–62: snares and claps land on beats 2 and 4. Bars 63–64: snare rolls (accelerating from 2 to 4 hits per beat, then 4 to 8). +- Bars 49–56: bass plays offbeat 8ths on F. Bars 57–64: the bass switches to rolling 16ths and its volume climbs. +- The last beat of bar 64 is cleared on the bass for a gap before the drop. A riser covers bars 57–64. + +**Drop 1 (65–128)** +- Kick four-on-the-floor, with a pickup in every 8th bar (three kicks plus two short ones at the end). +- Snare and clap on 2 and 4, with ghost snares that change every 4 bars. A short snare fill on beat 4 of every 8th bar. +- Rolling saw bass following the chord progression (see [Harmony](#harmony)). +- Hats with a double-hit flourish at the end of every 4th bar. +- Percussion alternates pattern A and B every 4 bars; from bar 97, pattern C is layered on top. A tom fill closes every 8th bar. + +**Breakdown (129–160)** +- Kick, snare and clap are silent. Hats return from bar 145 as quiet 8ths, and a shaker from bar 149. +- Pad plays one chord per 4 bars. From bar 137 a drone bass (one long note per bar) and the lead melody enter. + +**Build 2 (161–192)** +- Bars 161–176: half-time kick (beats 1 and 3, long tails). From bar 169, off-beat hats and shaker, with pattern A. +- Bars 173–180: bass plays offbeat 8ths on F. From bar 181 it rolls, with growing volume. +- Bars 177–188: full four-on-the-floor kick. Bars 189–191: kick doubles to 8ths with rising velocity. Bar 192: a 12-hit kick roll. +- Snare: backbeat from bar 169 to bar 188, then rolls that accelerate through bars 189–192. +- Lead arps from bar 177, rising in volume. Hats ramp from 50 % to 100 %. Risers start at bars 177 and 185 (the one at bar 153 sits in the Breakdown). + +**Drop 2 (193–288)** +- Everything from Drop 1, plus pad, lead arps, and more bass variation (see [Saw Bass](#saw-bass)). +- Chord progression A for the first 8 bars of every 16, progression B (same chords, different order: Eb earlier, Cm at the end) for the next 8. +- Lead arps start at bar 201. They play 8ths for 4 bars, then 16ths for 4 bars, alternating. +- Snare fill on beat 4 every 8th bar and a long double-beat roll every 16th bar. +- A tom fill closes every 8th bar. + +**Outro (289–320)** +- Bars 289–304: kick, snare/clap, hats, shaker, percussion and bass (rolling). +- Bars 305–312: bass drops to offbeat 8ths, snare and clap are gone, open hats only. +- Bars 313–316: only the kick and sparse quiet hats remain; bars 317–319: kick on beats 1 and 3; bar 320: a single long kick. + +--- + +## Harmony + +F natural minor, built around a four-chord loop. + +| Index | Chord | Notes (pad / lead) | Bass root | +|---|---|---|---| +| 0 | **Fm7** | F3 Ab3 C4 Eb4 | F1 (MIDI 29) | +| 1 | **Dbmaj7** | Db3 F3 Ab3 C4 | Db1 (MIDI 25) | +| 2 | **Ebmaj7** | Eb3 G3 Bb3 D4 | Eb1 (MIDI 27) | +| 3 | **Cm7** | C3 Eb3 G3 Bb3 | C1 (MIDI 24) | + +Progressions (one entry per bar, 8-bar loops): + +| Name | Bars 1–8 | Used in | |---|---|---| -| 1–32 | Intro | kick, offbeat hats, rolling 16ths, shaker | -| 33–64 | Build 1 | snares, bass enters filtered-style, roll and riser | -| 65–128 | Drop 1 | full: 808 kick, rolling saw bass, jungle percussion | -| 129–160 | Breakdown | no kick, pad, drone bass, melody | -| 161–192 | Build 2 | half-time kick, snare rolls, kick roll, riser | -| 193–288 | Drop 2 | peak: bass variations, arps, fills every 8 / 16 bars | -| 289–320 | Outro | stripped back | +| **A** | Fm · Fm · Fm · Fm · Db · Db · Eb · Cm | Drop 1, Build 2 bass, first half of every 16 bars in Drop 2 | +| **B** | Fm · Fm · Eb · Eb · Db · Db · Cm · Cm | Second 8 bars of every 16 in Drop 2 | +| Breakdown | one chord per 4 bars: Fm · Db · Eb · Cm | Breakdown pad, drone and melody | -## Sound design (do this in Bitwig) -| Track | Notes | Suggested sound | +--- + +## Tracks and patterns + +All drums use MIDI channel 10 (index 9); the melodic tracks use channel 1. Keys follow the General MIDI drum map where possible, so most drum samplers respond sensibly. + +### Kick 808 +Key **36** · 1,151 notes · colour red + +- Four-on-the-floor with long 808-style tails (about 0.95 beats) in every section except the Breakdown. +- Pickup in every 8th bar of the drops: three full kicks followed by two short ones on beat 4 and the "and" of 4. +- Build 2 and Outro use half-time, 8th and 16th roll variations as described in the [sections](#section-by-section). + +### Snare +Key **38** · 801 notes + +- Backbeat on beats 2 and 4. +- Ghost notes on a 4-bar cycle in the drops: none, one on the "a" of beat 3, two, then two more offset. +- Fills: short roll on beat 4 every 8 bars, long roll every 16 bars in Drop 2, accelerating rolls in the builds. + +### Clap +Key **39** · 414 notes + +Layered with the snare on beats 2 and 4 for a wider backbeat. It stays out of the roll fills. + +### Hats +Keys **42** (closed) and **46** (open) · 4,202 notes + +- 16th-note grid. Beat starts are accented, the rest sit at lower random velocities (timing humanised by up to ±0.004 beat). +- Open hat on the "and" of every beat (the third 16th) for the classic off-beat swing. +- Double-hit flourish at the end of selected bars, for the rolling feel. + +### Jungle Perc +Keys **37, 41, 45, 48, 60, 61, 63, 64, 70** · 6,360 notes + +Three syncopated patterns, expressed as 16th-note steps (0–15), play a jungle-style call-and-response: + +| Pattern | Hits (step: key) | Feel | |---|---|---| -| Kick 808 | key 36 | long 808 kick, tuned to F, saturated; sidechain source | -| Snare / Clap | 38 / 39 | tight industrial snare + layered clap | -| Hats | 42 closed / 46 open | | -| Jungle Perc | 37 rim, 41/45/48 toms, 60/61 bongo, 63/64 conga, 70 shaker | | -| Saw Bass | F1 range | Polysynth: saw ×3 detuned, low-pass with envelope + automation; sidechain from kick | -| Pad / Lead | F minor chords / arps | | -| FX | 36 impact, 37 reverse crash, 49 crash, 60–67 risers | | +| **A** | 3: 64, 6: 63, 10: 64, 13: 63, 7: 37, 15: 61 | Congas and rim, loose off-beat | +| **B** | 2: 45, 5: 41, 8: 63, 11: 45, 14: 48, 15: 48 | Toms, rolling and low | +| **C** | 1: 60, 4: 64, 7: 63, 9: 60, 11: 64, 12: 41, 14: 63 | Bongos and congas, busier | -Chords: Fm7 – Dbmaj7 – Ebmaj7 – Cm7. Bass roots are F1 / Db1 / Eb1 / C1. +On top of the patterns a constant shaker (key 70) runs on every 16th with alternating velocity, and a tom fill (48, 48, 45, 45, 41, 41, 43, 41) closes every 8th bar of the drops. + +### Saw Bass +F1 range, MIDI 24–53 (the top end is the fill arpeggio) · 2,414 notes · colour purple + +The "rolling" bass sits in the gaps around the kick, so the kick stays clear: + +- Notes land on the 2nd, 3rd and 4th 16th after every beat (steps 1, 2, 3), with the middle one accented. +- **Octave jumps:** the last note of beats 2 and 4 jumps up an octave on every second bar (the odd-numbered bars of each 8-bar phrase) in both drops. +- **Drive mode** (Drop 2, bars 13–15 of every 16-bar phrase; bar 16 has the fill): only steps 2 and 3, for a tighter, pumping feel. +- **Fill:** on beat 4 of every 8th bar, a rising arpeggio (root, minor 3rd, 5th, octave) one octave higher. +- **Offbeat mode:** in the builds and outro the bass plays 8th notes on the off-beat, on F. +- **Drone:** in the Breakdown, one long note per bar following the chords. + +### Pad +Chord tones from the [harmony table](#harmony) · 256 notes (four-note chords held for several bars) + +Plays in the Breakdown (loudest, velocity 0.6), Build 2 (0.45) and Drop 2 (0.4). + +### Lead +Chord tones, an octave or two above the pad · 1,220 notes · colour pink + +- **Breakdown (from bar 137):** a slow 4-bar motif per chord: a held top note stepping down, then a long high root, a two-note answer, and a long low note to close. +- **Build 2 (from bar 177) and Drop 2 (from bar 201):** arpeggios over the current chord. 8th notes in Build 2 with rising volume; in Drop 2 they alternate 4 bars of 8ths with 4 bars of 16ths, with accents on the off-beats. + +### FX +20 notes · markers for impacts, crashes and risers (assign a Sampler or FX instrument) + +| Event | Key | Where | +|---|---|---| +| Riser (8 bars, rising pitch) | 60, 62, 64, 67 | bars 57, 153, 177, 185 | +| Impact | 36 | bars 65, 129, 193 (full), 33, 161 (soft) | +| Crash | 49 | first bar of every section | +| Reverse crash | 37 | bars 64, 128, 192, 288 | + +--- + +## Intensity map + +Note count per track and section, as a quick view of where the energy sits: + +| Track | Intro | Build 1 | Drop 1 | Breakdown | Build 2 | Drop 2 | Outro | +|---|---|---|---|---|---|---|---| +| Kick 808 | 128 | 128 | 264 | 0 | 116 | 396 | 119 | +| Snare | 0 | 64 | 220 | 0 | 107 | 378 | 32 | +| Clap | 0 | 28 | 128 | 0 | 40 | 186 | 32 | +| Hats | 304 | 520 | 1056 | 128 | 290 | 1584 | 320 | +| Jungle Perc | 305 | 735 | 1696 | 192 | 656 | 2377 | 399 | +| Saw Bass | 0 | 125 | 776 | 24 | 173 | 1092 | 224 | +| Pad | 0 | 0 | 0 | 32 | 32 | 192 | 0 | +| Lead | 0 | 0 | 0 | 36 | 128 | 1056 | 0 | +| FX | 1 | 4 | 3 | 3 | 5 | 3 | 1 | + +--- + +## Sound design guide + +The files contain notes and arrangement, not sounds. These are suggestions for turning them into the intended character: heavy, industrial, dark. + +| Track | Suggested instrument | Ideas | +|---|---|---| +| **Kick 808** | Drum Machine or Sampler with a long 808 kick | Tune the tail to F (about 43.65 Hz), add soft saturation and a short click. Use it as the **sidechain source** for the bass, pad and lead. | +| **Snare / Clap** | Drum Machine | A tight, cracked industrial snare layered with a clap. Short plate or room reverb, gated. | +| **Hats** | Drum Machine | Closed (key 42) and open (46) hats; keep the open hat short so the groove stays tight. | +| **Jungle Perc** | Drum Machine | Congas, bongos, toms, a rim and maracas on the key map above. Pan some hits wide. The track is panned slightly left by default. | +| **Saw Bass** | Polysynth | Three detuned saws plus a sub sine, low-pass filter with an envelope. Automate the cutoff upwards through each build. Add distortion for grit and sidechain from the kick. | +| **Pad** | Polysynth or Wavetable | Wide, slow-attack pad, low-passed, with long reverb. Most prominent in the Breakdown. | +| **Lead** | Polysynth or Wavetable | Plucky or acid-style saw with delay; automate the filter open towards Drop 2. | +| **FX** | Sampler | Risers, impacts, crashes and reverse crashes on the keys above. | + +**Mix starting points** (set in the project): Kick 0.90, Snare 0.72, Clap 0.60, Hats 0.55, Jungle Perc 0.60, Saw Bass 0.82, Pad 0.50, Lead 0.50, FX 0.55 (linear gain), master 0.8. + +Further ideas not covered by the generator: filter and drive automation on the bass, a sidechain compressor driven by the kick, a bus compressor and a limiter on the master, and tempo-synced delay on the lead. + +--- + +## File format details + +### MIDI (`midi/*.mid`) +- Standard MIDI File, **format 1**, **960 ticks per quarter note**. +- Track 0 is a conductor track: title, tempo (150 BPM) and time signature (4/4). +- Each following track holds one instrument. Drums use channel 10 (index 9), the melodic tracks channel 1. +- Velocities are written as 1–127; note-offs use velocity 0. + +### DAWproject (`*.dawproject`) +A zip archive with two files: + +| File | Content | +|---|---| +| `metadata.xml` | Title, genre, comment (tempo, key and bar count) | +| `project.xml` | Transport (150 BPM, 4/4), 9 tracks plus a master track, mixer channels (volume and pan), arrangement and section markers | + +- The arrangement uses `timeUnit="beats"`. Each track holds **8-bar clips** (32 beats) named after the section, such as "Drop 2 3", so the track is easy to rearrange or mute section by section. +- Markers at each section start: Intro, Build 1, Drop 1, Breakdown, Build 2, Drop 2, Outro. +- With `--devices`, each track also gets a `BuiltinDevice` hint (Drum Machine, Polysynth or Sampler). + +--- + +## How the script is organised + +`build_track.py` is one file, top to bottom: + +| Block | Contents | +|---|---| +| Constants | `TITLE`, `BPM`, `PPQ`, `TOTAL_BARS`, `CHUNK` (bars per clip), `SECTIONS` | +| Harmony | `BASS_ROOT`, `CHORDS`, `PROG_A`, `PROG_B`, `prog()` picks the chord for a bar | +| Helpers | `section_at(bar)`, `jitter()`, `roll()` for accelerating rolls | +| Generators | `gen_kick`, `gen_snare_clap`, `gen_hats`, `gen_perc`, `gen_bass`, `gen_pad`, `gen_lead`, `gen_fx`; each returns `(start_beat, duration, key, velocity)` tuples | +| `build_tracks()` | The track table: name, notes, channel, colour, volume, pan, device hint. Each generator gets its own seed (`1337 + n`). | +| `finalize()` | Clamps notes to the arrangement, drops dead notes, sorts | +| MIDI writer | `vlq`, `meta`, `note_events`, `write_midi` | +| DAWproject writer | `chunk_clips`, `build_dawproject` | +| `main()` | Builds the tracks, writes the MIDI files and the `.dawproject`, prints a summary | + +## Customising the track + +| To change… | Edit… | +|---|---| +| Tempo | `BPM` | +| Length or section order | `SECTIONS` and `TOTAL_BARS` (sections must cover every bar) | +| Key or chords | `BASS_ROOT`, `CHORDS`, `PROG_A`, `PROG_B` | +| Percussion groove | `PERC_A`, `PERC_B`, `PERC_C`, each a list of `(step, key, velocity)` | +| Feel of the hats, snares or bass | The matching `gen_*` function | +| Mix levels, colours, pan | The table in `build_tracks()` | +| A different variation | Change the seed offsets in `build_tracks()` (`r(n)`) | + +After editing, re-run `python3 build_track.py` and re-import into Bitwig. + +## Validation + +```bash +python3 -I -c "import zipfile; zipfile.ZipFile('exit-progressive-emulation.dawproject').extractall('/tmp/dp')" +xmllint --noout --schema Project.xsd /tmp/dp/project.xml +xmllint --noout --schema MetaData.xsd /tmp/dp/metadata.xml +``` + +Both schemas come from [bitwig/dawproject](https://github.com/bitwig/dawproject). The shipped file validates with and without `--devices`. The MIDI files were parsed back: 150 BPM, 960 PPQ, nine instrument tracks, and the last note-ons fall within bar 320. + +## Known limitations + +- **Not yet tested in Bitwig.** The project is schema-valid, but I could not open it in Bitwig from the build machine. +- **Notes, clips, markers, volume and pan only.** No instrument patches, effects, automation or sidechain: those are the next layer, built in the DAW. +- The `--devices` option only names a device type; Bitwig may still need you to load the instrument yourself. +- The strictly regular, generated groove is tight by design. Humanisation is limited to small timing jitter on hats, percussion and shaker, plus velocity variation on the hats. +- Chord changes are fixed per section, so the harmony is deliberately simple. The progression carries the track through repetition. + +--- + +[← Back to the collection](../README.md)