Forums > MaxMSP

How do you "AND", How do you "XOR"?

April 5, 2010 | 5:07 am

How do you do?

I can’t find any Max/MSP operators that will perform the logical X’OR and AND operations for a long, MIDI System Exclusive Message. I can’t use "EXPR" (which has a checksum function) because my message is too long. I’m sending bulk tuning dumps, which are 408 bytes long. I have them working, but I know the checksum is wrong because Max Magic Microtuner gives me an "invalid checksum" warning everytime (though it DOES re-tune, thankfully).

So there it is: aren’t there any "AND" and/or "XOR" objects for Max/MSP out there? Or anyone who can suggest way to do this, apparently, simple thing?

Thanks, Jawnypants


April 5, 2010 | 11:28 am

Have you tried building it with [sxformat]?


April 6, 2010 | 9:24 pm

and && and XOR i’m not sure i knoe OR is liek c ||

statements like can be used in Max but its not really what it likes to do.

"if $i1>10 && $i1 < 2 then bang"


April 6, 2010 | 9:55 pm

Not sure how these will help you out, but here is an example using the bitwise operators in max:

– Pasted Max Patch, click to expand. –

Viewing 4 posts - 1 through 4 (of 4 total)