Filtering Unnecessary Midi

jasonh

2020-11-18 19:19:05

Greetings,

I am new to BMT so forgive the ignorance of this question.  I have a device that BMT is capturing midi from and then forwarding to another device.  The problem is that there are several midi notews being sent and I only need the first one.  An example of what is being captured is below.  In this example, I only need line 1 and to dump the rest.  I know that BMT can do this but I am not sure how.

Also, for translator 1, I only want to pass the note if the note equals 00.  Translator 2 would only pass it if it equals 07.

1: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 00 02
2: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 00 02
3: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 00 02
4: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 00 02
5: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 00 02
6: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 00 02
7: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 00 01
8: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 00 01
9: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 00 01
10: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 00 01
11: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 00 01
12: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 00 01
13: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 01 01
14: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 01 01
15: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 01 01
16: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 08 01
17: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 08 01
18: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 08 01
19: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 09 01
20: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 09 01
21: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 09 01
22: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 10 01
23: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 10 01
24: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 10 01
25: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 11 01
26: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 11 01
27: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 11 01
28: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 18 01
29: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 18 01
30: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 18 01
31: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 19 01
32: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 19 01
33: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 19 01
34: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 1F 00
35: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 1F 00
36: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 1F 00
37: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 26 00
38: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 26 00
39: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 26 00
40: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 28 01
41: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 28 01
42: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 28 01
43: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 29 01
44: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 29 01
45: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 29 01
46: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 30 01
47: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 30 01
48: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 30 01
49: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 31 01
50: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 31 01
51: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 31 01
52: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 38 01
53: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 38 01
54: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 38 01
55: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 39 01
56: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 39 01
57: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 39 01
58: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 48 01
59: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 48 01
60: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 48 01
61: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 49 01
62: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 49 01
63: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 49 01
64: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 50 01
65: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 50 01
66: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 50 01
67: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 51 01
68: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 51 01
69: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 51 01
70: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 58 01
71: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 58 01
72: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 58 01
73: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 59 01
74: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 59 01
75: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 59 01
76: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 74 01
77: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 74 01
78: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 74 01
79: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 75 01
80: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 75 01
81: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 75 01
82: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 76 01
83: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 76 01
84: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 76 01
85: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 77 01
86: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 77 01
87: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 77 01
88: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 7C 01
89: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 7C 01
90: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 7C 01
91: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 7D 01
92: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 7D 01
93: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 7D 01
94: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 7E 01
95: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 7E 01
96: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 7E 01
97: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 7F 01
98: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 7F 01
99: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 7F 01
100: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 1E 02
101: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 1E 02
102: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 1E 02
103: MIDI IN [Bome MIDI Translator 1 Virtual In]: 90 27 01
104: MIDI IN [Bome MIDI Translator 2 Virtual In]: 90 27 01
105: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 90 27 01
106: MIDI IN [Bome MIDI Translator 1 Virtual In]: 91 08 7F
107: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: 91 08 7F
108: MIDI IN [Bome MIDI Translator 2 Virtual In]: 91 08 7F

 

SteveC

2020-11-18 19:33:13

Hi,

If you turn off MIDI thru routing, then all messages not handled by a given translator will not pass through to the given output port(s).

If you want some messages to pass through but not all, then anything you don't want to pass through, you could set up with the input pattern that you are looking for with the outgoing message of "none",  set the options to "Swallow" and it will not pass thru the MIDI thru route.

If you are sending multiple of the same message and you only one the first one to get through, then you can set a global variable to ignore the incoming message after the first iteration but somewhere along the line, you will probably want to enable it again otherwise after the first message it will be silent forever.

It would look something like this

if ga=1 then exit rules, skip outgoing action

ga=1

 

And then to later enable it, you would have another translator to set ga to 0.

 

Note that if you have MIDI through routes set in the MIDI router, the example above will still get through (since the output did not execute).  You would also need another translator with outgoing action of none with swallow set to suppress it from going to the static MIDI thru route.

For this reason, I tend to try and always do things with translators  unless I get really lazy or want 90% percent of my messages to pass through untouched.

 

Steve Caldwell
Bome Customer Care


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