processBlock and midiOutput

Maybe I'm overcomplicating....

Where would I look for some information on how to pull the MidiBuffer out of processblock - say in the standalonefilterwindow?

Per the audioProcessor documentaion..."Any messages left in the midi buffer when this method has finished are assumed to be the filter's midi output"...so how do I get at that buffer from outside the audioprocessor?

I know the plugin is generating midi data fine.

Thank yall.

 

ps. My solution right now is to just send the midioutput from within the plugin, I'd just prefer to leave the plugin code itself alone if possible.