Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Component: PortMidi

Access Midi devices and send/receive midi notes.

Version macOS Windows Linux Server iOS SDK
4.2 / 13.0 ✅ Yes ✅ Yes ❌ No 🔶 4%, on macOS and Windows ❌ No

Item Details
PortMidi.Abort
Terminates outgoing messages immediately.
Mac/Win
4.2
PortMidi.CheckHostError
Checks if there is a midi host error on the stream.
Mac/Win
4.2
PortMidi.ClearDataAvailableHandler
Clears the data available handler.
Mac/Win
8.5
PortMidi.Close
Closes a midi stream, flushing any pending buffers.
Mac/Win
4.2
PortMidi.CurrentEvent
Queries current event.
Mac/Win
7.1
PortMidi.DeviceCount
Queries number of devices found.
Mac/Win
4.2
PortMidi.GetChannelMask
Queries current channel mask.
Mac/Win
4.2
PortMidi.GetDefaultInputDeviceID
Return the default input device ID.
Mac/Win
4.2
PortMidi.GetDefaultOutputDeviceID
Return the default output device ID.
Mac/Win
4.2
PortMidi.GetDeviceID
Queries the ID of the device the stream is connected to.
Mac/Win
7.0
PortMidi.GetDeviceInfo
Return device information.
Mac/Win
4.2
PortMidi.GetDeviceName
Queries the name of the device the stream is connected to.
Mac/Win
7.0
PortMidi.GetFilter
Queries current filter setting.
Mac/Win
4.2
PortMidi.List
Lists all IDs of midi objects.
Mac/Win
13.0
PortMidi.OpenInput
Opens an input device.
Mac/Win
4.2
PortMidi.OpenOutput
Opens an output device.
Mac/Win
4.2
PortMidi.Poll
Tests whether input is available.
Mac/Win
4.2
PortMidi.ReadMessage
Reads one Midi message from the buffers.
Mac/Win
4.2
PortMidi.Rescan
Terminates all streams and shutdown the midi functions.
Mac/Win
4.2
PortMidi.SendMessage
Sends a midi message.
Mac/Win
4.2
PortMidi.SendMessageRaw
Sends a raw message.
Mac/Win
4.2
PortMidi.SendSysExHex
Writes a timestamped system-exclusive midi message.
Mac/Win
4.2
PortMidi.SetChannelMask
Filters incoming messages based on channel.
Mac/Win
4.2
PortMidi.SetDataAvailableEvaluate
Sets the data available evaluation for this midi port.
Mac/Win
8.5
PortMidi.SetDataAvailableHandler
Sets the data available handler for this midi port.
Mac/Win
8.5
PortMidi.SetFilter
Sets filters on an open input stream to drop selected input types.
Mac/Win
4.2
PortMidi.TimeStamp
Queries current time stamp.
Mac/Win
7.0

27 functions shown.

These functions require a license (85%).

Release notes

Blog Entries

Example Databases