Forums > Max For Live

coll doesnt work the same in m4l as it does in max

February 20, 2013 | 10:16 pm

Hi,

Im trying to find a devices previous id, if it is copied within a live set. I am doing this by using a coll object to store "0" for previous id and "1" for new id. This code works in max perfectly if I connect a counter up to the same code. I have pasted both versions beneath.

Here is the m4l version: Try to copy the patch, and click the next/prev buttons – it only saves the last ID, and the first ID

– Pasted Max Patch, click to expand. –

And here is the max version, using counter, to count from 1-10 (which saves previous and new numbers for each bang): Just click the bang at the top and look in the coll object

– Pasted Max Patch, click to expand. –

Would be grateful if anyone can take a look, to see if theres something obvious Ive missed. Its strange, because the code works in max, but not m4l. Is it something to do with loadbang not loading properly?


February 20, 2013 | 11:34 pm

I dont get it. loadbang is supposed to give 1 bang each time the device is copied, but the bang doesnt seem to occur in my patch, or it occurs twice overwriting the previous value. would be grateful for some guidance on this because its got me stumped – does loadbang load twice?


February 21, 2013 | 12:13 am

The point is that [live.path this_device] already sends the id without receiving a bang (if the device is loaded into the live set). So loadbang should be omitted here to avoid that the id is sent twice.


February 21, 2013 | 12:50 am

Hi broc, thanks for this. Its totally fixed my patch. I had no idea that "live.path this_device" also sends a bang


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