On 07/03/2014 07:14 PM, Rob Esler via Pd-list wrote:
Thanks everyone.
The inlet_new(…) method of dispatching a bang to a bang2 t_symbol works
great. I had to change the class_addmethod a little from the x_time.c
example. Not sure why on my build I have to add a t_atomtype (instead of
Hi all -
The easiest way to do this is the way the timer object does it (see
timer_new() in x_time.c) - the line that creates the inlet is:
inlet_new(x-x_obj, x-x_obj.ob_pd, gensym(bang), gensym(bang2));
... then when teh inlet get a bang, it calls timer's bang2 method. (The
timer object
Thanks everyone.
The inlet_new(…) method of dispatching a bang to a bang2 t_symbol works
great. I had to change the class_addmethod a little from the x_time.c example.
Not sure why on my build I have to add a t_atomtype (instead of just
terminating with a 0) as an argument but this is
Hello everyone,
My intention is to have an external with an active inlet that accepts a
bang and at least one passive inlet that also accepts a bang. The active
inlet works fine. However, I don't see an equivalent function call for
passive bang inlets similar to creating a passive float
Hi Rob,
If you look at the code for floatinlet_new and friends, you'll see they all
create an inlet and then associate it with the addy of member variable. If
there were a banginlet_new, it could certainly create the inlet on behalf of
your object, but what would it store? Bang doesn't have a