portmidi

Cross-platform library for real-time MIDI input/output

brewmacoslinux
Try with needOr install directly
Source

About

Cross-platform library for real-time MIDI I/O

Commands

portmidi

Examples

List available MIDI input and output devices$ portmidi -l
Use portmidi in a C/C++ project by including the header$ gcc -I/usr/local/include -L/usr/local/lib -lportmidi myprogram.c -o myprogram
Access portmidi in Python using python-midi libraries$ python3 -c "import mido; print(mido.get_input_names())"