Re: [PD] "sorry: only 5 args typechecked; use A_GIMME"

2017-02-13 Thread Chris Chronopoulos
oh, i see. i thought the argument after A_DEFFLOAT was the default value of the float. so it's a 0-termination - got it! On Mon, Feb 13, 2017 at 4:03 AM, IOhannes m zmoelnig wrote: > On 2017-02-12 22:23, Chris Chronopoulos wrote: > > registered with class_new(..., A_DEFFLOAT)

Re: [PD] "sorry: only 5 args typechecked; use A_GIMME"

2017-02-13 Thread IOhannes m zmoelnig
On 2017-02-12 22:23, Chris Chronopoulos wrote: > registered with class_new(..., A_DEFFLOAT) be sufficient for this simple > case? this worked for me on 0.43.4; why doesn't it work in 0.47? > oh. of course Pd can do *that* for you. the problem here is, that your code is just bogus: class_new()

Re: [PD] "sorry: only 5 args typechecked; use A_GIMME"

2017-02-12 Thread Chris Chronopoulos
thanks IOhannes, that's very helpful. by changing the callback signature to: euclid_new(t_symbol *s, int argc, t_atom *argv) i was able to get it working with A_GIMME. but one thing still bothers me: this is the constructor for the class, and i really only want to support instantiation with a

Re: [PD] "sorry: only 5 args typechecked; use A_GIMME"

2017-02-06 Thread IOhannes m zmoelnig
On 2017-02-06 07:42, Chris Chronopoulos wrote: > Code is attached. Any suggestions? What's this typechecking/A_GIMME Pd has special, "optimized" functions to check the types of arguments. basically, if you have a callback function (and from a pure "C" perspective, the class-methods of an objects

[PD] "sorry: only 5 args typechecked; use A_GIMME"

2017-02-05 Thread Chris Chronopoulos
Hi list, Some time ago I wrote an external for generating euclidean rhythms. It worked in pd-extended (0.43.4), which I was using at the time. Now I've moved over to vanilla 0.47.1, and when I try to instantiate it, I get the following error: class euclid: sorry: only 5 args typechecked; use