1 /* code for the "obj2" pd class. This one, in addition to the "obj1"
2 code, has an inlet taking numbers. */
11 void obj2_float(t_obj2
*x
, t_floatarg f
)
16 void obj2_rats(t_obj2
*x
)
21 void obj2_ft1(t_obj2
*x
, t_floatarg g
)
30 t_obj2
*x
= (t_obj2
*)pd_new(obj2_class
);
31 inlet_new(&x
->x_ob
, &x
->x_ob
.ob_pd
, gensym("float"), gensym("ft1"));
39 obj2_class
= class_new(gensym("obj2"), (t_newmethod
)obj2_new
,
40 0, sizeof(t_obj2
), 0, 0);
41 class_addmethod(obj2_class
, (t_method
)obj2_rats
, gensym("rats"), 0);
42 class_addmethod(obj2_class
, (t_method
)obj2_ft1
, gensym("ft1"), A_FLOAT
, 0);
43 class_addfloat(obj2_class
, obj2_float
);
This page took 1.796979 seconds and 4 git commands to generate.