midi
Platypush documentation
midi
- class platypush.plugins.midi.MidiPlugin(device_name='Platypush virtual MIDI output', **kwargs)[source]
Bases:
Plugin
Virtual MIDI controller plugin. It allows you to send custom MIDI messages to any connected devices.
Requires:
python-rtmidi (
pip install python-rtmidi
)
- __init__(device_name='Platypush virtual MIDI output', **kwargs)[source]
- Parameters:
device_name (str) – MIDI virtual device name (default: Platypush virtual MIDI output)
- release_note(note)[source]
Release a played note.
- Parameters:
note (int) – MIDI note in range 0-127 with #60 = C4
- send_message(values)[source]
- Parameters:
values (list[int]) – Values is expected to be a list containing the MIDI command code and the command parameters - see reference at https://ccrma.stanford.edu/~craig/articles/linuxmidi/misc/essenmidi.html
- Available MIDI commands:
0x80
Note Off0x90
Note On0xA0
Aftertouch0xB0
Continuous controller0xC0
Patch change0xD0
Channel Pressure0xE0
Pitch bend0xF0
Start of system exclusive message0xF1
MIDI Time Code Quarter Frame (Sys Common)0xF2
Song Position Pointer (Sys Common)0xF3
Song Select0xF6
Tune Request (Sys Common)0xF7
End of system exclusive message0xF8
Timing Clock (Sys Realtime)0xFA
Start (Sys Realtime)0xFB
Continue (Sys Realtime)0xFC
Stop (Sys Realtime)0xFE
Active Sensing (Sys Realtime)0xFF
System Reset (Sys Realtime)