A dummy question. I would like to have a macro triggered when ANY key of my 88-key MIDI keyboard controller is pressed. When "MIDI Learn" is on, the lowest key produces this:
I can deduct that the "byte 2" field shows the MIDI key values 21 and 108, which indeed does make 88 values in total.
So the goal is to edit the trigger to allow any MIDI key value to trigger the macro.
Thanks! I have now one final task. Using @Airy solution for a reason but I have one more issue:
The last 3 characters 00$ - the 00 means note off and 01-7F MIDI key velocities. So the last two characters before $ should match hex values 01-7F and NOT 00.
I want the macro triggered by note on message and not note off (00$)
Is this also doable?
I based that on this recipe at regex101. I added the \D to allow characters other than digits (in practice, these will be in the range A – F for hexadecimal).
Thenk you @kevinb for the lesson and hint.
It took me a minute to understand that I have to combine things and my final pattern that works is:
^90 \S+ 0*?[1-9\D]\d*$
Now the macro indeed triggers on MIDI note on messages only.