Building
Trig Seedr is built into a patched copy of the stock OS. Nothing from Elektron is in the repository: you supply the
OS. Development and releases are on a Mac; the tools, versions and variables are in
docs/dev-environment.md.
What you need
Section titled “What you need”Next to the trig-seedr folder (or point WORKSPACE elsewhere):
| Folder | What |
|---|---|
elekloader/ |
elekloader: the mod loader, the Rytm core (core-ar2 0.13), its build and patch tools |
analog-emu/ |
analog-emu, built with cargo build --release |
Official Firmwares/Analog-Rytm_MKII_OS1.74_dist/Analog-Rytm_MKII_OS1.74.syx |
the stock OS 1.74 from Elektron (or set STOCK) |
and an m68k-elf cross compiler (binutils and gcc, C only), with ELEKLOADER_CROSS=m68k-elf-.
Build and test
Section titled “Build and test”sh tools/doctor.sh # the environmentmake -C lib test coldfire # the engine: host tests (sanitizers) and a ColdFire build checksh tools/run_tests.sh # builds the mod, patches the OS into build/emu/seedr.syx, runs every checksh tools/build_release.sh # the firmware to flash: build/trig-seedr-<version>-os1.74.syxEvery file the build makes under build/ contains Elektron’s firmware: keep it to yourself. To flash the result,
see Flashing a Rytm MKII; to try it first, the emulator. What each check covers:
How it is tested.
The Syntakt
Section titled “The Syntakt”The Syntakt’s build needs, next to trig-seedr as well:
| Folder | What |
|---|---|
analog-emu-st/ |
analog-emu with the Syntakt’s models (a local branch, syntakt-modified), built with cargo build --release |
external/synfact-dev/ |
Synfact: its elekloader copy, with the Syntakt’s profile, and the hook bus the minimal core is built from |
external/elektron-firmware-tool/ |
elektron-firmware-tool: repacks the file to the size the unit takes |
Official Firmwares/Syntakt OS 1.42/Syntakt OS/Syntakt_OS1.42.syx |
the stock OS 1.42 from Elektron (or set STOCK_ST) |
sh tools/st_params.sh # device/st_params.h from your stock file (never committed); the scripts call it toosh tools/st_run_tests.sh # the Syntakt's emulator testssh tools/build_release_st.sh # the firmware to flash: build/trig-seedr-<version>-st-os1.42.syxbuild_release_st.sh runs the unit file’s checks first and stops if one fails. To flash the result, the memory
canary first, and the first checks: Flashing a Syntakt. The Syntakt’s parameter table
(device/st_params.h) is made from your own stock file: without it, the Rytm’s builds and tests run and skip the
Syntakt’s parts.
Your own grooves
Section titled “Your own grooves”Out of the box TIME has five MPC-style swing amounts (SWING 54 … SWING 71, mods/seedr-ar2/grooves-swing.h).
tools/groove2h.py turns grooves from your own Ableton Live installation into tables built into the firmware; when
mods/seedr-ar2/grooves-live.h exists, the build uses it in place of the swing amounts:
python3 tools/groove2h.py "/Applications/Ableton Live 11 Suite.app/Contents/App-Resources/Core Library/Grooves/Swing/MPC" \ MY_GROOVES/ > mods/seedr-ar2/grooves-live.h.agrfiles: Live’s plain-XML grooves. Each base-grid line takes the displacement of the groove note nearest to it, steps in between move in proportion (a time warp, as Live describes Base), and a step on a grid line takes that note’s velocity. Files in a protected format are skipped.- MIDI files: any clip exported from Live, for example a protected groove dragged onto a MIDI track and exported.
Base comes from
--baseor the file name (8ths→ 1/8); length from--beatsor the file, rounded up to whole bars.
grooves-live.h is derived from Ableton’s content: it is git-ignored and must stay out of the repository. A
grooves-live.h made before 0.4 still builds; making it again writes the new table type.