Platforms to show: All Mac Windows Linux Cross-Platform
Back to WindowsMidiOutputMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Closes the device with waiting till device is done.
Handle is set to 0 and lasterror is set.
WindowsMidiOutputMBS.Open(DeviceID as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
DeviceID is from 0 to NumberOfMidiOutputDevices-1.
Lasterror is set.
WindowsMidiOutputMBS.OpenDefault
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
If only one midi output device is available this one is opened.
On success the handle property is not zero.
Lasterror is set.
Some examples using this method:
WindowsMidiOutputMBS.OutputErrorText(errorcode as Integer) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Returns "" on unknown errros.
String returned has Windows ANSI text encoding.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Lasterror is set.
WindowsMidiOutputMBS.SendData(data as memoryblock)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 12.5 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Lasterror is set.
See also
http://msdn.microsoft.com/en-us/library/windows/desktop/dd798474(v=vs.85).aspx
See also:
WindowsMidiOutputMBS.SendData(data as memoryblock, size as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Lasterror is set.
size is the size of the memoryblock to use. A wrong value will crash the application.
See also
http://msdn.microsoft.com/en-us/library/windows/desktop/dd798474(v=vs.85).aspx
See also:
WindowsMidiOutputMBS.SendData(data as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Lasterror is set.
See also
http://msdn.microsoft.com/en-us/library/windows/desktop/dd798474(v=vs.85).aspx
The plugin prepares MIDIHDR structure and uses your data there.
See also:
WindowsMidiOutputMBS.SendMessage(message as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
The message is stored in one 32bit integer.
lowest 8 bit is status, second 8 bit is data1, third 8 bit is data2 and highest 8 bit is left 0.
Between sending note on and off messages, you need to leave time for actual playback.
Lasterror is set.
See also
http://msdn.microsoft.com/en-us/library/windows/desktop/dd798481(v=vs.85).aspx
See also:
WindowsMidiOutputMBS.SendMessage(status as Integer, data1 as Integer, data2 as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Lasterror is set.
Between sending note on and off messages, you need to leave time for actual playback.
see also
http://msdn.microsoft.com/en-us/library/windows/desktop/dd798481(v=vs.85).aspx
See also:
WindowsMidiOutputMBS.Volume as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | MIDI | MBS Audio Plugin | 6.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
Not all devices can set the volume.
Lasterror is set.
The low-order word contains the left-channel volume setting, and the high-order word contains the right-channel setting. A value of &hFFFF represents full volume, and a value of &h0000 is silence.
If a device does not support both left and right volume control, the low-order word of dwVolume specifies the mono volume level, and the high-order word is ignored.
(Read and Write computed property)
The items on this page are in the following plugins: MBS Audio Plugin.