Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsMidiStreamMBS class.

WindowsMidiStreamMBS.Close

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS Audio Plugin 6.1 ❌ No ✅ Yes ❌ No ❌ No All
Closes the Midi stream.

WindowsMidiStreamMBS.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
Opens a MIDI stream for output.

By default, the device is opened in paused mode.
Lasterror is set.
DeviceID: The device is opened on behalf of the stream and closed again when the stream is closed.

WindowsMidiStreamMBS.Pause

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS Audio Plugin 6.1 ❌ No ✅ Yes ❌ No ❌ No All
Pauses playback of a specified MIDI stream.

Lasterror is set.

WindowsMidiStreamMBS.PositionBytes as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS Audio Plugin 6.1 ❌ No ✅ Yes ❌ No ❌ No All
Position of the stream in bytes.

Lasterror is set.

WindowsMidiStreamMBS.PositionMS as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS Audio Plugin 6.1 ❌ No ✅ Yes ❌ No ❌ No All

Position of the stream in milliseconds.

Lasterror is set.

WindowsMidiStreamMBS.PositionSamples as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS Audio Plugin 6.1 ❌ No ✅ Yes ❌ No ❌ No All
Position of the stream in samples.

Lasterror is set.

WindowsMidiStreamMBS.PositionTicks as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS Audio Plugin 6.1 ❌ No ✅ Yes ❌ No ❌ No All
Position of the stream in ticks.

Lasterror is set.

WindowsMidiStreamMBS.Restart

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS Audio Plugin 6.1 ❌ No ✅ Yes ❌ No ❌ No All
The Restart function restarts a paused MIDI stream.

Lasterror is set.

WindowsMidiStreamMBS.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
Sends a short midi message immediately.
Example
dim o as WindowsMidiStreamMBS // your midi stream

// &h90 = Note down
// &h43 = the note number
// &h40 = the velocity
o.SendMessage &h404390

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:

WindowsMidiStreamMBS.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
Sends a short midi message immediately.
Example
dim o as WindowsMidiStreamMBS // your midi stream

// &h90 = Note down
// &h3C = the note number
// &h40 = the velocity
o.SendMessage &h90, &h3C, &h40

Lasterror is set.
Between sending note on and off messages, you need to leave time for actual playback.

See also:

WindowsMidiStreamMBS.Stop

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MIDI MBS Audio Plugin 6.1 ❌ No ✅ Yes ❌ No ❌ No All
The Stop function turns off all notes on all MIDI channels for the specified MIDI output device.

Lasterror is set.

WindowsMidiStreamMBS.Tempo as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MIDI MBS Audio Plugin 6.1 ❌ No ✅ Yes ❌ No ❌ No All
Tempo of the stream, in microseconds per quarter note.

The tempo is honored only if the time division for the stream is specified in quarter note format.
Lasterror is set.
(Read and Write computed property)

WindowsMidiStreamMBS.TimeDiv as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MIDI MBS Audio Plugin 6.1 ❌ No ✅ Yes ❌ No ❌ No All
Time division for this stream, in the format specified in the Standard MIDI Files 1.0 specification.

The low 16 bits of this integer value contain the time division.
Lasterror is set.
(Read and Write computed property)

WindowsMidiStreamMBS.Volume as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property MIDI MBS Audio Plugin 6.1 ❌ No ✅ Yes ❌ No ❌ No All
The volume to be used for this stream.
Example
dim m as WindowsMidiStreamMBS // your midi stream

m.Volume=0 // all silent
m.Volume=&hFFFF0000 // right only
m.Volume=&h0000FFFF // left only or max volume for mono device
m.Volume=&h7FFF7FFF // half volume for both channels

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.
Lasterror is set.
(Read and Write computed property)

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


The biggest plugin in space...