Forums > MaxMSP

order of execution / wait for execution

July 19, 2010 | 9:38 pm

I always thought the order of execution was right to left and that a a chain of events will go as far as possible before the next parallel (trigger) event occurs?

Am i making sense? Was that pure data?

I thought in the included example the right trigger bang would be delayed, go off and then the left bang. This is not the case. Is there a simple way to make this happen?

– Pasted Max Patch, click to expand. –

July 19, 2010 | 9:55 pm

It is going from right to left. The trigger send a bang out the right port, and then the left port. The way you have it configured, the delay causes the first bang to wait. If you want a delayed bang immediately followed by another bang, you need to do this.

– Pasted Max Patch, click to expand. –

July 20, 2010 | 10:35 pm

thanks for the replies!

Actually everything works as i suspected, only not with delays..

In this example everything originating from the right chain will execute before "100" is added to the pack and printed. Using a watchpoint-break on the chord under the first bang and the debugger shows it nicely.

suddenly a lot of my patching logic seemed untrustworthy.

– Pasted Max Patch, click to expand. –

July 21, 2010 | 12:51 am

well yes, you could say it is the purpose of [delay] or [pipe] to ignore the order.


July 21, 2010 | 1:33 am

That’s one of the reasons I use ‘em.


Viewing 5 posts - 1 through 5 (of 5 total)