With the mido
package installed:
pip install mido
More command line functions and shortcuts will be available:
x
key to export to .mid
--mid Import song from midi file exported by music box tune tracker
--maniacs Import song from midi files exported from musicboxmaniacs.com
--bpm set bpm
--program change instruments
To use Midi as an audio backend you will need two extra packages:
pip install mido python-rtmidi
And a midi synthesizer: Timidity is a great option, which can be installed under Linux Ubuntu with :
sudo apt install libasound2-dev libjack-dev timidity
and then run with:
timidity -iA -B2,8 -Os1l -s 11100
Under Linux, midi 'Port name' can be listed with
aplaymidi -l
Port Client name Port name
14:0 Midi Through Midi Through Port-0
128:0 TiMidity TiMidity port 0
128:1 TiMidity TiMidity port 1
128:2 TiMidity TiMidity port 2
128:3 TiMidity TiMidity port 3
python src/music_box_tracker.py --port 'TiMidity port 0'