[PD] trigger order of multiple env~ objects

Miller Puckette mpuckett at man104-1.ucsd.edu
Fri Oct 10 06:25:02 CEST 2003

It's terrible, but...

put one env~ in a sub-window
connect an audio outlet of that sub-window to yet another sub-window
put the second env~ in that one.

Guaranteed that the upper one outputs first.

The same technique works for delay read/write pairs; see example 


On Fri, Oct 10, 2003 at 04:47:28AM +0200, pix wrote:
> brain teaser for the day:
> you have two env~ objects, listening to two different audio sources, and
> you want to add the two resulting envelopes. the problem is, you need know
> which env~ will output last during each frame so that you can attach it to
> the first inlet of the + object. otherwise, you get the situation where
> you are actually adding the envelope of the current frame of one signal to
> the envelope of the previous frame of the other signal.
> i don't think there is an answer (where "depends on creation order" ==
> undefined == not an answer), but if there is one it would be nice.
> pix
> _______________________________________________
> PD-list mailing list
> PD-list at iem.at
> http://iem.at/cgi-bin/mailman/listinfo/pd-list

More information about the Pd-list mailing list