ok. I'll try my best.. I made a class exactly as the JUCE tutorial:
class IncomingMessageCallback : public CallbackMessage
IncomingMessageCallback (MIDIContentComponent* o, const MidiMessage& m, const String& s)
: owner (o), message (m), source (s)
void messageCallback() override
if (owner != nullptr)
owner->addMessageToList (message, source);
void MIDIContentComponent::postMessageToList (const MidiMessage& message, const String& source)
(new IncomingMessageCallback (this, message, source))->post();
and the addMessageToList inserts a text (the description of my MidiMessage) into a TextBox.
On the other hand, I have my pluginProcessor which contains the processBlock.
I wish these two classes interacted in some way. In particular I'd like something like that. When a MIDIMessage arrives, send it to my Synth, so I can change the frequency! I'm sure it's easy, but I don't understand