Miniature beep-boop MIDI player for Python. Good for audio alerts, debugging and such!
Single-line install for *nix + Git Bash (installs all required Python packages, downloads 'Moonlight Sonata' and plays all three movements of it):
git clone https://github.com/FlyingFathead/moonlighter/ && cd moonlighter && python moonlighter.py --deploy
First, clone the repo with:
git clone https://github.com/FlyingFathead/moonlighter
then:
cd moonlighter
install the prerequisite pip
packages:
pip install -U numpy sounddevice soundfile mido pydub requests
(requests
is only used by --deploy
, but it's a recommended module)
Play with your favorite midi file:
python moonlighter.py /path/to/your/midi/file.mid
Dump the midi to mp3:
python moonlighter.py /path/to/your/midi/file.mid --dump output.mp3
Adjust the beeps and boops, a.k.a. note length (in seconds):
python moonlighter.py /path/to/your/midi/file.mid --notelength 0.1
(adjusts the note length to 0.1 sec)
v1.16
- bug fixes, all three movementsv1.08
- small bug fixes (mp3 export bug)v1.07
- Note length adjustment with--notelength
added
- by FlyingFathead (w/ ghostcode by ChaosWhisperer)
- https://github.com/FlyingFathead/moonlighter/