OK, I think I get it.
The last two digits before end of Sysex message look like they are MSB and LSB of the value or location of the pedal.
F0 42 30 6D 08 41 06 00 pp qq F7
If I'm right pp is the most significant byte (MSB) and qq is the least significant byte (LSB).
So we combined the to a single value and compare with the last known value (from the last iteration) which we store in a global variable ga.
If the new value is greater than the last known value we send keystroke volume up.
If the new value is less than the last known value we send keystroke volume down.
If the value has not changed, we send neither.
Each translator only executes the keystroke if it belongs to itself otherwise it skips and lets the other translator handle it.
Here are the rules for combining pp (MSB) and qq (LSB) into a single varuable
Then we compare with the last known value. Look at the rules for each of the two translators for more information. Hopefully I got the calculations and the evaluation of the Sysex correct.
Bome Q and A Moderator and
Independent Bome Consultant/Specialist