Platforms to show: All Mac Windows Linux Cross-Platform
Back to WindowsMidiMBS class.
WindowsMidiMBS.Connect(output as WindowsMidiOutputMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
self must be a MIDI input device or a MIDI thru device.
output must be the MIDI output or thru device.
After calling this function, the MIDI input device receives event data in an DeviceData event whenever a message with the same event data is sent to the output device driver.
A thru driver is a special form of MIDI output driver. The system will allow only one MIDI output device to be connected to a MIDI input device, but multiple MIDI output devices can be connected to a MIDI thru device. Whenever the given MIDI input device receives event data in an DeviceData event, a message with the same event data is sent to the given output device driver (or through the thru driver to the output drivers).
Lasterror is set.
WindowsMidiMBS.Disconnect(output as WindowsMidiOutputMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
self must be a MIDI input device or a MIDI thru device.
output must be the MIDI output device to be disconnected.
MIDI input, output, and thru devices can be connected by using the Connect function. Thereafter, whenever the MIDI input device receives event data in an DeviceData event, a message with the same event data is sent to the output device driver (or through the thru driver to the output drivers).
Lasterror is set.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Midi events are buffered in data structures. This method dispatches them to the Xojo event handlers.
Call this method as often as you need events to fire. For example every 100ms in a timer.
WindowsMidiMBS.InputDevice(index as Integer) as WindowsMidiInputInfoMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Index is from 0 to NumberOfMidiInputDevices-1.
Some examples using this method:
WindowsMidiMBS.NumberOfMidiInputDevices as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
A return value of zero means that there are no devices.
Some examples using this method:
WindowsMidiMBS.NumberOfMidiOutputDevices as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
A return value of zero means that there are no devices.
Some examples using this method:
WindowsMidiMBS.OutputDevice(index as Integer) as WindowsMidiOutputInfoMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Index is from 0 to NumberOfMidiOutputDevices-1.
Some examples using this method:
The items on this page are in the following plugins: MBS Audio Plugin.