How to find out when a patch has finished loading

Sep 25, 2007 at 12:22pm

How to find out when a patch has finished loading

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

http://www.olilarkin.co.uk

#33802
Sep 25, 2007 at 12:36pm

#113109
Sep 25, 2007 at 5:28pm

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

#113110

You must be logged in to reply to this topic.