Forums > Dev

maximum number of inlets?

December 3, 2011 | 4:49 am

Hello – I’m using MaxSDK 5.1.7 to create an external object (using Xcode 4.2.1), for Max 6.0.1.

My external is defined to have 13 inlets – all but the first are either floats or ints. But only the first ten inlets appear when I instantiate the object in a patch.

Is there an upper limit on the number of inlets?

Thanks for any info

December 3, 2011 | 12:05 pm

Look through the SDK docs for proxies or proxy inlets.
It’s all there…


- Luigi

December 3, 2011 | 12:22 pm

Yes I know that proxies can be used as a means of sending lists through more than one inlet.

But that’s a separate question – what I’m asking is: Can there be more than ten inlets, without resorting to proxies?

>It’s all there…

I don’t see that question addressed in the doc (maybe I missed it) If you’re sure it’s there then a pointer would be much appreciated

Thank you

December 3, 2011 | 1:02 pm

Sorry Jay, I didn’t read your question carefully enough…
So the answer is no, you can’t have more than 10 inlets in an object.
(9 actually because the first inlet is always automatically given to you)

FYI: if you have access to the MaxMSP 4.5 SDK it can be inferred from there:

"Use intin() to create an inlet typed to receive only integers.

void intin (void *object, short index)

object: Your object.
index: Location of the inlet from 1 to 9. 1 is immediately to the right of the leftmost inlet.

intin() creates integer inlets. It takes a pointer to your newly created object and an integer n, from 1 to 9. The number specifies the message type you’ll get, so you can distinguish one inlet from another. For example, an integer sent in inlet 1 will be of message type in1 and a floating point number sent in inlet 4 will be of type ft4. You use addinx and addftx to add methods to respond to these messages."

- Luigi

December 3, 2011 | 1:09 pm

Ah, thanks – that settles that.

I’ll take your advice and go the proxy route then -can no longer evade familiarity with that approach i guess!

Thanks again – Cheers

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