A class implementing a MIDI output.
EXPERIMENTAL!
Due to a bug in Pygame’s midi module, closing a MidiOut (or the programme) will cause an error message. Until this is fixed in Pygame, MidiOut will stay in extras.
Methods
Create a MIDI output.
Parameters : | device : int or str
latency : int, optional
buffer_size : int, optional
|
---|
Terminates outgoing messages immediately.
Getter for buffer_size.
Close the MIDI interface.
Parameters : | abort : bool, optional
|
---|
Get a list of all MIDI output devices connected to the system.
Getter for id.
Getter for latency.
Select an instrument.
Parameters : | instrument_id : int
channel : int, optional
|
---|
Send a list of MIDI events.
Parameters : | event_list : list
|
---|
Notes
The data fields are optional.
Send a note-off event.
Parameters : | note : int
velocity : int, optional
channel : int, optional
|
---|
Send a note-on event.
Parameters : | note : int
velocity : int, optional
channel : int, optional
|
---|
Send MIDI events of 3 bytes or less.
Parameters : | status : int
data1 : int, optional
data2 : int, optional
|
---|
Send a System Exlusive message.
Parameters : | timestamp : int
message : sit or list
|
---|