I actually came up with this in the processBlock
void StiXctrlAudioProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer& midiMessages)
for (MidiBuffer::Iterator i(midiMessages); i.getNextEvent(m, time);)
int8 myVal = (int8)CC00Val;
m = MidiMessage::controllerEvent(2, 1, myVal);
But it has some relevant problems that i can't figure out how to solve
1. It only works if some MIDI event is coming to the buffer from the host.
2. It only works if the host is running.
How can i keep it "alive" even when the host is not running and not sending any event to MidiBuffer?
many thanks and all the best