I'd like to use my kAudioUnitType_MusicEffect
AU in an AVAudioEngine
graph. So I try to call:
[AVAudioUnitMIDIInstrument instantiateWithComponentDescription:desc options:kAudioComponentInstantiation_LoadInProcess completionHandler:
but that just yeilds a normal AVAudioUnit
, so the midi selectors (like -[AVAudioUnit sendMIDIEvent:data1:data2:]:
) are unrecognized. It seems AVAudioUnitMIDIInstrument instantiateWithComponentDescription
only works with kAudioUnitType_MusicDevice
.
Any way to do this? (Note: OS X 10.11)