Platforms to show: All Mac Windows Linux Cross-Platform
PortMidiStreamMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | MIDI | MBS Audio Plugin | 5.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
A single PortMidiStream is a descriptor for an open MIDI device.
See also macOS specific classes AVMIDIPlayerMBS, MidiPlaybackMBS and MidiClientMBS.
- 4 properties
- property ChannelMask as Integer
- property DeviceID as Integer
- property DeviceName as String
- property Filters as Integer
- 14 methods
- method Abort as Integer
- method Close
- method ErrorText(ErrorNumber as Integer) as string
- method HostError as string
- method OpenInput(DeviceID as Integer, Buffersize as Integer) as Integer
- method OpenOutput(DeviceID as Integer, Buffersize as Integer, Latency as Integer) as Integer
- method Poll as Integer
- method Read(byref data as PortMidiEventMBS) as Integer
- method SetChannelMask(mask as Integer) as Integer
- method SetFilter(filters as Integer) as Integer
- method Write(data as PortMidiEventMBS) as Integer
- method WriteShort(When as Integer, message as Integer) as Integer
- method WriteSysEx(When as Integer, message as memoryblock, offset as Integer) as Integer
- method WriteSysEx(When as Integer, message as string) as Integer
- shared method currentTimeStamp as Integer
- 21 constants
Constants
Constant | Value | Description |
---|---|---|
FilterActive | &h4000 |
One of the PortMidi filter constants.
filter active sensing messages (&hFE) |
FilterAftertouch | &h6000000 |
One of the PortMidi filter constants.
filter both channel and poly aftertouch |
FilterChannelAftertouch | &h20000000 |
One of the PortMidi filter constants.
filter channel aftertouch (most midi controllers use this) (&hD0-&hDF) |
FilterClock | &h1D00 |
One of the PortMidi filter constants.
filter clock messages (CLOCK &hF8, START &hFA, STOP &hFC, and CONTINUE &hFB) |
FilterControl | &h8000000 |
One of the PortMidi filter constants.
Control Changes (CC's) (&hB0-&hBF) |
FilterFD | &h2000 |
One of the PortMidi filter constants.
filter undefined FD messages |
FilterMTC | 2 |
One of the PortMidi filter constants.
MIDI Time Code (&hF1) |
FilterNote | &h3000000 |
One of the PortMidi filter constants.
filter note-on and note-off (&h90-&h9F and &h80-&h8F |
FilterPitchBend | &h40000000 |
One of the PortMidi filter constants.
Pitch Bender (&hE0-&hEF) |
FilterPlay | &h400 |
One of the PortMidi filter constants.
filter play messages (start &hFA, stop &hFC, continue &hFB) |
FilterPolyAftertouch | &h4000000 |
One of the PortMidi filter constants.
per-note aftertouch (&hA0-&hAF) |
FilterProgram | &h10000000 |
One of the PortMidi filter constants.
Program changes (&hC0-&hCF) |
FilterRealTime | &hFF01 |
One of the PortMidi filter constants.
filter all real-time messages |
FilterReset | &h8000 |
One of the PortMidi filter constants.
filter reset messages (&hFF) |
FilterSongPosition | 4 |
One of the PortMidi filter constants.
Song Position (&hF2) |
FilterSongSelect | 8 |
One of the PortMidi filter constants.
Song Select (&hF3) |
FilterSysEx | 1 |
One of the PortMidi filter constants.
filter system exclusive messages (&hF0) |
FilterSystemCommon | &h4E |
One of the PortMidi filter constants.
All System Common messages (mtc, song position, song select, tune request) |
FilterTick | &h200 |
One of the PortMidi filter constants.
filter tick messages (&hF9) |
FilterTune | &h40 |
One of the PortMidi filter constants.
Tuning request (&hF6) |
FilterUndefined | &h2000 |
One of the PortMidi filter constants.
filter undefined real-time messages |
This class has no sub classes.
Some examples using this class:
Blog Entries
- MonkeyBread Software Releases the MBS Xojo plug-ins in version 17.0
- MBS Xojo / Real Studio Plugins, version 17.0pr4
- MBS Xojo / Real Studio Plugins, version 17.0pr1
Xojo Developer Magazine
Release notes
- Version 17.0
- Added DeviceID and DeviceName to PortMidiStreamMBS class.
- Added PortMidiStreamMBS.currentTimeStamp.
The items on this page are in the following plugins: MBS Audio Plugin.
PortMidiMBS - PostgreSQLAPIMBS