Scheduling Errors in Max for Live

Alec Gordon's icon

Hey,
I'm trying to understand a patch that I found which fires clips in live. It detects if a clip is already present, and if so plays it. If it isn't it will launch a new one. This seems to work only intermittently, with there being scheduling errors that create some kind of feedback loop. I looked over an article from about 10 years ago explaining how to fix it, but I found that regardless of the defer/deferlows and delays I put in I can't prevent it. If I remove all the connections and manually send the data around the patch it removes most of the errors, but there are a few that are still present, which are preventing me from operating it properly.

Can anyone help me out?

Jan M's icon

have you tried putting a breakpoint and using the the step debugger?
without seeing the actual patch it’s hard to say anything meaningful

Source Audio's icon

what you describe can work only once, because as soon as 1 clip is detected,
the whole aparatus makes no sense any more.
So why not simply loadbang new clip and play it ?