route vs gate

annam's icon

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

Peter Castine's icon

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?

Roman Thilenius's icon

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

annam's icon

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's icon
Max Patch
Copy patch and select New From Clipboard in Max.

not exactly the same:

'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?

annam's icon

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