[PD-dev] loadbang order

Tim Blechmann TimBlechmann at gmx.net
Mon Aug 8 16:20:25 CEST 2005


hi all,

i'm currently thinking about an elegant way to get rid of the problem of
ordering loadbangs.

from what i understand, at the moment, there is only the following order
of loadbangs:
abstractions, subpatches, canvas.

but having two sub-patches, i can't be sure, which one is loadbanged
first. this can be a problem when having abstractions that should be
initialized from other abstractions somewhere in pd (not from a parent
canvas).
thus i'd propose the following:
there are basically two ways how abstractions communicate with each
other: inlets and receives.
i'd propose that every inlet / outlet / receive declares a loadbang
function. before this loadbang function has been run, the outlet events
are queued (maybe using clock callbacks), then then the behaviour is the
same as currently.
for the outlets it's more tricky, since they'd have to register a
loadbang on the parent canvas.

if someone can think of a more elegant way / has a different opinion,
i'd like to hear ...

cheers ..... tim

-- 
mailto:TimBlechmann at gmx.de    ICQ: 96771783
http://www.mokabar.tk

latest mp3: kMW.mp3
http://mattin.org/mp3.html

latest cd: Goh Lee Kwang & Tim Blechmann: Drone
http://www.geocities.com/gohleekwangtimblechmannduo/

After one look at this planet any visitor from outer space 
would say "I want to see the manager."
				      William S. Burroughs




More information about the Pd-dev mailing list