Please forgive me if this is a problem with the AUv3 format (or Logic Pro X itself). Probably not the case, but there is simply not enough information online to draw a sound conclusion...
When I build and run (with Logic Pro X) XCode's Audio Unit Extension template (for instrument) completely unmodified except for the following override of the handleMIDIEvent function:
the built Audio Unit seems to only receive incoming MIDI messages when it's in the currently selected track (ie. if I insert two instances and record a MIDI region in each, only the notes in the selected track print "I just got a midi event!" during playback).
Do I need to do something else in order to make my plugin be able to receive MIDI messages when it's not in the selected track (like any other synth plugin)?
Using XCode Version 12.3 (12C33), Logic Pro X 10.6.0 (Build Version 5407) in macOS Catalina 10.15.6 (19G2021).
When I build and run (with Logic Pro X) XCode's Audio Unit Extension template (for instrument) completely unmodified except for the following override of the handleMIDIEvent function:
Code Block language cpp void handleMIDIEvent(AUMIDIEvent const& midiEvent) override { printf("I just got a midi event!\n"); }
the built Audio Unit seems to only receive incoming MIDI messages when it's in the currently selected track (ie. if I insert two instances and record a MIDI region in each, only the notes in the selected track print "I just got a midi event!" during playback).
Do I need to do something else in order to make my plugin be able to receive MIDI messages when it's not in the selected track (like any other synth plugin)?
Using XCode Version 12.3 (12C33), Logic Pro X 10.6.0 (Build Version 5407) in macOS Catalina 10.15.6 (19G2021).