CreateInput
RtMidiIn rtmidi.CreateInput(number api = rtmidi.API.UNSPECIFIED, string client_name = "Garry's Mod Input Client", number queue_size = 100)
Creates a new instance of the RtMidiIn class.
- number
api = rtmidi.API.UNSPECIFIED
The MIDI API to use. See the rtmidi.API enumerations.
The default value,rtmidi.API.UNSPECIFIED, will choose a supported API automatically.
Specifying this argument is only useful when using an alternative API (e.g. JACK) - string
client_name = "Garry's Mod Input Client"
The name of the MIDI client. - number
queue_size = 100
The maximum number of received messages to store in memory.
Once this limit is reached, the oldest message in the queue will be discarded to make space for new messages.
- RtMidiIn
The created RtMidiIn instance.