aboutsummaryrefslogtreecommitdiff
path: root/gui/fatom.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/fatom.h')
-rw-r--r--gui/fatom.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/fatom.h b/gui/fatom.h
index 6cba41c..8c0854e 100644
--- a/gui/fatom.h
+++ b/gui/fatom.h
@@ -334,6 +334,11 @@ static void fatom_float(t_fatom* x,t_floatarg f)
outlet_float(x->x_obj.ob_outlet,f);
}
+static void fatom_bang(t_fatom* x,t_floatarg f)
+{
+ outlet_float(x->x_obj.ob_outlet,x->x_val);
+}
+
static void fatom_f(t_fatom* x,t_floatarg f)
{
x->x_val = f;
@@ -396,6 +401,7 @@ void fatom_setup_common(t_class* class)
{
class_addfloat(class, (t_method)fatom_float);
+ class_addbang(class, (t_method)fatom_bang);
class_addmethod(class, (t_method)fatom_f, gensym("f"),
A_FLOAT, 0);