Hello.
My midi controller outputs a value as 2 hex bytes (within a sysex sentence). How should I go about converting them to decimal so I can use it more easily? Can the Rules section do this? Or should I use Applescript? If so, how?
Thanks!
Hello.
My midi controller outputs a value as 2 hex bytes (within a sysex sentence). How should I go about converting them to decimal so I can use it more easily? Can the Rules section do this? Or should I use Applescript? If so, how?
Thanks!
Hi you can always use a programmers calculator. With that said, in rules if you enter the value as “0x14” for instance. When it will interpret the hex number and convert it for you in this case 20 decimal.
so if you enter
ga=0x14
in rules and then go to another translator and then come back to the original rule, it will show
ga=20
Steve Caldwell
Bome Customer Care
Hum…
The value of the midi sysex is expresset as a two bytes word. I can have these two words dumped into variables easily, but then, I don’t know how to combine these two variables, each with values between 0 and 127. For example, if I got 1 as the MSB and 0 as the LSB byte, I would like to translate that into 128. Not sure if I am really clear…
Ha! got it!
MSB*128 + LSB = value I want.
Thanks for the tip on conversion from hex to decimal!
Yes, you are correct.
Steve Caldwell
Bome Customer Care