Welcome to %s forums

BrainModular Users Forum

Login Register

How to extract the least 7 bytes from a value?

I need help on a Patch
Post Reply
moody33
Member
Posts: 338
Contact:

Unread post by moody33 » 01 Mar 2011, 15:16

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

bsork
Site Admin
Posts: 1334
Location: Asker, Norway
Contact:

Unread post by bsork » 01 Mar 2011, 22:20

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.
Bjørn S

moody33
Member
Posts: 338
Contact:

Unread post by moody33 » 01 Mar 2011, 22:30

Got it ! Thanks you master ! :D

Post Reply

Who is online

Users browsing this forum: No registered users and 83 guests