Forums > MaxMSP

Precedence….. if this precedes this then…

January 30, 2014 | 2:45 pm

I really don’t have an idea where to start, i’m guessing coll is gonna be my friend somewhere in there

I need to store the lists that are coming in and have some pre-determined sequences, that if they occur then….. bang for instance…

<code>

– Pasted Max Patch, click to expand. –

</code>


January 30, 2014 | 3:18 pm

[zl compare] ?


January 30, 2014 | 3:27 pm

I don’t think that’ll help….. If i populate this coll for instance, i would like it to flag if a certain sequence of numbers where to be therin

<code>

– Pasted Max Patch, click to expand. –

</code>


January 30, 2014 | 3:29 pm

I know with numbers i could use sel…. i could lose the spaces in a list with sprintf %LD%LD%LD and then use sel, but i don’t know how to recognise the occurrence of a certain sequence of lists or numbers


January 30, 2014 | 3:42 pm

perhaps i’m not too far away now

<code>

– Pasted Max Patch, click to expand. –

</code>


January 31, 2014 | 5:50 am

anyone know how to detect a certain sequence of numbers within a stream of data?


January 31, 2014 | 6:10 am

Here’s one way.

<code>

– Pasted Max Patch, click to expand. –

</code>


January 31, 2014 | 6:12 am

VICHUG, you may have been right :)

perhaps zl compare is the way

<code>

– Pasted Max Patch, click to expand. –

</code>


January 31, 2014 | 6:19 am

Thanks rick, i’ll give it a whirl


February 1, 2014 | 1:20 pm
– Pasted Max Patch, click to expand. –

February 1, 2014 | 2:35 pm

cheers Metamax :) I looked at match briefly aswel ….. oops

I’ve got three ways that ultimately servre the same purpose now :) it’ll be interesting to see which is the least expensive


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