Hex pair to decimal
I got stuck with a hex to dec conversion.
I get two hex bytes in a SysEx stream from a synthesizer,
they describe an integer value in the range of 0-255
The manual of the synth says:
Parameter: LFO Rate
Data: HLLL LLLL
Range: 0-255
hi-byte: 0000 000H
low-byte: 0LLL LLLL
I don't understand this speech, but think that I have to take 2 bytes
out of the stream and convert them to decimal. Yes, I can identify this
specific hex pair, because I know the data before and after.
Two examples:
Hex pair 1 66 should result in decimal 194
Hex pair 1 75 should result in decimal 203
I don't know much about this math and nothing I try gives the results of the example above.
Any hints about how to convert these pairs?
NOTE:
I posted the question above on 2017-03-11 and it was successfully answered on the very same day.
So far I remember, the first post did not show up and I posted a second time. For some reason the forum now found the first one. No need to answer again.