Skip to content
Snippets Groups Projects
Commit 1f4c05a5 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

further refined trigger mechanism to offer ability to convert anything->symbol

parent e7acc479
No related branches found
No related tags found
No related merge requests found
......@@ -977,6 +977,9 @@ typedef struct _trigger
t_triggerout *x_vec;
} t_trigger;
// forward declaration
static void trigger_symbol(t_trigger *x, t_symbol *s);
static void *trigger_new(t_symbol *s, int argc, t_atom *argv)
{
t_trigger *x = (t_trigger *)pd_new(trigger_class);
......@@ -1100,8 +1103,8 @@ static void trigger_anything(t_trigger *x, t_symbol *s, int argc, t_atom *argv)
else if (u->u_type == TR_STATIC_SYMBOL)
{
outlet_symbol(u->u_outlet, &u->u_sym);
}
else pd_error(x, "trigger: can only convert 'a' to 'b' or 'a'");
}
else trigger_symbol(x, s);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment