I'm using button groups to get 'radio button' behaviour, with each button sending the same CC message but with a unique value. The receiving device stores the latest CC value as part of a patch, and each patch can have a different value. When a saved patch is selected, the device sends the stored CC value back to MD to restore the selected state of the buttons in the group.
This works fine, but it appears that for every CC message received by MD, it sends another one back out. I'm guessing that it is because as one button is selected, another is turned off, and that change if transmitted. This is a snippet of the log:
Message Out: Cmd=176|Ch=01|Data1=020|Data2=000 | Length=3: B0 14 00
Message In: Cmd=176|Ch=01|Data1=020|Data2=001 | Length=3: B0 14 01
Message Out: Cmd=176|Ch=01|Data1=020|Data2=000 | Length=3: B0 14 00
Message In: Cmd=176|Ch=01|Data1=020|Data2=002 | Length=3: B0 14 02
Sending the values 1 & 2 select the different buttons, and there are 0 (off) messages inbetween.
I would like to stop the transmission of these when the change was caused by MD receiving a MIDI message. Obviously I need to be able to press the button and have the message sent normally.
Is there a way to do this?
Thanks!