Platforms to show: All Mac Windows Linux Cross-Platform

Back to MidiPortMBS class.

MidiPortMBS.close

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The destructor.

There is no need to call this method except you want to free all resources of this object now without waiting for Xojo to do it for you.

MidiPortMBS.ConnectSource(source as MidiEndpointMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Establish a connection from a source to a client's input port.

Lasterror is set.

Some examples using this method:

MidiPortMBS.DisconnectSource(source as MidiEndpointMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Close a previously-established source-to-input port connection.

Lasterror is set.

Some examples using this method:

MidiPortMBS.SetCallback(callback as Integer, reference as object)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS MacCF Plugin 6.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Connects the MidiPort to send data to given MidiPlayback reference.
Example
dim p as MidiPlaybackMBS
dim m as MidiPortMBS
// do something useful
m.SetCallback p.Callback, p

The method is to be used together with the Callback function in the MidiPlaybackMBS class.
Read event is still being called if needed.

You can call again with 0 as callback to clear it.

Some examples using this method:

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...