Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVAudioUnitMIDIInstrumentMBS class.

AVAudioUnitMIDIInstrumentMBS.Constructor(audioComponentDescription as AVAudioComponentDescriptionMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes a MIDI instrument audio unit with the specified component description.

description: The AudioComponentDescription struct. The component of type must be kAudioUnitType_MusicDevice or kAudioUnitType_RemoteInstrument.

AVAudioUnitMIDIInstrumentMBS.sendController(Controller as Integer, Value as Integer, Channel as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Send a MIDI “controller” event to the instrument.

controller: Specifies a standard MIDI controller number. The valid range is 0 to 127.
value: Value for the controller. The valid range is 0 to 127.
channel: The channel number to which the event is sent.

AVAudioUnitMIDIInstrumentMBS.sendMIDIEvent(midiStatus as Integer, data1 as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Sends a MIDI event which contains one data byte to the instrument.

midiStatus: The STATUS value of the MIDI event.
data1: The data byte of the MIDI event.

See also:

AVAudioUnitMIDIInstrumentMBS.sendMIDIEvent(midiStatus as Integer, data1 as Integer, data2 as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Sends a MIDI event which contains two data bytes to the instrument.

midiStatus: The STATUS value of the MIDI event.
data1: The first data byte of the MIDI event.
data2: The first data byte of the MIDI event.

See also:

AVAudioUnitMIDIInstrumentMBS.sendMIDISysExEvent(data as MemoryBlock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Sends a MIDI “System Exclusive” event to the instrument.

midiData: A memoryblock object containing the complete SysEx data including start(F0) and termination(F7) bytes.

AVAudioUnitMIDIInstrumentMBS.sendPitchBend(pitchbend as Integer, Channel as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Sends MIDI “Pitch Bend” event to the instrument.

pitchbend: Value of the pitchbend. The valid range of values is 0 to 16383.
channel: The channel number to which the event is sent.

If this method is not invoked, then the pitch bend is the default value of 8192 (no pitch).

AVAudioUnitMIDIInstrumentMBS.sendPressure(pressure as Integer, Channel as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Sends MIDI “channel pressure” event to the instrument.

pressure: The value of the pressure. The valid range is 0 to 127.
channel: The channel number to which the event is sent.

AVAudioUnitMIDIInstrumentMBS.sendPressureForKey(Key as Integer, value as Integer, Channel as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Sends MIDI “Polyphonic key pressure” event to the instrument.

key: The key (note) number to which the pressure event applies. The valid range is 0 to 127.
value: The value of the pressure. The valid range is 0 to 127.
channel: The channel number to which the event is sent.

AVAudioUnitMIDIInstrumentMBS.sendProgramChange(program as Integer, bankMSB as Integer, bankLSB as Integer, Channel as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Sends a MIDI “Program Change” and “Bank Select” events to the instrument.

program: Specifies the program (preset) number within the bank to load. The valid range is 0 to 127.
bankMSB: Specifies the most significant byte value for the bank to select. The valid range is 0 to 127.
bankLSB: Specifies the least significant byte value for the bank to select. The valid range is 0 to 127.
channel: The channel number to which the event is sent.

See also:

AVAudioUnitMIDIInstrumentMBS.sendProgramChange(program as Integer, Channel as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Sends a MIDI “Program Change” and “Bank Select” events to the instrument.

program: Specifies the program. The valid range is 0 to 127.
channel: The channel number to which the event is sent.

The instrument will be loaded from the bank that has been previous set by MIDI “Bank Select” controller messages (0 and 31). If none has been set, bank 0 will be used.

See also:

AVAudioUnitMIDIInstrumentMBS.startNote(note as Integer, Velocity as Integer, Channel as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Sends a MIDI “Note On” event to the instrument.

note: The note number (key) to play. The valid range is 0 to 127.
velocity: Specifies the volume at which the note is played. The valid range is 0 to 127.
channel: The channel number to which the event is sent.

AVAudioUnitMIDIInstrumentMBS.stopNote(note as Integer, Channel as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Sends a MIDI “Note Off” event to the instrument

note: The note number (key) to stop. The valid range is 0 to 127.
channel: The channel number to which the event is sent.

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


The biggest plugin in space...