Skip to main content
gmcl_rtmidi
Realtime MIDI for Garry's Mod
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

CreateInput

RtMidiIn rtmidi.CreateInput(number api = rtmidi.API.UNSPECIFIED, string client_name = "Garry's Mod Input Client", number queue_size = 100)

Description

Creates a new instance of the RtMidiIn class.

Arguments

  1. 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)
  2. string client_name = "Garry's Mod Input Client"
    The name of the MIDI client.
  3. 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.

Returns

  1. RtMidiIn
    The created RtMidiIn instance.