Thom
(Thom)
December 20, 2025, 7:12am
1
How is it possible to take a decimal number in Rules, such as 32 (represented as a variable), and output it in raw midi with the value 0x32.
In other words, the decimal 32 needs to be output without its value bring converted to hexadecimal.
I have hundreds of such numbers being input which need to be output this way.
Thank you
––
Edit: …a few minutes later…
Actually, I think I figured it out
Multiply the first digit by 16 then add the second digit
(3*16)+2=50
50=0x32
Magic!
SteveC
(Steve)
December 20, 2025, 2:55pm
2
I generally use Windows Programmer calculator to do the converstion for me. But you can also google ’ 32 hex to decimal’.
If you want to dump variables in hex format you can hold control and press dump variables in MT Pro.
You can also insert values in rules as 0x32 and they will initially be shown that way, but when you restart the project, it will be shown in decimal.
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz
1 Like
Thom
(Thom)
December 22, 2025, 3:09am
3
Thanks Steve, for correcting my title spelling of hexidecimal
I do use Windows Programmer calculator too, and its a huge help. The variables in hex format tip for BMTP is also very cool.
In this particular situation a dump of raw data is being received with a large number of values that need to be calculated on the fly, so it really needs to all happen within BMTP.
The simple little formula in my previous post is doing the heavy lifting
Thom
SteveC
(Steve)
December 22, 2025, 3:33am
4
I agree, it would be handing if Bome MIDI Translator Pro had some sort of way to display in the format of your choice.
I’ll forward that as a suggestion.
Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz