AudioUnit and probably VST3 are designed that processor and editor (and even more than one editor per processor) can run on different computers.
To communicate something between processing and editor (for example waveforms) you can’t use the processor-pointer in the GUI anymore.
We need something like
postMessageToProcessor (int MessageID, MemoryBlock& ) and handleMessageFromProcessor(int messageID, MemoryBlock& )
in the AudioprocessorEditor
and the equivalent in the Audioprocessor
postMessageToEditor (int MessageID, MemoryBlock& ) and handleMessageFromEditor(int messageID, MemoryBlock& ).
The getAudioProcessor() method in AudioProcessorEditor should be removed.
What are your thoughts on this?