Forums > Dev

inlet-creation problems

April 29, 2009 | 1:11 pm

hi everyone,

i ran into problems with the creation of inlets into my object: i want to have (from left to right) Signal Signal Int
but in my ‘NewMethod’ i somehow screw up Sad

here’s an excerpt from the method:

// create-method
void *HenonNew(double a, double b, long repeatValue) {
henon *x;
x = newobject(myClass);
dsp_setup((t_pxobject *)x,2);
outlet_new((t_pxobject *)x, "signal");
outlet_new((t_pxobject *)x, "signal");
intin((t_pxobject*)x, 2);

if anyone could give me a guess would be great!

thanksathousandtimes


April 29, 2009 | 11:43 pm

I bet it’s an order issue:

// declare inlets first from right to left
intin((t_pxobject*)x, 2);
dsp_setup((t_pxobject *)x,2);

// then declare outlets
outlet_new((t_pxobject *)x, "signal");
outlet_new((t_pxobject *)x, "signal");

May 3, 2009 | 7:05 pm

will mixing proxy and non-proxy inlets work using this method?


May 3, 2009 | 7:08 pm

It should. You’ll have to declare your inlet like "in2" or "ft2". Going to the proxy route seems to be the best choice though.


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