Various experiments how to transform data to music or at least sounds.
Create virtualenv and install python modules:
pip install -r requirements.txt
Midiutil normally creates a .mid file, which can be played, for example, which VLC.
Install fluidsynth, if you want to use python-rtmidi (realtime midi) to play tunes in realtime.
brew install fluid-synth
In addition, you need to download FluidR3_GM.sf2 for example here. Unzip the archive and place the soundfont file in this directory.
Running flounsynth creates virtual midi device which can be used from python-rtmidi.
fluidsynth -o midi.driver=coremidi -o audio.driver=coreaudio -o audio.coreaudio.device=default -o audio.period-size=256 FluidR3_GM.sf2
fluidsynth -F out.wav FluidR3_GM.sf2 source.mid