diff options
author | N.N. <electrickery@users.sourceforge.net> | 2015-06-24 10:29:57 +0000 |
---|---|---|
committer | N.N. <electrickery@users.sourceforge.net> | 2015-06-24 10:29:57 +0000 |
commit | 06fb067d0566054f9b9c9fc088903d12fcf653ec (patch) | |
tree | 487b5b477f875bd6ba7b91f642127a8f1992b62e /cyclone | |
parent | 0a678b130f9e7de04e0476248f4f93f1cb8d85a4 (diff) |
Fixed [lookup~] behaviour, now like Max5
svn path=/trunk/externals/miXed/; revision=17495
Diffstat (limited to 'cyclone')
-rw-r--r-- | cyclone/sickle/lookup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cyclone/sickle/lookup.c b/cyclone/sickle/lookup.c index 3f51e69..e6fd142 100644 --- a/cyclone/sickle/lookup.c +++ b/cyclone/sickle/lookup.c @@ -36,7 +36,9 @@ static t_int *lookup_perform(t_int *w) { float off = *oin++; /* msp: converted to int (if not a signal) */ int siz = (int)*sin++ - 1; /* msp: converted to int (signal too) */ - float pos = (siz > 0 ? off + siz * (*xin++ + 1.0) * 0.5 : off); + float pos; +// pos = (siz > 0 ? off + siz * (*xin++ + 1.0) * 0.5 : off); // range: off - (off + siz) + pos = (siz > 0 ? off + (siz - off) * (*xin++ + 1.0) * 0.5 : off); // range: off - siz int ndx = (int)pos; int ndx1 = ndx + 1; if (ndx1 > 0 && ndx1 < vecsize) |