i went through the writing-externals-tutorial and i'm a little confused. when writing max-externals one can bind functions to floats coming into an inlet other than the leftmost by using the addftx() function.
the only way to do that in pd - as far as i know now - would be to bind a dummy message with a A_DEFFLOAT argument to a function that will handle the second float. and to create the second inlet as inlet_new(..., ..., gensym("float), gensym("dummy"));
so when a float is received at the second inlet, the float-message is substituted with the dummy-message, and the apropiate function is called.
there has to be another way to do this.
can anybody help, please?
thank you!
max
Maximilian Marcoll wrote:
the only way to do that in pd - as far as i know now - would be to bind a dummy message with a A_DEFFLOAT argument to a function that will handle the second float. and to create the second inlet as inlet_new(..., ..., gensym("float), gensym("dummy"));
right
so when a float is received at the second inlet, the float-message is substituted with the dummy-message, and the apropiate function is called.
there has to be another way to do this.
why ? it should provide exactly the functionality you need. (although you will soon get into a real hazzle when trying to bind different types to any single inlet but the first)
can anybody help, please?
mfg.a.sdr IOhannes