REQUEST: loadbang & loadmess with delay parameter

Feb 23, 2011 at 2:44pm

REQUEST: loadbang & loadmess with delay parameter

Hi folks-at-Cycling74,

Could you, in a future release, include an optional delay parameter in the loadbang and loadmess objects. For example “loadbang 100″ would mean that the bang is sent 100 ms after the patcher is loaded. Similarly, a “loadmess MESSAGE 150″ means that the message MESSAGE is sent 150 ms after loading.

Thanks!
-geoff

#55131
Feb 23, 2011 at 4:14pm

First of all, it would not be too much of a challenge to make an abstraction that would do this. However, you will find that this solution does not solve properly the problem you might run into: how to organize the order of instantiation. Depending on a variety of factors, loadbang will happen at some time during launch, but since you can never know exactly when it happens (in relation to what else is going on), the knowledge that it is 100 ms after that, is hardly of any use.

Even you might find that while a specific solution based on delaying loadbangs always works fine, when you bring that to another computer, it does not work anymore. This is especially an issue when building applications.

Users have been solving this problem in a variety of ways. One option is to work with a counter that enforces order by sending bangs to remote abstractions, while the counter increases by a confirmation that some initialization process has successfully been executed. The object deferlow is of crucial importance.

#198436
Feb 23, 2011 at 4:57pm

mat.orderedloadbang
might be of help.

It’s not delay but you can change the order that mat.orderedloadbangs loadbang.

loadbang

Attachments:
  1. V0002.zip
#198437
Feb 23, 2011 at 7:16pm

i also use abstractions for things like that; odered, delayed, symbols and lists-loadbang …
but … under circumstances [delay] can be a bit dangerous for loadbang.

#198438
Feb 23, 2011 at 11:51pm

I wrote a javascript that does this, I’ve only tested it with printing to the max window though. It was written more as javascript practise than anything else.

#198439
Feb 24, 2011 at 8:27am

Hi,

jvkr, of course this is easy to implement as an abstraction – that’s what I’m already doing. And i agree with you and Roman that this wouldn’t be a panacea, but there are a number of simple cases when I’ve found it to be very useful.

AudioMatt – thanks for your patch… the ordered loadbang doesn’t help me at the moment, but it would have in the past, and therefore it will in the future!

cheers
-geoff

#198440

You must be logged in to reply to this topic.