[PD-dev] how to create second inlet that accepts both floats and symbols

IOhannes m zmoelnig zmoelnig at iem.at
Thu Jul 18 19:51:54 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-07-18 19:04, IOhannes m zmoelnig wrote:
> 
> basically you ahve two options: - allow "lists" at the second
> inlet, and check whether the list has only one argument of type
> A_FLOAT or A_SYMBOL:
> 
> /* creating the inlet */ inlet_new((t_object*)x, (t_pd*)x,
> gensym("list"), gensym("list2"));

ah i forgot: this obviously will only work if the first inlet of the
object need not accept all messages on it's own behalf, as the "list2"
selector will be reserved for the 2nd inlet.

fgmasdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlHoKzcACgkQkX2Xpv6ydvSi9gCeLnp6wsE644eaYsmwFYPAGrfP
wosAnRUCr9jOJ6ho++oBIYoSNHA36NV+
=Q4WI
-----END PGP SIGNATURE-----



More information about the Pd-dev mailing list