From 1f4c05a5dc1027487087b55bbba1da1d637a97e0 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Thu, 28 Feb 2013 13:34:37 -0500
Subject: [PATCH] further refined trigger mechanism to offer ability to convert
 anything->symbol

---
 pd/src/x_connective.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/pd/src/x_connective.c b/pd/src/x_connective.c
index 90df22ec0..fcc5bd3ba 100644
--- a/pd/src/x_connective.c
+++ b/pd/src/x_connective.c
@@ -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);
     }
 }
 
-- 
GitLab