One Logo Pool Ball
AVFAudio · IOS API REFERENCE

AVAudioUnitMIDIInstrument

class · iOS 8.0+ · SDK 27.1

class AVAudioUnitMIDIInstrument

Members (13)

init · iOS 8.0+

init

TypeScript
static init(description: _AudioToolbox_AudioComponentDescription): AVAudioUnitMIDIInstrument
Swift declaration
init(audioComponentDescription description: AudioComponentDescription)
method · iOS 8.0+

sendController

TypeScript
sendController(controller: number, value: number, channel: number): void
Swift declaration
func sendController(_ controller: UInt8, withValue value: UInt8, onChannel channel: UInt8)
method · iOS 8.0+

sendMIDIEvent

TypeScript
sendMIDIEventData1(midiStatus: number, data1: number): void
Swift declaration
func sendMIDIEvent(_ midiStatus: UInt8, data1: UInt8)
method · iOS 8.0+

sendMIDIEvent

TypeScript
sendMIDIEventData1Data2(midiStatus: number, data1: number, data2: number): void
Swift declaration
func sendMIDIEvent(_ midiStatus: UInt8, data1: UInt8, data2: UInt8)
method · iOS 16.0+

send

TypeScript
send(eventList: SDKHandle): void
Swift declaration
func send(_ eventList: UnsafePointer<MIDIEventList>)
method · iOS 8.0+

sendMIDISysExEvent

TypeScript
sendMIDISysExEvent(midiData: ArrayBuffer): void
Swift declaration
func sendMIDISysExEvent(_ midiData: Data)
method · iOS 8.0+

sendPitchBend

TypeScript
sendPitchBend(pitchbend: number, channel: number): void
Swift declaration
func sendPitchBend(_ pitchbend: UInt16, onChannel channel: UInt8)
method · iOS 8.0+

sendPressure

TypeScript
sendPressureOnChannel(pressure: number, channel: number): void
Swift declaration
func sendPressure(_ pressure: UInt8, onChannel channel: UInt8)
method · iOS 8.0+

sendPressure

TypeScript
sendPressureForKeyWithValueOnChannel(key: number, value: number, channel: number): void
Swift declaration
func sendPressure(forKey key: UInt8, withValue value: UInt8, onChannel channel: UInt8)
method · iOS 8.0+

sendProgramChange

TypeScript
sendProgramChangeBankMSBBankLSBOnChannel(program: number, bankMSB: number, bankLSB: number, channel: number): void
Swift declaration
func sendProgramChange(_ program: UInt8, bankMSB: UInt8, bankLSB: UInt8, onChannel channel: UInt8)
method · iOS 8.0+

sendProgramChange

TypeScript
sendProgramChangeOnChannel(program: number, channel: number): void
Swift declaration
func sendProgramChange(_ program: UInt8, onChannel channel: UInt8)
method · iOS 8.0+

startNote

TypeScript
startNote(note: number, velocity: number, channel: number): void
Swift declaration
func startNote(_ note: UInt8, withVelocity velocity: UInt8, onChannel channel: UInt8)
method · iOS 8.0+

stopNote

TypeScript
stopNote(note: number, channel: number): void
Swift declaration
func stopNote(_ note: UInt8, onChannel channel: UInt8)

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AVAudioUnitMIDIInstrument.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All AVFAudio types →