Skip to content

v0.4.0 - Color theming, individual loop saves, and unlimited file browsing

Pre-release
Pre-release

Choose a tag to compare

@roge-rm roge-rm released this 23 Aug 19:11
· 88 commits to main since this release

Fifth release of the midiTracker firmware, and the biggest one yet — a full user-editable color theme system, a reworked Loops workflow, a real hardware color-order bug fix, and a rewrite of the file browser that removes its old per-folder file-count ceiling.

Highlights

  • Full color theming. Every UI color is now a named, user-editable setting: Settings > MIDI/System > Theme opens a live R/G/B palette editor (arrow keys move between entries, EDIT+UP/DOWN adjusts by 10, EDIT+LEFT/RIGHT by 1, both hold-to-accelerate) with a live swatch preview. Themes save/load/reset as plain-text .thm files under /themes/ on the SD card, with a name prompt on save — so you can build and swap between multiple looks.
  • Loops menu split into individual and bundle workflows. Save and Load each now offer a choice: Save/Load Selected Loop works with one track at a time — saved as a plain .mid at the root of /loops, picked with a free-text name, loaded back in from a dedicated restricted file browser (tap to select/navigate, hold to delete, with the same overwrite-confirm safety dialog on a name collision). Save/Load All Loops is the previous whole-session bundle behavior, unchanged except its files now live under /loops/bundles/ to keep them out of the individual-loop listing. "Delete Saved Loop" is renamed to Delete Loop Bundle to make clear it only ever touches bundles.
  • Fixed a real hardware color bug. This board's ST7789 panel is physically wired BGR, not RGB, and nothing in the display config was telling the driver that — every color on screen (including the Recording state's red, which rendered vividly blue) was affected. Fixed with TFT_RGB_ORDER=0 in platformio.ini; this is a genuine wiring correction, not a cosmetic swap, and is what finally made per-channel theming trustworthy to tune by eye.
  • Metronome and master clock overhaul. The header's beat-square row is now always visible while anything's running, independent of whether the audible metronome is on, and can be toggled on its own with an EDIT-tap on the BPM value; the BPM row itself now flashes on every beat with a distinct color on the downbeat. A new "click-only" pre-roll lets PLAY on the BPM row start just the metronome click (no recording) when Count In is off, and a freeform track armed while the click is running snaps its start to the nearest beat instead of the raw note-onset instant. Underneath all of this, the internal "master clock" driving beat position now reliably resets to the top of the bar on every fresh start — stopping, pausing-then-deleting a track, or otherwise going idle now eagerly resets it — with resuming a paused track as the one deliberate exception (it picks back up from wherever it left off, not bar one).
  • The file browser no longer has a hard per-folder file limit. Previously capped at 96 entries (silently, in on-disk order, before any sorting), the browser now indexes a folder on demand — a compact per-entry index sized to what's actually there, not a fixed worst-case reservation — and scales to a few thousand files per folder. A folder past what fits still browses, with a (+N) note in the header rather than files just disappearing. This required real care around this device's 256KB of RAM (see Status below).

Also in this release

  • Looper tracks now have independent MIDI in/out channels: IN (OMNI or 1-16) filters what gets recorded, OUT (1-16, or "as recorded") remaps what gets played back, shown together on the track row and edited with ALT+LEFT/RIGHT (in) / ALT+UP/DOWN (out) — see the controls remap below.
  • Display brightness is now a Settings > MIDI/System option, driven over PWM on the backlight pin.
  • Looper track-row controls remapped: EDIT+LEFT/RIGHT now cycles bar length (was ALT+LEFT/RIGHT); ALT+LEFT/RIGHT now adjusts the MIDI in channel (was EDIT+UP/DOWN, which is unclaimed for now). Bar-length adjustment also no longer accidentally toggles record arm on the same press — a real interaction bug caught while making this change, not a new feature.
  • A reusable overwrite-confirm dialog replaces the old hard-reject-on-name-collision behavior across MIDI recording, SysEx capture, rename, and the new individual loop save flow — same look as the existing delete-confirm screen.
  • File browser polish: the context menu is reordered (New Recording / Capture SysEx Dump / Load to Looper / Open / Rename / Delete / New Folder) and its up/down navigation now wraps at the ends; new-recording and SysEx-capture name entry now default the on-screen keyboard cursor to OK, since the auto-generated name is usually fine as-is.
  • Fixed a rendering bug in the WAV and SysEx player screens where the progress bar's narrow left/right margins were never cleared, occasionally leaving a stray highlight color from whatever screen was showing before.

Status

The file browser rewrite is the riskiest change in this release from a stability standpoint: it leans on rp2040.getFreeHeap() at scan time to size its allocation safely, since the looper's own 128KB track buffer can already be resident and isn't reflected in a static build's RAM report. The safety margin used for that check is a first-pass estimate, not yet tuned against a real-hardware measurement of the worst case (all 4 looper tracks recorded, plus a folder of a couple thousand loop files) — no problems found in testing so far, but that specific combination is the one to watch for. Theme color defaults and the Lush/Shimmer reverb types from v0.3.1 remain first-pass tunings — feedback on how either looks/sounds in practice is welcome.