Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:pymidi [2025/02/06 03:22] – darron | tools:pymidi [2025/02/09 12:07] (current) – darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====Python midi==== | ||
+ | |||
+ | Midi I/O using Python3. | ||
+ | |||
+ | ===Setup=== | ||
+ | |||
+ | Install [[https:// | ||
+ | |||
+ | < | ||
sudo apt install python3-rtmidi | sudo apt install python3-rtmidi | ||
+ | </ | ||
+ | |||
+ | ===Test=== | ||
+ | |||
+ | < | ||
+ | mkdir -p ~/src && cd ~/src | ||
+ | git clone https:// | ||
+ | cd python-rtmidi/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | python3 sequencer/ | ||
+ | Creating MidiOut object. | ||
+ | Do you want to create a virtual MIDI output port? (y/N) n | ||
+ | Available MIDI ports: | ||
- | https:// | + | [0] Midi Through:Midi Through Port-0 14:0 |
+ | [1] Origin25: | ||
+ | [2] E-MU XMidi2X2: | ||
+ | [3] E-MU XMidi2X2: | ||
- | https://github.com/ | + | Select MIDI output port (Control-C to exit): 3 |
+ | Opening MIDI output port #3 (E-MU XMidi2X2: | ||
+ | </code> |