Only look at 2 midi channels

Hi all, I feel like i should know this but for some reason im having issues…

I have incoming notes on a few channels.

I have have a translator set up that i only want to translate what comes through on ch 2 and 3 ignore the rest.

I thought
input xx pp 7f

rules
if xx > 2 then exit rules, skip outgoing action
if xx < 1 then exit rules, skip outgoing action

output
is shutting off a preset

what am i doing wrong? probably everything.

just want any note on ch 2 or 3 to shut off a preset.

Hi,

The first byte (the command byte) has two parts, the first 4 bits (nibble) are the command which would be 9 or 8 or B (in hex) for note on, note off, and cc respectively.
The low order nibble is the MIDI channel 0-F.

So you need to do this.

Incoming: xx pp 7F

rules:

//mask lower nibble only looking for 0x80 or 0x90
// if you do the bitwise math either 0x8n or 0x90 will produce output of 0x80 
// uncomment the below two line lines if you want only note-on or note off
// rr=xx&0xe0
// if rr!=0x80 then exit rules, skip outgoing action

// mask upper nibble
rr=xx&0x0f
if rr>2 then exit rules, skip outgoing action
if rr<1 then exit rules, skip outgoing action

Steve Caldwell
Bome Customer Care


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