A terminal music explorer. Browse a directory tree of audio, play it, and see it — a high-fidelity braille oscilloscope synced to the DAC plus a static waveform overview, in an elegant TUI.
muse # explore the current directory
muse ~/Music # explore a directory
- Lazy recursive file tree (dirs scanned on expand; dotfiles, non-media, and directories holding no music anywhere below them are hidden)
- Audio playback via symphonia → cpal, with an ffmpeg fallback decoder
- Live visualizers (sample-synced via a
triple_buffertap in the audio callback) with cyclable presets (v): line, fast, mirror, dots, bars, stereo XY / Lissajous vectorscope, and a live spectrum analyzer - Static waveform overview (background peak-bin analysis, cached) with a playhead
selectionpanel (above the file tree) follows the cursor; a separatenow playingpanel tracks the engine's current track- Read-only metadata panel (title / artist / album / genre / codec) via lofty
- Transport bar: play/pause, seek, volume, progress
- Click the now-playing waveform or transport bar to seek;
shift+←/→scrubs the playhead - OS media keys / now-playing integration (play/pause/next/prev) via souvlaki
- Fuzzy finder (
/): searches a background-built index of every track (never blocks the UI); flat ranked results,⏎applies,escresets to the tree - Color themes (
t):midnightplus pride-flag palettes (pride, trans, bi, lesbian, pan, nonbinary, ace) and animated modes —prismatic(rainbow borders),trans flow(slow trans-palette drift),ripple(glow pulsing across panels),snow(falling snowflakes),cmyk(oscillating CMY borders), andnot gay(hacker-green flames on navigation, a burning playhead, and a Calcifer fireball in the corner) — plus staticstraightand retrohacker. More particle themes, each with their own interaction:electric(lightning in the scope),matrix(digital rain; scroll spawns cascades),aqua(rising bubbles; click pops a cluster),cosmic(warp starfield; navigation warps),sakura(drifting petals the mouse blows like wind), andrave(confetti, strobe, beat fireworks, click mega-explosions) - Remembers the last scope preset and theme between launches (TOML at the platform config dir)
Architecture leaves a MediaProvider seam (src/media.rs) so image/video
preview + compare can be added later without touching the core.
| key | action |
|---|---|
j/k or ↑/↓ |
move cursor |
l/→ |
expand dir |
h/← |
collapse / jump to parent |
g/G |
top / bottom |
⏎ |
expand dir or play file |
space / p |
play / pause |
, / . |
seek −5s / +5s |
shift+←/→ |
scrub playhead ∓1s |
| click waveform/transport | seek to position |
| drag pane divider | resize tree/inspector or wave/scope (double-click resets; saved to config.toml) |
- / + |
volume |
v / V |
cycle visualizer preset (forward / back) |
t / T |
cycle color theme (forward / back) |
n / p |
next / previous track |
r |
loop mode (off / all / one) |
/ |
fuzzy find (⏎ apply · esc reset) |
: / ctrl+p |
command palette |
| right-click | context menu |
? / q |
help / quit |
Bind a key to any palette command (matched by title, case-insensitive) in
config.toml. Bindings add to the built-in keys and override them for that
key. Keys are one character, or space, enter, esc, tab, up, down,
left, right. Unknown keys or titles are ignored. The palette shows your
binding as the hint.
[keys]
x = "Next Track"
z = "Toggle Shuffle"cargo build --release
./target/release/muse ~/Music
Requires ffmpeg on PATH only for the fallback decoder (HE-AAC / odd formats).
src/
main.rs terminal setup/teardown, event loop, --probe smoke test
app.rs App state + key handling (single mutation surface)
audio.rs decode (symphonia/ffmpeg) -> rtrb -> cpal; triple_buffer scope tap
media.rs MediaProvider/Meta seam + audio provider + lofty tags
model.rs lazy flattened file tree
ui.rs all rendering (tree, inspector, scope, waveform, transport)
event.rs input/tick/worker event bus
config.rs theme
util.rs formatting
P2 move + undo · P3 auto-sort (dry-run) + tag write · P4 A/B compare · P5 image/video providers (proving the media seam).