[PD] can signal inlets that aren't the main inlet have float or message methods?
Jonathan Wilkes
jancsika at yahoo.com
Tue Mar 29 23:55:36 CEST 2016
Well, I just couldn't understand how to get the behavior you're after by looking at the inlet_new code. But looking at that cyclone wrapper function it seems
like you should be able to get the same behavior with a proxy inlet.
-Jonathan
On Tuesday, March 29, 2016 8:01 AM, Derek Kwan <derek.x.kwan at gmail.com> wrote:
>
> Actually after looking deeper I have no clue. It looks like cyclone has
> some helper functions to set a separate float method for the leftmost signal
> inlet. If you can figure out how it works perhaps you can try doing the same
> for a secondary inlet.
Hello Jonathan,
Yeah, scope's setup calls sic_setup (defined in shared/sickle/sic.c)
which takes in a dsp function and a float function as input. Looks like
if there is a float function passed, the signal stuff gets handled by
class_domainsignalin() while floats are handled by class_addfloat() and
there isn't a float function passed, it's just all handled by
CLASS_MAINSIGNALIN(). I know CLASS_MAINSIGNALIN() and class_addfloat()
are called from input into the main inlet, and i suppose
class_domainsignalin() is too? There's another function sic_inlet() in
sic.c but it looks like just a wrapper around inlet_new() and
pd_float().
Derek
=====================
Derek Kwan
www.derekxkwan.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160329/205b76ec/attachment-0001.html>
More information about the Pd-list
mailing list