Logic Gates? (And, Nor, NAND, NOR etc.)

Dec 3, 2012 at 7:42pm

Logic Gates? (And, Nor, NAND, NOR etc.)

Hi all

How can I create Logic Gates inside of max? All I want to do is check to see if three separate numbers are equal to ’1′, or true, and if they are send a bang out. Don’t really understand why it’s taking me so long to find an answer to this…


Dec 3, 2012 at 8:32pm

Something like this?

– Pasted Max Patch, click to expand. –
Dec 3, 2012 at 8:55pm

or all in one box: [if ($f1 == 1)&&($f2 == 1) &&($f3 == 1) then bang] although maybe more appropriate to use $i instead of $f

Dec 3, 2012 at 9:40pm

Didn’t know you could put multiple logic operands in the if object! Always thought it was a downfall… Nice one terry!

Dec 3, 2012 at 9:47pm

I don’t think i realised either until after using max for a number of years….

Dec 3, 2012 at 10:13pm

Stunning, thanks guys. I managed to get it working with a series of If statements and additions, but this way allows me to slim it down some more. Cheers :)


You must be logged in to reply to this topic.