Forums > MaxMSP

flow with 0 & 1 let pass 1 except if there is only 0


FP
January 3, 2011 | 9:26 pm

Hello,

simple problem but…

If I have a flow like this 0,0,0,1,0,0 -> I want just 1
If it’s like this 0,0,0,0,0 -> I want 0

How to do ? (gratte, gratte) :-)

Thx.

– Pasted Max Patch, click to expand. –

January 3, 2011 | 9:46 pm

Do you want to keep all of the zeros in the "0,0,0,0,0" list? Here is one (of many) ways to do something like this:

– Pasted Max Patch, click to expand. –


FP
January 4, 2011 | 1:20 am

Thx you. My question was not enough precise. I didn’t explain the context.
Here’s what I wanted to achieve :

– Pasted Max Patch, click to expand. –


FP
January 4, 2011 | 8:36 am

@vanille béchamel : yes but I need to know when a column is empty.



FP
January 4, 2011 | 1:25 pm

anyway, thx you very much to point me in th right direction.
here it is :

– Pasted Max Patch, click to expand. –

January 4, 2011 | 2:31 pm

There’s an easier way to do that.

_
johan

– Pasted Max Patch, click to expand. –

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