<div dir="ltr">no I wasn't<div><br></div><div>now it's working as expected, thanks</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">--<br>do it yourself                       <br><a href="http://antoine.villeret.free.fr" target="_blank">http://antoine.villeret.free.fr</a><br></div></div>
<br><div class="gmail_quote">2017-01-02 19:15 GMT+01:00 Miller Puckette <span dir="ltr"><<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Odd... you're doing this, right:<br>
<br>
  class_addmethod(helloworld_<wbr>class, (t_method) helloworld_loadbang,<br>
    gensym("loadbang"), A_FLOAT, 0);<br>
<br>
?<br>
<br>
cheers<br>
<span class="HOEnZb"><font color="#888888">Miller<br>
</font></span><div class="HOEnZb"><div class="h5">On Mon, Jan 02, 2017 at 06:50:57PM +0100, Antoine Villeret wrote:<br>
> I only get "1" aka LB_INIT, I didn't get the LB_LOAD ("0")<br>
><br>
> --<br>
> do it yourself<br>
> <a href="http://antoine.villeret.free.fr" rel="noreferrer" target="_blank">http://antoine.villeret.free.<wbr>fr</a><br>
><br>
> 2017-01-02 18:35 GMT+01:00 IOhannes zmölnig <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>>:<br>
><br>
> > Am 02. Jänner 2017 17:57:11 MEZ, schrieb Antoine Villeret <<br>
> > <a href="mailto:antoine.villeret@gmail.com">antoine.villeret@gmail.com</a>>:<br>
> > >This explains the "wrong argument for loadbang method" but not why the<br>
> > >method is called twice at patcher loading.<br>
> ><br>
> > Does it not? Once for "init", once for "load".<br>
> ><br>
> ><br>
> ><br>
> > >><br>
> > >> the "loadbang" method is now called with a floating-point argument,<br>
> > >so you<br>
> > >> can do this:<br>
> > >><br>
> > >> static void loadbang_loadbang(t_loadbang *x, t_floatarg action)<br>
> > >> {<br>
> > >>     if (action == LB_LOAD)<br>
> > >>         outlet_bang(x->x_obj.ob_<wbr>outlet);<br>
> > >> }<br>
> > >><br>
> ><br>
> ><br>
> > mfg.ugd.fhj<br>
> > IOhannes<br>
> ><br>
> > --<br>
> > Sent from my pdp-11<br>
> ><br>
> > ______________________________<wbr>_________________<br>
> > <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
> > UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/" rel="noreferrer" target="_blank">https://lists.puredata.info/</a><br>
> > listinfo/pd-list<br>
> ><br>
<br>
> ______________________________<wbr>_________________<br>
> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
<br>
</div></div></blockquote></div><br></div>