Forums > MaxMSP

open gate, based on zl compare?

September 23, 2013 | 6:55 am

Hi,

Im trying to iterate over some list with 3 elements, but I want to put a gate underneath and only open the gate when the 3rd element in the list = <empty>.

Any idea how to do this? I tried buddy/bondo but couldnt get them to work.

Heres a patch to explain.

<code>

– Pasted Max Patch, click to expand. –

</code>


September 23, 2013 | 7:34 am

For some reason gswitch works, but both switch and gate will not work.

Heres an example:

<code>

– Pasted Max Patch, click to expand. –

</code>


September 23, 2013 | 7:44 am

In your second example, the result is the opposite of what you explain you want ie only the lists which 3rd element is NOT are passed. This does what you explain in your first post :

<code>

– Pasted Max Patch, click to expand. –

</code>

This works just as well with gate :

<code>

– Pasted Max Patch, click to expand. –

</code>


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