[PD] more than one active inlet?

Maximilian Marcoll marcoll at folkwang-hochschule.de
Mon Dec 15 13:25:52 CET 2003

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!


More information about the Pd-list mailing list