From 64ac1b68a9e657bb78cf3405c6665faf41bc5a61 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Tue, 7 Sep 2004 10:31:27 +0000 Subject: lookup index to symbol will be sent to the outlet ... svn path=/trunk/externals/zexy/; revision=2017 --- src/z_index.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/z_index.c b/src/z_index.c index a2a96eb..cee5b61 100644 --- a/src/z_index.c +++ b/src/z_index.c @@ -58,7 +58,13 @@ static int find_free(char **names, int maxentries) static void index_float(t_index *x, t_float findex) { int index = (int)findex; - if ((index > 0) && (index <= x->maxentries) && (x->names[index-1])) post("index[%d] = %s", index, x->names[index-1]); + if ((index > 0) && (index <= x->maxentries) && (x->names[index-1])) + { + /* TB: output symbol to outlet */ + t_symbol * s = gensym (x->names[index-1]); + outlet_symbol (x->x_obj.ob_outlet,s); + post("index[%d] = %s", index, x->names[index-1]); + } } static void index_auto(t_index *x, t_float automod) -- cgit v1.2.1