Skip to main content

Terminal music player with real-time audio visualizer themes

Project description

music-tui

A terminal music player with real-time audio visualizer themes, built with Python + mpv.

 ๐ŸŽต Music TUI   โ–ฒ Fire
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ–ถ CITYWLKR - Immortal                     Keys
  Song Two                                j / โ†“    Move down
  Song Three                              k / โ†‘    Move up
                                          Enter    Play selected
                                          Space    Play / Pause
                                          n        Next track
                                          p        Prev track
                                          โ† / โ†’   Seek ยฑ5 s
                                          +/-      Volume
                                          m        Mute
                                          s        Shuffle
                                          r        Repeat
                                          t        Next theme
                                          q        Quit
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  โ–ฒโ–ฒ  โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆ  โ–ˆโ–ˆ  โ–ˆโ–ˆโ–ˆโ–ˆ โ–ฒโ–ฒโ–ฒ โ–ˆโ–ˆโ–ˆโ–ˆ  โ–ˆโ–ˆโ–ˆ โ–ฒโ–ฒ  โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ–ถ  CITYWLKR - Immortal
   01:23 / 03:45   36%
   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘
   vol: +/-   mute: m   seek: โ†โ†’   theme: t

Features

  • Browse and play audio files from ~/Music (recursive)
  • Supports .mp3, .flac, .wav, .ogg, .m4a, .aac, .opus, .wma
  • 6 visualizer themes โ€” cycle with t:
    • โ–‡ Bars โ€” smooth sub-character bars, green โ†’ yellow โ†’ red
    • โˆฟ Wave โ€” filled waveform with a bright crest line
    • โ—ˆ Spectrum โ€” symmetric bars expanding from center
    • โŒ˜ Matrix โ€” green falling matrix characters
    • โ˜… Neon โ€” rainbow frequency bars
    • โ–ฒ Fire โ€” heat-gradient bars, white-hot at the base
  • Real FFT visualization from PulseAudio monitor (when sounddevice+numpy installed)
  • Animated fallback visualizer when audio capture is unavailable
  • Shuffle, repeat, seek, volume control

Requirements

  • Linux with mpv installed
  • Python 3.9+
# Ubuntu / Debian
sudo apt install mpv

Installation

pip install music-tui

For real-time FFT visualization (reads audio from PulseAudio):

pip install "music-tui[visualizer]"

Usage

music-tui

Drop audio files into ~/Music (any subfolder works) and launch.

Keyboard shortcuts

Key Action
j / โ†“ Move down
k / โ†‘ Move up
Enter Play selected
Space Play / Pause
n / p Next / Previous track
โ† / โ†’ Seek ยฑ5 seconds
+ / - Volume up / down
m Mute
s Toggle shuffle
r Toggle repeat
t Cycle visualizer theme
q Quit

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sahil_music_tui-0.1.1.tar.gz (10.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sahil_music_tui-0.1.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file sahil_music_tui-0.1.1.tar.gz.

File metadata

  • Download URL: sahil_music_tui-0.1.1.tar.gz
  • Upload date:
  • Size: 10.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sahil_music_tui-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b997c6e22eefdefdc6d8ced66a3f701a908b0b85c1ce7e76177f495f25f2bac9
MD5 5718182048168df9d050a817ca38238d
BLAKE2b-256 2ecf2cea5db0937f04b80f1d59f060d7bdb8d1eb86f883bd9db2076496f6b834

See more details on using hashes here.

File details

Details for the file sahil_music_tui-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sahil_music_tui-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 586c9e18c323468ac7a5b1c4a05fa5445e37a91bf72e8706a151c29bd299c4f9
MD5 a7214a273c61c90ad0003feae93b8c7d
BLAKE2b-256 16821fe8e7506079292270fa81f8769860b4b81ce46853c9cdaec7d0285da23a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page