I'm lookin for a way to add statements to my while loop
Now I have this:
while (it.getNextEvent(currentMessage, samplePos))
Now i want to add to this: if x !=0 and bool MidiMessage::isForChannel(x)
...
So the while checks for incoming midi messages, then i want to check if the user has selected (in the GUI on a slider) a different midichannel and if that channel corresponds with the channel of the incoming midi message.
I want to learn how to write this elegantly in stead of writing nested if statements