Closed JPry closed 8 years ago
ALSA MIDI endpoints are identified using two integers. If you use this script, it will show you the address pair that maps to your TiMidity endpoint. Please see the documentation for more information.
Thanks for the guidance @vishnubob! I didn't realize at first that "port" referred to the ports within a MIDI endpoint instead of the endpoint itself. I was able to get it working!
I'm trying to use the included
midiplay.py
file on a Raspberry Pi. I have Alsa and Timidity installed, and I'm able to play midi files directly from the command line using the tools provided by those libraries. However, I want to work with the midi data using Python at the same time as the music is playing. I'm trying to use themidiplay.py
file to simply play the includedmary.mid
file, but it doesn't seem to be working.Here's the output when trying to play using the TiMidity sequencer:
Using the Python console to examine the sequencer object, I can see that
TiMidity
should indeed be a valid sequencer:It appears that the sequencer library is attempting to convert the
TiMidity
string to an int for some reason. Am I doing something wrong here, or is this a bug?