# Filtering 2-Byte, 3-Byte and note range

**URL:** <https://forum.bome.com/t/filtering-2-byte-3-byte-and-note-range/7891>\
**Category:** Bome Products\
**Tags:** midi-translator\
**Created:** [July 24, 2026, 9:41am UTC](https://forum.bome.com/t/filtering-2-byte-3-byte-and-note-range/7891 "2026-07-24T09:41:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter.Ostry](https://forum.bome.com/user_avatar/forum.bome.com/peter.ostry/32/3127_2.png) [@Peter.Ostry](https://forum.bome.com/u/Peter.Ostry)\
**Post date:** [July 24, 2026, 9:41am UTC](https://forum.bome.com/t/filtering-2-byte-3-byte-and-note-range/7891/1 "2026-07-24T09:41:19Z")

</div>

When it comes to MTP Rules, I am still a dummy …  
I know how to filter incoming events, but not how to process them in Rules.

Can you please explain the process for:

1. Every 2-Byte message on MIDI channel 13 is valid.
2. Every 3-Byte message on MIDI channel 13 is valid.
3. Every note on MIDI channel 2 with velocity 1 in the number range 60-65 is valid.

(should go into 3 different Translators)

---

<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:** [July 24, 2026, 1:21pm UTC](https://forum.bome.com/t/filtering-2-byte-3-byte-and-note-range/7891/2 "2026-07-24T13:21:27Z")

</div>

Hi Peter,

The attached should work. Preset 1 “Process MIDI” has the translators you are looking for.

1.0 handles the 2 byte messages and 1.1 handles the 3 byte messages. The rules are the same but the incoming and outgoing are different because they are a different length. I use local variables so that the translators do not interfere with eachother.

Here are the rules:

```auto
// look at control byte (mask upper nibble)
rr=oo&15
// Check for MIDI channel 13
// zero based so CH 13 = 12
if rr!=12 then exit rules, skip Outgoing Action

```

Translator 1.2 handles the note-on messages on MIDI CH 2.

Since there are no MIDI thru paths, nothing else will get through, even note-off on MIDI CH2.

Preset 0 just handles general project initiation and housekeeping.

[Fither-messages-2026-07-24.bmtp](https://forum.bome.com/uploads/short-url/AsYKRfBoGvogAlcsqYHqJRWmED1.bmtp) (2.9 KB)

Steve Caldwell  
Bome Customer Care  
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![Peter.Ostry](https://forum.bome.com/user_avatar/forum.bome.com/peter.ostry/32/3127_2.png) [@Peter.Ostry](https://forum.bome.com/u/Peter.Ostry)\
**Post date:** [July 24, 2026, 2:51pm UTC](https://forum.bome.com/t/filtering-2-byte-3-byte-and-note-range/7891/3 "2026-07-24T14:51:17Z")

</div>

Ah, I see.

The mask rr=oo&15 was the key, and I’d also forgotten that I need to exclude (exit) what I don’t want, rather than include what I do want.

For the notes, I was thinking of note number 60-65 in the rules, but that was easy to change.

It works well, thank you!

---

<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:** [July 24, 2026, 2:55pm UTC](https://forum.bome.com/t/filtering-2-byte-3-byte-and-note-range/7891/4 "2026-07-24T14:55:14Z")

</div>

My Pleasure!

Steve Caldwell  
Bome Customer Care  
_Also available for paid consulting services: bome@sniz.biz_
