diff options
Diffstat (limited to 'iemlib1/src')
-rw-r--r-- | iemlib1/src/peakenv_hold~.c | 2 | ||||
-rw-r--r-- | iemlib1/src/peakenv~.c | 2 | ||||
-rw-r--r-- | iemlib1/src/pvu~.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/iemlib1/src/peakenv_hold~.c b/iemlib1/src/peakenv_hold~.c index f21a8d2..6b64808 100644 --- a/iemlib1/src/peakenv_hold~.c +++ b/iemlib1/src/peakenv_hold~.c @@ -66,7 +66,7 @@ static t_int *peakenv_hold_tilde_perform(t_int *w) counter = x->x_counter; for(i=0; i<n; i++) { - absolute = (double)abs((double)(*in++)); + absolute = (double)fabs(*in++); if(counter > 0) counter--;// hold peride else diff --git a/iemlib1/src/peakenv~.c b/iemlib1/src/peakenv~.c index 9e25e2c..174624c 100644 --- a/iemlib1/src/peakenv~.c +++ b/iemlib1/src/peakenv~.c @@ -49,7 +49,7 @@ static t_int *peakenv_tilde_perform(t_int *w) for(i=0; i<n; i++) { - absolute = (double)abs((double)(*in++)); + absolute = (double)fabs(*in++); peak *= c1; if(absolute > peak) peak = absolute; diff --git a/iemlib1/src/pvu~.c b/iemlib1/src/pvu~.c index e1d4053..74b496a 100644 --- a/iemlib1/src/pvu~.c +++ b/iemlib1/src/pvu~.c @@ -99,7 +99,7 @@ static t_int *pvu_tilde_perform(t_int *w) { for(i=0; i<n; i++) { - absolute = abs((t_float)(*in++)); + absolute = (t_float)fabs(*in++); if(absolute > peak) peak = absolute; } |