inlet-creation problems

Apr 29, 2009 at 1:11pm

inlet-creation problems

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

#43583
Apr 29, 2009 at 11:43pm

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");
#156369
May 3, 2009 at 7:05pm

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

#156370
May 3, 2009 at 7:08pm

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.

#156371

You must be logged in to reply to this topic.