D-TRK is an open-source, standalone 16-track music tracker and synthesizer built from off-the-shelf modules inside a 3D-printed OpenSCAD enclosure — plus native Linux/SDL2 ports of the exact same C++ engine for retro handhelds.

Hardware Architecture
Early prototypes ran everything on a single ESP32-S3, which got tight once polyphonic synthesis, effects, and sample streaming were added. Starting with v2, D-TRK uses a two-board architecture connected over a high-speed UART link:

  • UI & Sequencer Board — WT32-SC01 Plus (ESP32-S3): drives the 3.5" 480×320 capacitive touchscreen, sequencer UI, Wi-Fi file/OTA firmware updates, BLE MIDI, TRS MIDI OUT, EC11 rotary encoder, 12 Cherry MX keys via a PCF8575 I2C expander, and an INA226 battery gauge.
  • Synth & Storage Board — Teensy 4.1 + Audio Shield Rev D (SGTL5000): handles all real-time DSP, audio/headphone output, line-in / electret mic recording, 8 MB PSRAM sample caching, microSD sample streaming, and offline WAV + stem rendering. Cold code is placed in flash via a custom linker script so RAM1 (ITCM/DTCM) stays free for audio voices, governed by a cost-based voice pool.
  • Power & Enclosure: IP5306 USB-C charger + 2000 mAh LiPo inside a compact OpenSCAD-designed 3D-printed case with M3 heat-set inserts.
Synth & Tracker Features
  • 16 tracks with pattern grid, detail view, piano roll, automation lanes, song mode, and mixer
  • Synthesis engines:
    •   SYNTH: VA, Acid 303, HyperSaw, Wavetable (with on-device wavetable editor), wavefold/ring mod, filters, and modulation matrix
    •   FM: tonal and percussion FM machines
    •   DRUM: 808/909-inspired drum machines and 16-lane sample/drum kits
    •   CHIP: SID & AY-inspired voices
    •   LOFI: ByteBeat & Atari Punk Console
    •   STRING: physical-modeling string resonator
    •   SAMPLE: streaming WAV playback, slicing/editing, resampling, and built-in mic / line recording
  • Live performance & mixing: per-track insert FX, scenes with A/B crossfader, live PERF effects, Scala microtuning, motion/automation recording, and offline WAV master + stem export
  • Procedural Dice generator: generates patterns or full multi-section songs using bar-locked chord-tone motifs, an 8-archetype 303 acid bassline engine, and genre-matched timbres
Native Linux Handheld Ports (No External Hardware Needed)
Because the DSP core (`lib/core`) and UI (`src/ui`) are portable C++17, the same engine also runs natively at 64 voices on Linux ARM64 handhelds via SDL2:
  • TrimUI Brick (KNULLI — direct ALSA built-in mic recording, BLE & USB MIDI)
  • Anbernic RG35XXSP (KNULLI — native 640×480 sharp text, BLE & USB MIDI)
  • Anbernic RG351V & R36S clones (ArkOS — native 640×480 sharp text, USB MIDI via OTG)

Open Source
Firmware, schematics/wiring diagrams, BOM, OpenSCAD enclosure STLs, manuals (EN/RU), and prebuilt binaries (WT32 USB/OTA, Teensy HEX, and handheld ZIPs) are released under GPL-3.0.