I have a simple audio plugin which displays the midi note number of the last note on event. In my processBlock, I have the following code:
MidiBuffer::Iterator iterator (midiMessages); MidiMessage midiMessage; int samplePosition; while (iterator.getNextEvent (midiMessage, samplePosition)) if (midiMessage.isNoteOn()) midiNote = midiMessage.getNoteNumber();
When I run my plugin in the Juce Plugin Host, the
midiNote variable is updated accordingly as I play notes. However, when I run my plugin inside of Logic, the
midiNote variable never changes.
Any idea why this is happening?