supriya_midi.rtmidi_ext

Low-level Python/RtMidi bindings.

Note

Please use the higher-level classes defined in supriya_midi.core instead.

class RtMidiAPI(*values)
UNSPECIFIED = 0
MACOSX_CORE = 1
LINUX_ALSA = 2
UNIX_JACK = 3
WINDOWS_MM = 4
WEB_MIDI = 6
RTMIDI_DUMMY = 5
class RtMidiErrorType(*values)
WARNING = 0
DEBUG_WARNING = 1
UNSPECIFIED = 2
NO_DEVICES_FOUND = 3
INVALID_DEVICE = 4
MEMORY_ERROR = 5
INVALID_PARAMETER = 6
INVALID_USE = 7
DRIVER_ERROR = 8
SYSTEM_ERROR = 9
THREAD_ERROR = 10
class RtMidi
close_port(self) None
get_api_display_name = <nanobind.nb_func object>
get_api_name = <nanobind.nb_func object>
get_compiled_api = <nanobind.nb_func object>
get_compiled_api_by_name = <nanobind.nb_func object>
get_port_count(self) int
get_port_name(self, port_number: int = 0) str
get_version = <nanobind.nb_func object>
open_port(self, port_number: int = 0, port_name: str = 'RtMidi') None
open_virtual_port(self, port_name: str = 'RtMidi') None
set_client_name(self, client_name: str) None
set_error_callback(self, callback: collections.abc.Callable, data: object | None = None) None
set_port_name(self, port_name: str) None
class RtMidiIn(*args, **kwargs)
cancel_callback(self) None
get_current_api(self) supriya_midi.rtmidi_ext.RtMidiAPI
get_message(self) tuple[list[int], float]
ignore_types(self, sysex: bool = True, timing: bool = True, active_sense: bool = True) None
set_buffer_size(self, size: int = 1024, count: int = 4) None
set_callback(self, callback: collections.abc.Callable, data: object | None = None) None
class RtMidiOut(*args, **kwargs)
get_current_api(self) supriya_midi.rtmidi_ext.RtMidiAPI
send_message(self, message: collections.abc.Sequence[int]) None