Forums > MaxMSP

Can you always pass a list to the first inlet


Dec 07 2013 | 7:06 pm

I know on some objects (such as note out) you can pass a three item list to the first inlet as opposed to passing three separate messages to each of the three inlets.

Can you do this for every object with multiple inlets? (I.e. will Max automatically realize that the first item in the list is for inlet 1, the second is for inlet 2 etc.)?

Thanks

Dec 08 2013 | 8:20 am

Mostly. Certainly for simple standard objects.

Max generally handles the convention automatically, but I recall from some object or other that I wrote that there were circumstances in which the object had to take over and do the work itself. I don’t recall the exact details right now.

Basically, expect the list mapping to work, but don’t get too upset if it doesn’t. There’s always unpack.

Dec 08 2013 | 11:50 am

it works for most objects which do not need or expect a list on the first inlet.

if it is good manner or good readable when you send "4 5" to [+ ] is another question.

but pretty useful is it with pack/list/pak, where ALL inlets work like that.

-110

Dec 09 2013 | 12:34 am

Thank you both.

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

Forums > MaxMSP