Dear Max/MSP dev'ers,
I'm in the process of porting one of my PD externals to Max/MSP, and
I've run into what seems to be a strange problem. In the PD object, the
first inlet and and first outlet are for control data, the others are
used for audio data. I try doing this in Max/MSP, and when I connect the
rightmost outlet to the inlet of another audio object I get:
error: ugen_connect dssi~ dac~ -1 1 (2 2)
In the Max console window.
The setup code looks like this:
dsp_setup((t_pxobject *)x, x->plugin_ins);
for(i = 0;i < x->plugin_outs; i++) outlet_new((t_pxobject *)x,
x->control_outlet = outlet_new ((t_pxobject *)x, "control");
The external works fine if outlet_new((t_pxobject *)x, "control") is
called first, but of course this results in the rightmost outlet being
the control outlet which is not what I want.
Is it a Max/MSP convention to have the in/outlets in a specfic order, or
am I doing something wrong in my code?