Blocking Midi Channel 2

Hello,

this might be a simple one for those singing this language. I am at the very beginning of coding…
I have a sensor which gives unwanted midi signals on channel 2, which I want to block.

My Rules-Code gets syntax and variable or number expected errors…
// Extract the MIDI channel (0–15)
channel = pp & 15
// If the message is on Channel 2 (which is 1 in zero-based indexing), skip output
if channel == 1 then exit rules, skip Out

can anyone explain the magic to me?

greetings, Tim

Hi and welcome to the Bome community!

My guess is that you also have MIDI thru routes. The above will work if you don’t have MIDI thru routes because if the outgoing action is skipped, it will follow the MIDI thru route.

There are two posssible solutions.

  1. Get rid of MIDI through routes. Of course, if you do this everything will require a translator,
  2. Write a new “blocking” translator. Check for the MIDI channel.
    If it is MIDI Ch 2 allow the outgoing action but set the outgoing action to NONE. Make sure the “swallow” option is still on.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz