Forums > Dev

More than 9 inlets?

September 8, 2008 | 9:17 pm

Hi, I need 19 float inlets. Using addftx and floatin is limited to 9 inlets (if I try more then I get the error message "inlet method out of range").

Is there a recipe or example anywhere showing how to make 19 inlets? Has it to do with "proxies" ?

Thanks!

Oyvind Hammer


September 8, 2008 | 9:20 pm

On 8 sept. 08, at 23:17, Oyvind Hammer wrote:

> Hi, I need 19 float inlets. Using addftx and floatin is limited to 9
> inlets (if I try more then I get the error message "inlet method out
> of range").
>
> Is there a recipe or example anywhere showing how to make 19 inlets?
> Has it to do with "proxies" ?

Yep, you have to use proxy for more than > 9 inlets. It’s best to use
proxy anyway.

ej


September 8, 2008 | 9:28 pm

Hi Oyvind!

One way to do this would be set it up as an MSP object and create
"signal" inlets via:

dsp_setup((t_pxobject *)x, 19);

in the myobject_new method, and in the main method use:

addfloat((method)myobject_float);

so that myobject_float() will respond to a float coming in any of the
inlets. Then you will need to disambiguate which inlet doing
something like this:

for(i = 0; i < 19; i++) {
if (i == x->x_obj.z_in) {
// now you know!
}
}

brad

http://music.columbia.edu/~brad

On Sep 8, 2008, at 5:17 PM, Oyvind Hammer wrote:

>
> Hi, I need 19 float inlets. Using addftx and floatin is limited to 9
> inlets (if I try more then I get the error message "inlet method out
> of range").
>
> Is there a recipe or example anywhere showing how to make 19 inlets?
> Has it to do with "proxies" ?
>
> Thanks!
>
>
> Oyvind Hammer


September 8, 2008 | 9:28 pm

did you try to create one inlet which can receive a list message?
/G

On Mon, Sep 8, 2008 at 10:17 PM, Oyvind Hammer wrote:

>
> Hi, I need 19 float inlets. Using addftx and floatin is limited to 9 inlets
> (if I try more then I get the error message "inlet method out of range").
>
> Is there a recipe or example anywhere showing how to make 19 inlets? Has it
> to do with "proxies" ?
>
> Thanks!
>
>
> Oyvind Hammer
>


September 9, 2008 | 8:47 am

Proxy is your friend.

I have an object that can sprout up to 2,000 inlets. Proxies.

The MSP approach is cute, but it’s also just using proxies.

Proxies, proxies, proxies.


September 9, 2008 | 12:33 pm

On Sep 9, 2008, at 4:47 AM, Peter Castine wrote:

> The MSP approach is cute, but it’s also just using proxies.

That’s what I thought, but I’m a lazy person.

brad

http://music.columbia.edu/~brad


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