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

OpenPort

RtMidiIn:OpenPort(number port)

Description

Opens a port to receive messages from.

Only one port can be open at a time per RtMidiIn instance.
If you need to receive messages from multiple ports simultaneously, create another RtMidiIn instance with rtmidi.CreateInput.

Arguments

  1. number port
    The port number.