Skip to content
ElekLabsPublic

About

Custom patching and tooling for Elektron devices

Topics

Resources

Contributing

Security policy

Stars

62 stars

Watchers

1 watching

Forks

Latest commit

 

History

7,021 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

digikit: firmware, DSP, emulation

digikit

Custom machines, FX and other modules for the Digitakt II and Digitone II.

Digikit patches your stock firmware once with a small runtime. After this, custom machines, FX and tools are transferred to the device card via the workbench app or site without having to flash again.

🧪 digikit is experimental. Flashing modified firmware is at your own risk. A stable release comes with 1.0.0.

Open the site · Browse modules

Screenshots

The MODULES list on the device
Select modules to load
The DIGIKIT menu on the device
About, health, memory, modules
The workbench emulator page
Run patched firmware in the emulator
The workbench Transfer page
Install modules over USB
Analyzer with scope and metrics
Scope, spectrum and live metrics
Performance drawer with profile
CPU and DSP load, and profile captures

Features

  • Small core runtime that aims for stability
  • New machines, FX and other tools easily installable as modules
  • Approximately 82 MiB of module storage on Digitakt II, 22 GiB on Digitone II
  • Up to 3 FX of your own with send/insert routing
  • Boot-loop protection: device loads without modules after 2 failed boot attempts
  • Safe mode: hold RECORD at power-on to start without modules
  • Guard misbehaving modules instead of silencing the whole device
  • Modules are extensible and store their own settings
  • A desktop emulator that runs the real firmware (ColdFire and SHARC DSP), for testing before you flash
  • Remote control and debugging over USB: press keys, read the event log, peek at memory
  • A module SDK and test suite, still in development
  • Telemetry and profiling tools tracking traces/spans and instruction counts
  • USB audio support with visualisations for both the emulator and real device
  • DSP development tooling, including conformance tests and A/B previews

Modules

Machines, FX and tools are loaded from the card at run time. See Modules page for a listing.

Quick start

For the web site, you will need Chrome or Edge and your device's stock firmware file from Elektron's support site: Digitakt II OS 1.17 or Digitone II OS 1.12.

  1. On the Firmware page, choose your stock .syx.
  2. Flash it to the device over USB from the same page.
  3. On the Transfer page, install modules. On the device, tick them in SETTINGS > DIGIKIT > MODULES and choose APPLY & RESTART.

digikit has run on a real Digitakt II and Digitone II.

If something goes wrong

  • If a module stops the box from starting, it starts without modules after two failed tries and shows why.
  • Hold RECORD at power-on to start without modules. Then untick the module in SETTINGS > DIGIKIT > MODULES and restart.
  • To remove digikit, flash your stock .syx the same way.
  • If the device does not start at all, hold FUNC while powering on to reach the STARTUP menu, and send the stock OS over MIDI DIN (details).

digikit never changes the bootloader. Keep your stock .syx.

For developers

The repository also holds the desktop workbench, with the emulator, Transfer (modules and samples), Remote and Firmware pages, and the tools to build, test and load modules.

Setup

You need mise and uv. Then, once:

mise install
mise run setup              # Python and web dependencies, and the commit-msg hook
mise run patch:toolchains   # the compilers for module code
mise run gen:core           # the shared generated core of the emulator's DSP

Firmware files

Download Digitakt_II_OS1.17.syx and Digitone_II_OS1.12.syx to firmware/. Generate a firmware catalog (HTML) from either firmware file, or see the firmware guide for main-OS analysis.

Flash from the command line

mise run patch -- --firmware firmware/Digitakt_II_OS1.17.syx -o out/patch/digikit-dt2.syx
mise run patch:preflight -- out/patch/digikit-dt2.syx      # must print PREFLIGHT OK

Without --modules, the device's patch set from devices/*.toml is applied; --set NAME picks another. Only flash images that pass the preflight. Open Elektron Transfer, connect the device over USB, and drop the .syx on it while the device shows its main screen. When the transfer ends, the device asks to upgrade: press YES. After the restart, SETTINGS > DIGIKIT shows the runtime.

Some modules are patched into the image instead of loaded from the card, such as the black intro (core/introblank). PATCHING.md has the details.

Load a module on the device

With the runtime flashed and the device connected over USB:

mise run dk:run -- digikit/pluck --port Digitakt --seconds 60

This builds the module, uploads it, selects it, restarts the device and shows the log. Then pick PLUCK as the machine of a track. Useful while testing:

mise run dk:log -- --port Digitakt follow                       # follow the debug log (saved under out/runs/device-logs/)
mise run dk:log -- --port Digitakt level debug                  # log more: levels error, warn, info (default), debug, trace
mise run dk:screen -- out/runs/shots/screen.png --port Digitakt # a screenshot of the display
mise run dk:store -- --port Digitakt ls                         # the files of the store

Run the emulator

mise run emu:ready -- dt2 --syx firmware/Digitakt_II_OS1.17.syx   # once: boot the firmware and save its state (about 2 minutes)
mise run workbench -- firmware/Digitakt_II_OS1.17.syx   # the stock firmware
mise run workbench -- out/patch/digikit-dt2.syx         # your patched image

The emulator's DSP does not run in real time yet, so audio plays slower than on the device. The dk:* commands work with the emulator too: use --emu instead of --port Digitakt.

Write a module

Start with mise run module:new -- machine AUTHOR/NAME (or fx, service) and follow the module guide. mise run module:check ID runs the module's conformance tests and its own tests.

Further reading

Licence

digikit (github.com/ElekLabs/digikit) is licensed under AGPL-3.0-or-later (LICENSE), with additional terms under section 7 of the AGPL (attribution, origin and names) in NOTICE. Keep NOTICE and the attribution "digikit by Em D - https://github.com/ElekLabs/digikit" in copies and modified versions; a user interface of a covered work shows it in its About, credits or footer area.

The licence covers the code here only; it gives no rights to Elektron's software or firmware. digikit is not affiliated with or endorsed by Elektron. Digitakt, Digitone and Syntakt are trademarks of Elektron Music Machines. Container format knowledge comes from mischa85/elektron-firmware-tool (MIT); some architecture facts from lalzart/digitakt-ii-firmware-research-public. The public SHARC+ assembler ElekLabs/selache (a fork of js216/selache) is used only as a read-only cross-check. tools/coldfire/ghidra/ColdfireEMAC contains files from Ghidra under the Apache License 2.0.

About

Custom patching and tooling for Elektron devices

Topics

Resources

Contributing

Security policy

Stars

62 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages