# 14 bit midi cc step calculation help needed in BMT Pro

Hello everyone

I would like to use Bome Midi Translator Pro to solve a problem with my midi controller.
My midi controller can send 14 bit midi CC’s but I can’t set how many steps there should be from value 0 to 16383. So I have come up with the following but don’t have the knowledge how to implement this in an efficient way.

I need 256 steps in a 14-bit midi CC. I was thinking of using values 0-255 in my 14-bit midi CC in my midi controller and convert them with BMT to the necessary bytes MSB and LSB bytes needed for 256 steps in total. So value 0 = 0 times 64. Value 1 = 1 times 64. Value 2 is 2 times 64… Value 255 is 255 times 64. Can anyone help me out with the formula I need for this?

Thank you in advance.

Never mind. I found a hint on the forum on how to convert decimals to MSB and LSB so I will find an efficient solution now.

Hi,

You might also want to view this tutorial on scaling.

Steve Caldwell
Bome Customer Care

Also available for paid consulting services: bome@sniz.biz

Hello Steve

I don’t have a use case for your tutorial right now but it might come in handy in the future. Thank you.

I found my solution and I will get back to you in a few days after the heatwave here is gone and I can test it.

Sounds good, I thought of scaling because you wanted to go from 14 bit (16383) to 8 bit (255).

Steve

Hello Steve

Yes, it was scaling but vice versa. From 8bit to 14bit.

Here is what I did.

// ss = step multiplier = 16384/number of steps.
// change number of steps when necessary
ss=16384/256

// rr = incoming value 14bit value
// rr must be smaller than the number of steps
if rr<256 then Goto “translate”

exit rules, skip Outgoing Action

Label “translate”

// tt = translated outgoing 14bit value