Max crashes when I start my patch

robpal's icon

I've spent a long time building my first patch and trying to condense it using sub patches to make it a little tidier, but now it crashes MAX whenever I turn it on using the toggle. I've included a copy of the patch and would appreciate any help you can offer.

Cheers,

Rob

2230.A2final.maxpat
Max Patch
spectro's icon

Stack overflow here -> which appears to result from the rightmost p timesig from what max indicates...

robpal's icon

Ok, thanks. Any ideas how I fix it? As I said, this is my first patch so I'm still learning as I go.

spectro's icon

I don't have time to track down the patch thouroughly at this time, but removing the patchcord from the 3rd inlet of p timesig (the right hand one) to the counter "reset counter to number immediately" input seems to stop this happening. Ata guess: You may need to revise some of the logic connected to the "if $i1==0 then 0 else -1" which may help avoid the issue..

robpal's icon

Great cheers, I'll have a look. Feel free to have a play with it when you have time though ;-)