MBS Plugin Documentation

Search:

Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchie

New in Version 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 9.0

The list of the   themes,   classes,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

class MidiPortMBS
class, MIDI, MBS MacOSX Plugin (Midi), class MidiPortMBS, Console safe, Plugin version: 3.1, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: A class for a MIDI port.
Notes:
A MIDIPortMBS, which may be an input port or output port, is an object through which a client may communicate with any number of MIDI sources or destinations.
Subclass of the MidiObjectMBS class.
MidiPortMBS.close
method, MIDI, MBS MacOSX Plugin (Midi), class MidiPortMBS, Console safe, Plugin version: 3.1, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The destructor.
Notes:
There is no need to call this method except you want to free all resources of this object now without waiting for Realbasic to do it for you.
(e.g. some Realbasic versions crash on Windows if there are plugin objects not closed.)
MidiPortMBS.ConnectSource(source as MidiEndpointMBS)
method, MIDI, MBS MacOSX Plugin (Midi), class MidiPortMBS, Console safe, Plugin version: 3.1, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Establish a connection from a source to a client's input port.
Notes: Lasterror is set.
MidiPortMBS.DisconnectSource(source as MidiEndpointMBS)
method, MIDI, MBS MacOSX Plugin (Midi), class MidiPortMBS, Console safe, Plugin version: 3.1, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Close a previously-established source-to-input port connection.
Notes: Lasterror is set.
MidiPortMBS.Read(endpoint as MidiEndpointMBS, list as MidiPacketListMBS)
event, MIDI, MBS MacOSX Plugin (Midi), class MidiPortMBS, Plugin version: 3.3, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Called when data arrives at this port.
Notes:
If more than 256 bytes of data is received, it may be splitted and send in several events.

For some devices a Note Off is just a Note On with a zero velocity.
MidiPortMBS.SetCallback(callback as integer, reference as object)
method, MIDI, MBS MacOSX Plugin (Midi), class MidiPortMBS, Console safe, Plugin version: 6.0, Mac OS X: Works, Windows: Works, Linux x86: Does nothing, Feedback.

Function: 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

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

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