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

jawnypants's icon

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

Chris Muir's icon

Have you tried building it with [sxformat]?

Resinate's icon

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"

Tim Lloyd's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Rafael Kassier's icon

XOR looks like this:

Source: There are some inconsistencies in the patcher that is shown in the video (see the comments below the video), but it gives you all you need to know to build the various logic gates you might need: