1 /* code for the "obj3" pd class. This adds an outlet and a state variable. */
12 void obj3_float(t_obj3
*x
, t_floatarg f
)
14 outlet_float(x
->x_outlet
, f
+ x
->x_value
);
17 void obj3_ft1(t_obj3
*x
, t_floatarg g
)
26 t_obj3
*x
= (t_obj3
*)pd_new(obj3_class
);
27 inlet_new(&x
->x_ob
, &x
->x_ob
.ob_pd
, gensym("float"), gensym("ft1"));
28 x
->x_outlet
= outlet_new(&x
->x_ob
, gensym("float"));
34 obj3_class
= class_new(gensym("obj3"), (t_newmethod
)obj3_new
,
35 0, sizeof(t_obj3
), 0, 0);
36 class_addmethod(obj3_class
, (t_method
)obj3_ft1
, gensym("ft1"), A_FLOAT
, 0);
37 class_addfloat(obj3_class
, obj3_float
);
This page took 0.627684 seconds and 4 git commands to generate.