Multiple Conditions with variable Statements

personal_username's icon

Hi all,

Max Patch
Copy patch and select New From Clipboard in Max.

I've built a simple patch to consider multiple conditions with variable statements (">" and "
Here is my patch below.
Since it should be much, much easier to achieve that, I'm wondering how you would simplify it.
Thanks a lot!

Rodrigo's icon

Yeah that looks a mess, and you should avoid having timing related objects in the mix there. (speedlim)

You can do something like this (just have objects dump out and go through all the logic you want in a chain, then gate/pack/whatever at the end to pick the comparison you need (so rather than picking which comparison to DO, you pick which comparison to USE).

Max Patch
Copy patch and select New From Clipboard in Max.

OR do it in javascript, which would be better for this kind of nested logic.

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

Here's another variation using [expr]. The trick is using 1 and 0 to turn on and off parts of the equation.

personal_username's icon

I've been busy and had no time for reply to you.
Thank you!
I'm going to try some slimming down now ;-)