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/index.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/index.c')
-rw-r--r-- | cyclone/sickle/index.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cyclone/sickle/index.c b/cyclone/sickle/index.c index 036e6fb..c185e9e 100644 --- a/cyclone/sickle/index.c +++ b/cyclone/sickle/index.c @@ -6,6 +6,7 @@ #include <string.h> #include "m_pd.h" +#include "shared.h" #include "sickle/sic.h" #include "sickle/arsic.h" @@ -36,7 +37,7 @@ static t_int *index_perform(t_int *w) t_index *x = (t_index *)sic; t_float *xin = (t_float *)(w[3]); int index, maxindex = sic->s_vecsize - 1; - t_float *vp = sic->s_vectors[x->x_effchannel]; + t_word *vp = sic->s_vectors[x->x_effchannel]; if (vp) /* handle array swapping on the fly via ft1 */ { while (nblock--) @@ -46,7 +47,7 @@ static t_int *index_perform(t_int *w) index = 0; else if (index > maxindex) index = maxindex; - *out++ = vp[index]; + *out++ = vp[index].w_float; } } else while (nblock--) *out++ = 0; @@ -104,4 +105,6 @@ void index_tilde_setup(void) gensym("set"), A_SYMBOL, 0); class_addmethod(index_class, (t_method)index_ft1, gensym("ft1"), A_FLOAT, 0); + logpost(NULL, 4, "this is cyclone/index~ %s, %dth %s build", + CYCLONE_VERSION, CYCLONE_BUILD, CYCLONE_RELEASE); } |