[not a bug] match object and 0 0

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

For a patch I use the match object to look for the list 0 0.
when match gets 0 0 the first time it responds as expected by outputting:
0 0
subsequent 0 0 messages result in:
0 0
0 0
See the patch for an example and a workaround using the clear message:

metamax's icon

My understanding is that match operates on segments of input streams, not discreet lists.

i.e.

set match to look for "0 0"
1st input: 0 0
begins stream: 0 0
matches: [0 0]
output: 0 0

2nd input: 0 0
stream continues: 0 0 0 0
matches: 0 [0 0] 0; 0 0 [0 0]
output: 0 0, 0 0

ex. 2

set match: "0 0 0"
1st input: 0
begins stream: 0
matches: none
output: none

2nd input: 0
continue stream: 0 0
matches: none
output: none

3rd input: 0
continue stream: 0 0 0
matches: [0 0 0]
output: 0 0 0

4th input: 0
continue stream: 0 0 0 0
matches: 0 [0 0 0]
output: 0 0 0

etc.

John's icon

Well that makes sense.
Thanks Meta!