From 167e3f18f8fafec75c77fe54b6637d3a12f28a89 Mon Sep 17 00:00:00 2001 From: Ed Kelly Date: Fri, 14 Sep 2007 15:24:11 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r8722, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/ekext/; revision=8723 --- cup/cup.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cup/cup.c') diff --git a/cup/cup.c b/cup/cup.c index 6aca214..4211c59 100644 --- a/cup/cup.c +++ b/cup/cup.c @@ -20,6 +20,13 @@ void cup_bang(t_cup *y) y->f_count += 1; } +void cup_setbang(t_cup *y, t_floatarg f) +{ + y->f_count = f; + outlet_float(y->count, y->f_count); + y->f_count += 1; +} + void *cup_new(t_floatarg f) { t_cup *y = (t_cup *)pd_new(cup_class); @@ -39,4 +46,4 @@ void cup_setup(void) class_sethelpsymbol(cup_class, gensym("help-cup")); class_addbang(cup_class, cup_bang); class_addfloat(cup_class, cup_float); -} + class_addmethod(cup_class, (t_method)cup_setbang, gensym("setbang"), A_DEFFLOAT, 0);} -- cgit v1.2.1