Skip to content
Proyek

Tentang

Terminal music player with folder browser, queue, playlists, live spectrum, cover art and mouse support. C++20, FTXUI, miniaudio.

Desain dan media

Cara angka ini diukur

Yang dapat Anda lakukan

  • Folder browser and play queue side by side
  • Sequential playback, shuffle and repeat modes
  • MP3, FLAC, WAV, Ogg Vorbis, M4A/AAC and Opus files
  • Album art from embedded tags, or from front.*, cover.*, folder.* or album.* (JPEG or PNG) next to the track, loaded in the background

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Musica

A keyboard-and-mouse friendly terminal music player written in C++20, with album art, a live spectrum and a folder browser.

Français : README.fr.md

Musica playing a demo track

Features

  • Folder browser and play queue side by side
  • Sequential playback, shuffle and repeat modes
  • MP3, FLAC, WAV, Ogg Vorbis, M4A/AAC and Opus files
  • Album art from embedded tags, or from front.*, cover.*, folder.* or album.* (JPEG or PNG) next to the track, loaded in the background
  • Live multi-line spectrum analyser
  • Interactive seek and volume bars (click, drag, mouse wheel)
  • Live / search in the active panel (case- and accent-insensitive)
  • Track info popup, queue editing (remove, reorder)
  • M3U playlists: create, add, load, rename, delete with confirmation
  • French / English interface, detected from the locale or saved choice
  • Unreadable files are skipped with a visible message
  • Mouse support, and --no-mouse when you want to select text
  • Remembers the last folder, volume, shuffle, repeat and language
  • Small terminal friendly: compact layout below 80×24, clear hint below 40×12

Build

Requires a C++20 compiler, CMake ≥ 3.20, and zlib for TagLib. FTXUI and TagLib are downloaded by CMake, while miniaudio and stb_image are vendored.

cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
./build/musica

# install the binary, manual page and documentation
sudo cmake --install build

Use -DMUSICA_SYSTEM_DEPS=ON to build against an installed FTXUI 7 or newer and TagLib 2.0 or newer instead of downloading them. Use -DMUSICA_BUILD_TESTS=ON to build the tests, then run ctest --test-dir build. cpack --config build/CPackConfig.cmake produces a .tar.gz archive as well as .deb and .rpm packages when the matching tools are installed.

The demo GIF is recorded with vhs from synthetic tracks generated by demo/make-media.sh.

Configuration and data

  • State (last folder, volume, shuffle, repeat, language): ~/.config/musica/state (or $XDG_CONFIG_HOME/musica/state)
  • Playlists: ~/.config/musica/playlists/ (or $XDG_CONFIG_HOME/musica/playlists/)
  • Interface language: --lang fr|en (wins over the saved choice), or press L at runtime
  • --no-mouse disables mouse tracking, --help and --version print CLI info

Keys

Key Action
␣ Play / pause
n / b Next / previous track
← / → Seek -5 s / +5 s
+ / - Volume
s / r Shuffle / repeat
j / k Move the selection
h / l Focus the browser / queue
⏎ Play or enter
a / A Add a file / folder
/ Search the active panel (esc clears)
i Track info
x Remove the selected queue track
J / K Move the selected queue track down / up
p / P Manage playlists / add the current track
? Help
L Switch language
q Quit

In the playlists popup: ⏎ load, a add the playlist to the queue, s save the queue, r rename, d delete (with a y/n confirmation).

Mouse: click to select, double-click to play, wheel to scroll, drag the progress and volume bars, click command chips and buttons.

Third-party notices

See THIRD_PARTY_LICENSES.md for the components and licenses bundled or fetched by the build:

License

Musica is released under the MIT license.

Jelajahi proyek terkait

Memuat…