Hello All. Trying to receive messages from a guitar pedal. It sends control messages on specific addresses. I can see midi coming into my board but I do not know how to set the program to receive on specific channels. Any help is appreciated.
The channel is encoded on the four least significant of the initial byte of a message.
So simply masking off these bits will give you the channel number
channel = message & 0x0f;
Note while channels are displayed 1 to 16 they are in fact numbers 0 to 15, so if the above gives you 0 then that is channel one.
So you look at the channel number and ignore the whole message if it is not the one you want.
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.