aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas O Fredericks <mrtof@users.sourceforge.net>2009-12-18 14:41:58 +0000
committerThomas O Fredericks <mrtof@users.sourceforge.net>2009-12-18 14:41:58 +0000
commitc833dce1781c722cd9bf14f08cef87056ebdf280 (patch)
treebf01e09054851d253e60aef531c99af55bac0b7e
parent9c3ae143b3d288c1363a191d7175383135dd0de0 (diff)
Added new hardware to Makefile
svn path=/trunk/externals/tof/; revision=12840
-rw-r--r--src/listUnfold.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/listUnfold.c b/src/listUnfold.c
index 60f5ec4..60ad36a 100644
--- a/src/listUnfold.c
+++ b/src/listUnfold.c
@@ -28,18 +28,24 @@ typedef struct _listUnfold {
void listUnfold_bang(t_listUnfold *x)
{
+
+
//x->i_count = x->i_down;
if ( x->mode == 0) {
x->iterating = 0;
} else {
+ int i;
+
if ( x->iterating < x->ac ) {
- outlet_float(x->outlet2,x->iterating);
- if ( IS_A_FLOAT(x->av,x->iterating) ) {
- outlet_float(x->outlet1,atom_getfloat(x->av + x->iterating));
+ i = x->iterating;
+ x->iterating++;
+ outlet_float(x->outlet2,i);
+ if ( IS_A_FLOAT(x->av,i) ) {
+ outlet_float(x->outlet1,atom_getfloat(x->av + i));
} else {
- outlet_symbol(x->outlet1,atom_getsymbol(x->av + x->iterating));
+ outlet_symbol(x->outlet1,atom_getsymbol(x->av + i));
}
- x->iterating++;
+
}
}