Forums > MaxMSP

route vs gate


Sep 11 2012 | 4:02 pm

route 1 2 3 4 and gate 1 2 3 4 seem to have the same effect. Are there differences? Thanks.

Sep 11 2012 | 5:11 pm

Completely different. [gate 1 2 3 4] isn’t even valid (it generates an error message and ignores the last two arguments).

If you’ve spent some time with the documentation, the differences should be clear. If it’s still not clear, can you specify where, and what it is you think the two are doing?

Sep 11 2012 | 5:24 pm

and … route will remove the first number if the input is a list

Sep 11 2012 | 7:54 pm

Ok, you are right, that gate 1 2 3 4 would create an error. But route 1 2 3 4 and gate 4 would have the same effect. For example live.step
can send output to different channels using route or using gate!


ak
Sep 11 2012 | 11:53 pm

not exactly the same:

-- Pasted Max Patch, click to expand. --

‘list’ is an undocumented message. It seems to put the second (and only numerical) element into right inlet. And, since in [gate]’s right inlet is hot, first this value is outputted and then gate changes its destination outlet.

btw @more_experienced: has that feature any application?

Sep 12 2012 | 1:56 pm

Andrzej, thank you very much for your interest. Didn´t know, that gate can handle lists!

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

Forums > MaxMSP