[PD] loadbang behavior

IOhannes zmölnig zmoelnig at iem.at
Mon Jan 2 18:35:04 CET 2017


Am 02. Jänner 2017 17:57:11 MEZ, schrieb Antoine Villeret <antoine.villeret at gmail.com>:
>This explains the "wrong argument for loadbang method" but not why the
>method is called twice at patcher loading.

Does it not? Once for "init", once for "load".



>>
>> the "loadbang" method is now called with a floating-point argument,
>so you
>> can do this:
>>
>> static void loadbang_loadbang(t_loadbang *x, t_floatarg action)
>> {
>>     if (action == LB_LOAD)
>>         outlet_bang(x->x_obj.ob_outlet);
>> }
>>


mfg.ugd.fhj
IOhannes

--
Sent from my pdp-11



More information about the Pd-list mailing list