no I wasn't

now it's working as expected, thanks

--
do it yourself
http://antoine.villeret.free.fr

2017-01-02 19:15 GMT+01:00 Miller Puckette <[email protected]>:

> Odd... you're doing this, right:
>
>   class_addmethod(helloworld_class, (t_method) helloworld_loadbang,
>     gensym("loadbang"), A_FLOAT, 0);
>
> ?
>
> cheers
> Miller
> On Mon, Jan 02, 2017 at 06:50:57PM +0100, Antoine Villeret wrote:
> > I only get "1" aka LB_INIT, I didn't get the LB_LOAD ("0")
> >
> > --
> > do it yourself
> > http://antoine.villeret.free.fr
> >
> > 2017-01-02 18:35 GMT+01:00 IOhannes zmölnig <[email protected]>:
> >
> > > Am 02. Jänner 2017 17:57:11 MEZ, schrieb Antoine Villeret <
> > > [email protected]>:
> > > >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
> > >
> > > _______________________________________________
> > > [email protected] mailing list
> > > UNSUBSCRIBE and account-management -> https://lists.puredata.info/
> > > listinfo/pd-list
> > >
>
> > _______________________________________________
> > [email protected] mailing list
> > UNSUBSCRIBE and account-management -> https://lists.puredata.info/
> listinfo/pd-list
>
>
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to