How to find out when a patch has finished loading

oli larkin's icon

Does anyone know a reliable solution to the following situation:

I am using scripting to load a very complex patch into a bpatcher object (within the main patch). This patch takes a couple of seconds to load. I need to automatically know when the file has finished loading in order to send it a configuration file.

Any ideas?

thanks,

oli

www.olilarkin.co.uk

jln's icon
Rob Ramirez's icon

some thoughts.

what happens if you use one loadbang to a trigger object to trigger all initialization, and then use the left most outlet of trigger to cue your "patch-done-loading" routine.

or if you are loading buffers, then chain your buffers so that the read done outlet trigger the next buffers read message, and use the last buffers read done outlet to trigger the patch done loading routine.

other than that, hmmm, maybe put the final loadbang to a deferlow. should make it happen after all the loading, right?

let us if you find anything.

-rob