diff options
author | Thomas O Fredericks <mrtof@users.sourceforge.net> | 2009-12-18 14:41:58 +0000 |
---|---|---|
committer | Thomas O Fredericks <mrtof@users.sourceforge.net> | 2009-12-18 14:41:58 +0000 |
commit | c833dce1781c722cd9bf14f08cef87056ebdf280 (patch) | |
tree | bf01e09054851d253e60aef531c99af55bac0b7e /src/listUnfold.c | |
parent | 9c3ae143b3d288c1363a191d7175383135dd0de0 (diff) |
Added new hardware to Makefile
svn path=/trunk/externals/tof/; revision=12840
Diffstat (limited to 'src/listUnfold.c')
-rw-r--r-- | src/listUnfold.c | 16 |
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++; + } } |