Platforms to show: All Mac Windows Linux Cross-Platform
class PortMidiMBS
class, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The PortMidi library wrapped for use in Realbasic.
Notes:
Error codes:
class, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The PortMidi library wrapped for use in Realbasic.
Notes:
Error codes:
| const pmNoError | = 0 |
| const pmHostError | = -10000 |
| const pmInvalidDeviceId | = -9999 |
| const pmInsufficientMemory | = -9998 |
| const pmBufferTooSmall | = -9997 |
| const pmBufferOverflow | = -9996 |
| const pmBadPtr | = -9995 |
| const pmBadData | = -9994 |
| const pmInternalError | = -9993 |
| const pmBufferMaxSize | = -9992 |
PortMidiMBS.CountDevices as integer
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Counts the devices.
Notes: Returns 0 on any error.
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Counts the devices.
Notes: Returns 0 on any error.
PortMidiMBS.DefaultInputDeviceID as integer
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Returns the default device ID or pmNoDevice (-1) if there are no devices.
Notes:
On the PC, the user can specify a default device by setting an environment variable. For example, to use device #1.
set PM_RECOMMENDED_OUTPUT_DEVICE=1
The user should first determine the available device ID by using the supplied application "testin" or "testout".
In general, the registry is a better place for this kind of info, and with USB devices that can come and go, using integers is not very reliable for device identification. Under Windows, if PM_RECOMMENDED_OUTPUT_DEVICE (or PM_RECOMMENDED_INPUT_DEVICE) is *NOT* found in the environment, then the default device is obtained by looking for a string in the registry under: HKEY_LOCAL_MACHINE/SOFTWARE/PortMidi/Recommended_Input_Device and HKEY_LOCAL_MACHINE/SOFTWARE/PortMidi/Recommended_Output_Device for a string. The number of the first device with a substring that matches the string exactly is returned. For example, if the string in the registry is "USB", and device 1 is named "In USB MidiSport 1x1", then that will be the default input because it contains the string "USB".
To specify both the interface and the device name in the registry, separate the two with a comma and a space, e.g.:
MMSystem, In USB MidiSport 1x1
In this case, the string before the comma must be a substring of the "interf" string, and the string after the space must be a substring of the "name" name string in order to match the device.
Note: in the current release, the default is simply the first device (the input or output device with the lowest PmDeviceID).
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Returns the default device ID or pmNoDevice (-1) if there are no devices.
Notes:
On the PC, the user can specify a default device by setting an environment variable. For example, to use device #1.
set PM_RECOMMENDED_OUTPUT_DEVICE=1
The user should first determine the available device ID by using the supplied application "testin" or "testout".
In general, the registry is a better place for this kind of info, and with USB devices that can come and go, using integers is not very reliable for device identification. Under Windows, if PM_RECOMMENDED_OUTPUT_DEVICE (or PM_RECOMMENDED_INPUT_DEVICE) is *NOT* found in the environment, then the default device is obtained by looking for a string in the registry under: HKEY_LOCAL_MACHINE/SOFTWARE/PortMidi/Recommended_Input_Device and HKEY_LOCAL_MACHINE/SOFTWARE/PortMidi/Recommended_Output_Device for a string. The number of the first device with a substring that matches the string exactly is returned. For example, if the string in the registry is "USB", and device 1 is named "In USB MidiSport 1x1", then that will be the default input because it contains the string "USB".
| In addition to the name, PmDeviceInfo has the member "interf", which is the interface name. (The "interface" is the underlying software system or API used by PortMidi to access devices. Examples are | MMSystem, DirectX (not implemented), ALSA, OSS (not implemented), etc.) At present, the only Win32 interface is "MMSystem", the only Linux interface is "ALSA", and the only Max OS X interface is "CoreMIDI". |
MMSystem, In USB MidiSport 1x1
In this case, the string before the comma must be a substring of the "interf" string, and the string after the space must be a substring of the "name" name string in order to match the device.
Note: in the current release, the default is simply the first device (the input or output device with the lowest PmDeviceID).
PortMidiMBS.DefaultOutputDeviceID as integer
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Returns the default device ID or pmNoDevice (-1) if there are no devices.
Notes:
On the PC, the user can specify a default device by setting an environment variable. For example, to use device #1.
set PM_RECOMMENDED_OUTPUT_DEVICE=1
The user should first determine the available device ID by using the supplied application "testin" or "testout".
In general, the registry is a better place for this kind of info, and with USB devices that can come and go, using integers is not very reliable for device identification. Under Windows, if PM_RECOMMENDED_OUTPUT_DEVICE (or PM_RECOMMENDED_INPUT_DEVICE) is *NOT* found in the environment, then the default device is obtained by looking for a string in the registry under: HKEY_LOCAL_MACHINE/SOFTWARE/PortMidi/Recommended_Input_Device and HKEY_LOCAL_MACHINE/SOFTWARE/PortMidi/Recommended_Output_Device for a string. The number of the first device with a substring that matches the string exactly is returned. For example, if the string in the registry is "USB", and device 1 is named "In USB MidiSport 1x1", then that will be the default input because it contains the string "USB".
To specify both the interface and the device name in the registry, separate the two with a comma and a space, e.g.:
MMSystem, In USB MidiSport 1x1
In this case, the string before the comma must be a substring of the "interf" string, and the string after the space must be a substring of the "name" name string in order to match the device.
Note: in the current release, the default is simply the first device (the input or output device with the lowest PmDeviceID).
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Returns the default device ID or pmNoDevice (-1) if there are no devices.
Notes:
On the PC, the user can specify a default device by setting an environment variable. For example, to use device #1.
set PM_RECOMMENDED_OUTPUT_DEVICE=1
The user should first determine the available device ID by using the supplied application "testin" or "testout".
In general, the registry is a better place for this kind of info, and with USB devices that can come and go, using integers is not very reliable for device identification. Under Windows, if PM_RECOMMENDED_OUTPUT_DEVICE (or PM_RECOMMENDED_INPUT_DEVICE) is *NOT* found in the environment, then the default device is obtained by looking for a string in the registry under: HKEY_LOCAL_MACHINE/SOFTWARE/PortMidi/Recommended_Input_Device and HKEY_LOCAL_MACHINE/SOFTWARE/PortMidi/Recommended_Output_Device for a string. The number of the first device with a substring that matches the string exactly is returned. For example, if the string in the registry is "USB", and device 1 is named "In USB MidiSport 1x1", then that will be the default input because it contains the string "USB".
| In addition to the name, PmDeviceInfo has the member "interf", which is the interface name. (The "interface" is the underlying software system or API used by PortMidi to access devices. Examples are | MMSystem, DirectX (not implemented), ALSA, OSS (not implemented), etc.) At present, the only Win32 interface is "MMSystem", the only Linux interface is "ALSA", and the only Max OS X interface is "CoreMIDI". |
MMSystem, In USB MidiSport 1x1
In this case, the string before the comma must be a substring of the "interf" string, and the string after the space must be a substring of the "name" name string in order to match the device.
Note: in the current release, the default is simply the first device (the input or output device with the lowest PmDeviceID).
PortMidiMBS.DeviceInfo(DeviceID as integer) as PortMidiDeviceInfoMBS
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Returns information about a certain device.
Notes: Returns nil on any error.
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Returns information about a certain device.
Notes: Returns nil on any error.
PortMidiMBS.ErrorText(ErrorNumber as integer) as string
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The error text for the given error code.
Notes: Returns "" on any error.
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 5.2, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: The error text for the given error code.
Notes: Returns "" on any error.
PortMidiMBS.pmBadData = -9994
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
Notes: illegal midi data, e.g. missing EOX
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
Notes: illegal midi data, e.g. missing EOX
PortMidiMBS.pmBadPtr = -9995
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
PortMidiMBS.pmBufferMaxSize = -9992
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
Notes: buffer is already as large as it can be.
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
Notes: buffer is already as large as it can be.
PortMidiMBS.pmBufferOverflow = -9996
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
PortMidiMBS.pmBufferTooSmall = -9997
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
PortMidiMBS.pmHostError = -10000
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
PortMidiMBS.pmInsufficientMemory = -9998
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
PortMidiMBS.pmInternalError = -9993
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
PortMidiMBS.pmInvalidDeviceId = -9999
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
Notes: out of range or output device when input is requested or input device when output is requested or device is already opened.
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
Notes: out of range or output device when input is requested or input device when output is requested or device is already opened.
PortMidiMBS.pmNoDevice = -1
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
PortMidiMBS.pmNoError = 0
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
const, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: One of the PortMidi errors.
PortMidiMBS.ReInitialize as integer
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Shuts down PortMidi and initializes it again.
Notes:
As PortMidi does not recognize the attachment of new MIdi devices, you can only reinitialize.
Returns a PortMidi error code.
method, MIDI, MBS REALbasic Audio Plugin (PortMidi), class PortMidiMBS, Console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Works, Linux x86: Works, Feedback.
Function: Shuts down PortMidi and initializes it again.
Notes:
As PortMidi does not recognize the attachment of new MIdi devices, you can only reinitialize.
Returns a PortMidi error code.
The items on this page are in the following plugins: MBS REALbasic Audio Plugin.
Links
MBS Realbasic Chart Plugins - Nachhilfe Nickenich