Hi, is there a way to filter out some messages in midi library? Midi.read() works like thru passing all messages. I want noteOn, and some CCs not to pass.
s there a way to filter out some messages in midi library?
No. You have to write your own parser if you want to do that. You need to get in all the message before you decide if you will pass it out so that introduces a bit of a delay.
Is there a way to disable all messages thru? So I will parse midi library data. Not sure if my skill will be enough to deal with raw Midi.
According to documentation there is, but in fact it throws up a compile error if you try and use it.
I was searching for a way for filtering out some midi CC values that were messing another gear. It's mid CC 112-120 that I has to filter out.
In fact, it is possible and works like a charm just with very little effort
- use omni channel in the setup
- Disabling midi thru in the setup
- write a rule like: "if not midi cc number then midi send"
- done
I am using it after a little help from Francois Best and will have an eye on timing if more than some rules are set.