aboutsummaryrefslogtreecommitdiff
path: root/pd/src/m_obj.c
diff options
context:
space:
mode:
Diffstat (limited to 'pd/src/m_obj.c')
-rw-r--r--pd/src/m_obj.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pd/src/m_obj.c b/pd/src/m_obj.c
index b5839003..ff2ff249 100644
--- a/pd/src/m_obj.c
+++ b/pd/src/m_obj.c
@@ -62,6 +62,13 @@ t_inlet *inlet_new(t_object *owner, t_pd *dest, t_symbol *s1, t_symbol *s2)
return (x);
}
+t_inlet *signalinlet_new(t_object *owner, t_float f)
+{
+ t_inlet *x = inlet_new(owner, &owner->ob_pd, &s_signal, &s_signal);
+ x->i_un.iu_floatsignalvalue = f;
+ return (x);
+}
+
static void inlet_wrong(t_inlet *x, t_symbol *s)
{
pd_error(x->i_owner, "inlet: expected '%s' but got '%s'",