Forums > Dev

bug in matrix~ (max number inlets/outlets)

November 9, 2006 | 11:00 pm

Hi c74 folks,

I am on a Mac Powerbook 2.16 Ghz Intel Core Duo.

I instantiated matrix~ with 250 inlets and 250 outlets
and it all worked great. When I increased the number
of inlets to 500, Max nicely reported in the Max
window "resizing to 250 signals" and it all worked
great again. However when I increased the number of
outlets to 500, upon turning the DSP on Max crashed
immediately. So it seems that the matrix~ object has a
set limit for the number of inlets that can be
created, but no limit for the number of outlets.

So this leads to my following dev question:

In z_dsp.h I see that there’s an enum constant
SYS_MAXSIGS = 250, which is the "number of signal
inlets you can have in an object".

Does this mean that:

1 – when writing an MSP object with a variable number
of inlets I always have to check against the user
error of instantiating the object with more than 250
inlets at creation time?

2 – There’s no set limit for the number of outlets,
but there should be because Max/MSP doesn’t like too
many inlets as well as too many outlets? If this is
the case what’s the limit for the number of audio
outlets I should check for in my MSP objects?

Thanks for shedding any light on this.

- Luigi

————————————————————
THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
————————————————————

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.

http://new.mail.yahoo.com


November 9, 2006 | 11:23 pm

On Nov 9, 2006, at 3:00 PM, Luigi Castelli wrote:

>
> Does this mean that:
>
> 1 – when writing an MSP object with a variable number
> of inlets I always have to check against the user
> error of instantiating the object with more than 250
> inlets at creation time?

Yes, if you don’t want to crash.

> 2 – There’s no set limit for the number of outlets,
> but there should be because Max/MSP doesn’t like too
> many inlets as well as too many outlets? If this is
> the case what’s the limit for the number of audio
> outlets I should check for in my MSP objects?

Not sure without some investigation, but if it makes you feel better,
you can assume to be the same as inlets.

Sorry if this sounds rude, Luigi, but we’re focusing on what we feel
to be more important issues at the moment (i.e. Max 5), and these
questions are in our opinion really small issues that you’ve already
posted without response (signal inlet/outlet count used to be
restricted to 32, FWIW). I hope that this small bit of uncertainty
doesn’t cause you any problems.

Best,
Joshua


November 10, 2006 | 2:10 am

— Joshua Kit Clayton wrote:

> Sorry if this sounds rude, Luigi, but we’re focusing
> on what we feel
> to be more important issues at the moment (i.e. Max
> 5), and these
> questions are in our opinion really small issues
> that you’ve already
> posted without response (signal inlet/outlet count
> used to be
> restricted to 32, FWIW). I hope that this small bit
> of uncertainty
> doesn’t cause you any problems.
>

Got it. Thanks for taking the time to answer my
questions anyway.

Good luck with Max 5. I can’t wait…

- Luigi

————————————————————
THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
————————————————————

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.

http://new.mail.yahoo.com


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