Page 1 of 1

Posted: 01 Mar 2011, 15:16
by moody33
How to extract the least 7 bits from a value ? :/

I need to do this for sysex extraction...but I'm a bit confused on how to do. any idea?

Edit: bits, not bytes

Posted: 01 Mar 2011, 22:20
by bsork
When the input is MIDI data with values between 0 and 255, you can use X MOD 128. Normally you don't have to do that, though, since all the data bytes are from 0 to 127 and the most significant bit is 0 anyway.

Posted: 01 Mar 2011, 22:30
by moody33
Got it ! Thanks you master ! :D