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

Apr 5, 2010 at 5:07am

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

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

Apr 5, 2010 at 11:28am

Have you tried building it with [sxformat]?

Apr 6, 2010 at 9:24pm

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"

Apr 6, 2010 at 9:55pm

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. –

You must be logged in to reply to this topic.