diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-01-03 11:15:25 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-01-03 11:15:25 +0000 |
commit | 34a2ba5cba836ebc1211b33381c648160ca71ef5 (patch) | |
tree | be8e947aea87766c519853e6ab8fc1bd71425194 /src/sgn~.c | |
parent | 9dd67c7311b245bb138545f097b60b07bb4976b5 (diff) |
use t_float/t_sample instead of "float" and where appropriate
svn path=/trunk/externals/zexy/; revision=9111
Diffstat (limited to 'src/sgn~.c')
-rw-r--r-- | src/sgn~.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -39,7 +39,8 @@ static t_int *sgnTilde_perform(t_int *w) int n = (int)(w[3]); t_sample x; while (n--) { - if ((x=*in++)>0.) *out++=1.; + x=*in++; + if (x>0.) *out++=1.; else if (x<0.) *out++=-1.; else *out++=0.; } |