diff options
author | N.N. <electrickery@users.sourceforge.net> | 2015-01-03 14:25:31 +0000 |
---|---|---|
committer | N.N. <electrickery@users.sourceforge.net> | 2015-01-03 14:25:31 +0000 |
commit | c0095d770a248baeb0f403a7c9fc13ecf6b19868 (patch) | |
tree | 547f469c007e007731df48c133a61d69626e14d1 /cyclone/sickle/lookup.c | |
parent | a32b8d2d0fff6de7c498c021466766428923ffd6 (diff) |
completes the 64-pit support started with rev 17393, also adds a log message with version number to each changed object.
svn path=/trunk/externals/miXed/; revision=17397
Diffstat (limited to 'cyclone/sickle/lookup.c')
-rw-r--r-- | cyclone/sickle/lookup.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cyclone/sickle/lookup.c b/cyclone/sickle/lookup.c index 1c6a8af..dd2b203 100644 --- a/cyclone/sickle/lookup.c +++ b/cyclone/sickle/lookup.c @@ -6,6 +6,7 @@ more compatible (and less useful). */ #include "m_pd.h" +#include "shared.h" #include "sickle/sic.h" #include "sickle/arsic.h" @@ -30,7 +31,7 @@ static t_int *lookup_perform(t_int *w) t_float *oin = (t_float *)(w[4]); t_float *sin = (t_float *)(w[5]); int vecsize = sic->s_vecsize; - t_float *vec = sic->s_vectors[0]; /* playable implies nonzero (mono) */ + t_word *vec = sic->s_vectors[0]; /* playable implies nonzero (mono) */ while (nblock--) { float off = *oin++; /* msp: converted to int (if not a signal) */ @@ -40,12 +41,12 @@ static t_int *lookup_perform(t_int *w) int ndx1 = ndx + 1; if (ndx1 > 0 && ndx1 < vecsize) { - float val = vec[ndx]; - *out++ = val + (vec[ndx1] - val) * (pos - ndx); + float val = vec[ndx].w_float; + *out++ = val + (vec[ndx1].w_float - val) * (pos - ndx); } /* CHECKED: */ - else if (ndx1 == 0) *out++ = *vec * (pos + 1.0); - else if (ndx1 == vecsize) *out++ = vec[ndx] * (ndx1 - pos); + else if (ndx1 == 0) *out++ = vec[0].w_float * (pos + 1.0); + else if (ndx1 == vecsize) *out++ = vec[ndx].w_float * (ndx1 - pos); else *out++ = 0; } } @@ -91,4 +92,6 @@ void lookup_tilde_setup(void) arsic_setup(lookup_class, lookup_dsp, SIC_FLOATTOSIGNAL); class_addmethod(lookup_class, (t_method)lookup_set, gensym("set"), A_SYMBOL, 0); + logpost(NULL, 4, "this is cyclone/lookup~ %s, %dth %s build", + CYCLONE_VERSION, CYCLONE_BUILD, CYCLONE_RELEASE); } |