Skip to content

v0.2.0 - Tracker playback + real-hardware performance fixes

Pre-release
Pre-release

Choose a tag to compare

@roge-rm roge-rm released this 21 Aug 15:35
· 94 commits to main since this release

Second release of the midiTracker firmware, building on v0.1.0's MIDI player/recorder/looper with tracker-format playback and a round of real-hardware performance/stability fixes.

Highlights

  • Tracker & WAV playback: play .mod, .s3m, and .xm tracker files, plus .wav, straight off the SD card alongside the existing .mid/.syx support — no whole-file RAM buffering, same streaming approach as the MIDI player. XM supports both linear and Amiga frequency-table modes and the full effect set (arpeggio, portamento, vibrato/tremolo, volume/panning slides, envelopes with key-off/fadeout, retrigger, and more); S3M and MOD get equivalent coverage for their own format conventions.
  • Real-hardware audio fixes: busy passages in S3M/XM files (many simultaneous channels) could audibly slow down and crackle. Root-caused to a genuine per-sample mixing CPU ceiling on the RP2040 and fixed via several changes found through on-device diagnostic instrumentation: correcting signed divisions that weren't actually free compiler-emitted shifts, reusing the SD read cache across same-sample note retriggers instead of re-reading every time, capping worst-case per-call latency, pre-filling the audio ring buffer before playback starts, and throttling on-screen live-update redraws that were eating into an already-thin CPU budget.
  • RP2040 overclocked to 200MHz (from the default 133MHz) to give the mixing pipeline enough headroom to fully clear that ceiling, with a matching fix to the SD card's PIO clock divider (which doesn't auto-scale with CPU speed) to keep the SD bus at its previously-stable rate.
  • Battery status indicator: a small vertical battery gauge in the bottom-right corner of every screen, showing charge level and charging state, read from the onboard voltage sense pin.
  • Looper fix: pressing PLAY on the BPM row while a track is already running no longer re-triggers a fresh metronome count-in over music that's already playing.

Also in this release

  • RAM compartmentalization: the file players, MIDI recorder, and looper's track storage are now lazily allocated on demand instead of all coexisting in RAM at once, freeing up headroom for the new tracker-format players.
  • File browser recognizes and lists .mod/.s3m/.xm/.wav files alongside .mid/.syx.
  • Removed temporary boot-time serial diagnostics (PIO/DMA claim snapshot, I2S init status) and the wait-for-serial-monitor delay that only existed to make them visible.

Status

Tracker playback has been cross-validated against libopenmpt for format parsing/decoding correctness and tested on real hardware, including the throughput-fix work described above. One known rare edge case remains: an occasional brief SD-card read stall (a few seconds, self-recovering) during very busy passages, currently believed to be intrinsic SD card behavior rather than a firmware bug. As with v0.1.0, this hasn't had extensive hardware testing across a wide range of files/cards — feedback and issues welcome.