aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Blechmann <timblech@users.sourceforge.net>2004-09-07 10:31:27 +0000
committerTim Blechmann <timblech@users.sourceforge.net>2004-09-07 10:31:27 +0000
commit64ac1b68a9e657bb78cf3405c6665faf41bc5a61 (patch)
treead9a06fcf010ced9d2eb2ee962690914608e7947
parent4b76cd922db22e0fac65d26b49882c140a4a18b5 (diff)
lookup index to symbol will be sent to the outlet ...
svn path=/trunk/externals/zexy/; revision=2017
-rw-r--r--src/z_index.c8
1 files changed, 7 insertions, 1 deletions
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)