# What is MSB and LSB?

Updated: Oct 15, 2021

Some devices use a MSB and LSB CC system, which might be somewhat confusing for new users. The MSB and LSB gives you more resolution when controlling the parameters. MSB stands for most significant bit, while LSB is least significant bit. In binary terms, the MSB is the bit that has the greatest effect on the number, and it is the left-most bit. For example, for a binary number 0011 0101, the Most Significant 4 bits would be 0011. The Least Significant 4 bits would be 0101.

If you are not familiar with binary calculations, simply google for a Binary Calculator, and you can find plenty.

Binary to Decimal calculator: https://www.rapidtables.com/convert/number/binary-to-decimal.html

Decimal to Binary calculator: https://www.rapidtables.com/convert/number/decimal-to-binary.html

The left-most bit is the most significant, because for the binary 0011 0101, the value is 53. If you flip the left-most bit from 0 to 1, you have 1011 0101, which gives you 181. Flipping the LSB on the right will give you 0011 0100, which is 52. Hence the name Most Significant and Least Significant.

Now let's take a look at the MIDI chart from the Elektron Analog Drive below:

The chart states that there are 7 bits in MSB, and 1 bit in LSB, which totals to 8 bits. 8 bits equals a max value of 256, giving a range of 0 - 255 (in binary, 256 = 1111 1111). The MIDI protocol only sends a value of up to 128 (or 0 - 127). Using this MSB LSB approach allows them to get a resolution of up to 256 (0 - 255). Some synth companies use a 7 bit MSB and 7 bit LSB, which gives them a resolution of 128x128 = 16384 (or a range of 0 - 16383). The chart also shows that Gain has a CC MSB of 16, and CC LSB of 48. Now lets say the value of Gain is now 0 (Binary = 0000 0000). If there are 7 bits in MSB, then sending a CC#16 with value 108 (108 = 1101 100 will set the 8 bit binary to 1101 1000, which gives you a value of 216. If you send a CC#48 (LSB) with value 1 message, it will set the 8 bit number to 1101 1001, which gives you 217. The LSB isn't so important in this case, as it will only change the value by 1 (resolution is only 1 bit).

There you have it! MSB and LSB explained.

In our MIDI Editor, there is a MSB LSB calculator under Tools for you to easily calculate the MSB and LSB of a given 14-bit number.