Hi all, I'm trying to create an external that has one float inlet and a number of signal inlets corresponding to the creation argument. Something like [nfader 4] should have four signal inlets and one float inlet for the interpolation parameter.
Yes, I already found abstract-based solutions but dynamic patching is black magic to me so I'd rather code this in C with which I'm quite comfortable.
The problem is I thought I could have a t_inlet **inlets field in the object's struct and then allocate the inlets with the usual combo of (t_inlet **)malloc(n * sizeof(t_inlet *)) but apparently sizeof does not have access to _inlet (aliased to t_inlet) as it is an externally defined symbol.
Bottom line: all the examples I could think of that have arbitrary amounts of inlets (and outlets for that matter) are bondo from cyclone and pack from vanilla. I tried expr~ but its complexity is not really helping…
… pointers?

I'm currently trying to figure out how to set up the DSP function with all those parameters, but