# Only look at 2 midi channels

**URL:** <https://forum.bome.com/t/only-look-at-2-midi-channels/4854>\
**Category:** Bome Products\
**Created:** [February 7, 2023, 10:09pm UTC](https://forum.bome.com/t/only-look-at-2-midi-channels/4854 "2023-02-07T22:09:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ablethought](https://forum.bome.com/user_avatar/forum.bome.com/ablethought/32/95_2.png) [@ablethought](https://forum.bome.com/u/ablethought)\
**Post date:** [February 7, 2023, 10:09pm UTC](https://forum.bome.com/t/only-look-at-2-midi-channels/4854/1 "2023-02-07T22:09:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [February 7, 2023, 10:24pm UTC](https://forum.bome.com/t/only-look-at-2-midi-channels/4854/2 "2023-02-07T22:24:47Z")

</div>

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

```auto
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_
