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
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 J07.execution.order.pd
cheers Miller
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@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
hi pix,
in max or cyclone there is a brute-force way, which is called 'buddy'.
K
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.