Retune for All is a performance-oriented microtonal MIDI retuner that can send multi-timbral or MPE MIDI, supports Scala .scl/.kbm file import, and reads & writes YAML presets.
Built as a lightweight, lightning-fast Terminal User Interface (TUI), retune-for-all is optimized for live performance and deep tuning exploration. Quickly set up the TUI using hotkeys, import and tweak scl/kbm files, and save/load presets.
Because RfA runs bare-metal with a tiny CPU and memory footprint, you can easily run multiple instances simultaneously to manage many independent retuned MIDI routings at once.
We use cargo-dist to automatically build optimized executables for all major platforms.
- Navigate to the Releases tab on the right side of this GitHub page.
- Download the packaged zip/tarball corresponding to your operating system (Windows, macOS, or Linux).
- Extract the archive and run the executable directly from your terminal!
If you prefer to compile from source using Rust:
cargo install retune-for-all
🐧 Linux Users: Make sure you have the ALSA development headers installed before compiling:
sudo apt install libasound2-dev(or similar os specific tools)
The interface is built to behave like a fast, interactive spreadsheet. Every parameter is mapped to a hotkey (indicated by underlined letters or highlighted brackets). Pressing the hotkey shifts focus to that parameter, and Enter is used to enter/exit data entry intuitively. Arrow keys also navigate as expected.
- Press
ito focus Input Device oroto focus Output Device. - Press
Enterto open an interactive drop-down menu of available system MIDI ports. - Use the Up/Down Arrows or type the index number to select a port, then press
Enterto bind the connection.
- Press
t,Enterto toggle between Multi-Timbral and MPE output.
- Press
cto jump into the Channels Out matrix. - Use Left/Right Arrows to highlight a channel dot (
•), and useEnterto toggle a channel active or inactive. (Note: In MPE mode, Channel 1 is preserved as the Master channel).
retune-for-all features three distinct tuning engines:
- Hotkeys:
d(Divisions) /n(Interval to Divide) - Divides a target macro-interval (such as an octave
2/1, a tritave3/1, or a 12edo major third4\12) into a set number of equal steps. PressEnterto edit, type your value, and hitEnterto apply.
Perfect for isometric MIDI layouts, launchpads, or fretboard controllers, this mode lays out pitch structures across strings (rows) and frets (columns).
Note: This mapping currently assumes MIDI note 0 is at the top left of the grid controller, 16 is one row down, and notes increment by one each button to the right.
- Open Strings (
S1-S8): Presssto jump to the string array. PressEnter, type your offset from the reference pitch, hitEnter, repeat. These define the notes of the far left column. - EDO vs. JI Mode: Press
m,Enterto toggle. EDO Mode calculates standard linear steps of a given Equal Division of the Octave, while JI Mode accepts ratios (or any valid scl line).- In EDO mode, 0 maps to the reference note
- In JI mode, 1/1 maps to the reference note.
- Equal vs. Unequal Frets: Press
u,Enterto toggle custom fret sizes.- Horiz Step: Sets the equal interval all notes increase by each step to the right.
- Unequal Frets: Displays a grid of individual columns allowing you to assign a unique, independent interval value to every specific fret step.
- In EDO mode, unequal steps name the number of EDO steps from one button to the next
- In JI mode, entries specify ratios above the open string for each button to the right of the open strings
- Hotkeys:
f,Enterto enter typing mode inside the scratchpad, andTabto switch between the SCL and KBM notepads. PressShift + Lto quickly load external files (you may drag and drop files into the terminal screen or paste the full path to the file) - Format Standards: Fully supports the official format architectures of the Scala Scale (.scl) Specification and Keyboard Mapping (.kbm) Specification.
- Note that one additional convenience interval style can be used beyond scl standards:
nsteps ofmEDO can be writtenn\m
- Note that one additional convenience interval style can be used beyond scl standards:
- On-The-Fly Editing: You can write or edit Scala text fields natively in the File panel. Pressing
Enteron a row instantly updates the scale structure and retunes active hardware channels. PressEscto safely exit the editor.
Your configurations are written directly into a human-readable local configuration file (presets.yml) for easy editing.
- 📁 Load Preset: Press
Shift + P, then tap a number key1through9. - 💾 Save Preset: Press
Shift + S, then tap a number key1through9to instantly snapshot your routing layout, hardware channels, and macro tuning formulas.
This project is open-source and licensed under the terms of the MIT License. You are free to modify, distribute, and utilize this software in any personal or commercial derivative work provided attribution is maintained.


