route vs gate

Sep 11, 2012 at 4:02pm

route vs gate

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

#64328
Sep 11, 2012 at 5:11pm

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?

#232018
Sep 11, 2012 at 5:24pm

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

#232019
Sep 11, 2012 at 7:54pm

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!

#232020
Sep 11, 2012 at 11:53pm

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?

#232021
Sep 12, 2012 at 1:56pm

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

#232022

You must be logged in to reply to this topic.