[PD] Pass External Argument as Output on Creation

Ricky Graham rickygrahammusic at gmail.com
Sat Jul 23 15:08:08 CEST 2016


I’ll give that a whirl… thanks, Matt.

> On Jul 23, 2016, at 3:04 PM, Matt Barber <brbrofsvl at gmail.com> wrote:
> 
> Not 100% sure this would work, but you could maybe give your class a "loadbang" method. Depending on how it's used with other objects, you might put the actual send in a clock with a delay of 0 so that it runs after your other loadbang initialization, for extra insurance.
> 
> So, if your class is graham_class...
> 
> In your graham_setup:
> 
> class_addmethod(graham_class, (t_method)graham_loadbang, gensym("loadbang"), 0);
> 
> 
> In your graham_new:
> 
> x->x_clock = clock_new(x,(t_method)graham_wait);
> 
> 
> In your graham_free:
> 
> clock_free(x->x_clock);
> 
> 
> In your graham_loadbang:
> 
> clock_delay(x->x_clock, 0);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160723/f49de903/attachment.html>


More information about the Pd-list mailing list