loadbang timing : (

teqy's icon

hi I have a big patch, it takes about 14 secs to load. I had some real strange problems arise as the patch grew over time, took me ages to find the culprit.

I found that a few loadbangs were happening pretty much as soon as I double click on the .maxpat file and therefore loadbang doesn't happen once the patch is fully loaded, which is what i thought would happen. for example.

i thought , loadbang = bang once patch is loaded - loadbang. right?? lol .

I found this out by adding a (delay 17000) after a loadbang on the upper most patch so it was visible once the patch loaded, and I attached a button after a 17000 delay so I could see the loadbang exit the delay.

the test:

As i double clicked the .maxpat file from my hard drive, I started a count down clock on my mobile phone, after about 14 seconds the patch seemed fully loaded as the graphics popped up, then about 2-3 seconds after, the load bang finally made its way to the output of the 17000 delay.(17 secs)

So I wonder is there a way to get a bang once the patch is truly fully loaded? so that i can use that bang to set up certain presets and things? Would it be a case to have a bang at the lower most patcher and send that bang back up to the upper level and use that?

any help would be cool.
: )

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

maybe you should use trigger and send bangs in order that results of time, that specific section need for loading?

Lume's icon
teqy's icon

Thanks napentro, I shall see your idea/patch later when I am on my other machine.

peace :)

teqy's icon

thanks lume. i shall check that out too.

its funny, so many problems i had in the past with a newly loaded patch, was probably because of the loadbang lol.

thanks for your help.

teqy's icon

lol, i saw this video a while ago but must have been looking out the window at a bird or rainbow. lol
yes that's a great way to re-fire all the loadbangs

i still wonder if there is a way to obtain a bang from max, when max has finally finished loading everything in the patch. I shall experiment and see if a bang in the lowest level patcher would be a good indication.

Lume's icon

Yeah, I once had these jamoma patchers running and they slowed down the computers at uni. I just chucked on a [delay 5000] and hoped for the best.
lol.

teqy's icon

hi : )

i just found (active) seems to be a good choice for sending an initial bang

(active)>>(send loadbang bang)>>(universal 1)

seems to have fixed the issue i had . i placed this at the top left of the upper most patch. whether that helped not sure , but it worked o.k

i may whack a ( delay 1000) in there,to be triple sure.

cheers for your help lume and napentro : )

teqy's icon

hello little kitty with flowers.

not yet, but shall have a look : )

Chris Muir's icon

In this thread, I discuss the approach I've been using:
https://cycling74.com/forums/patch-veeery-slow-to-behave-smoothly