diff --git a/delay.c b/delay.c index c73889f..91236c9 100644 --- a/delay.c +++ b/delay.c @@ -42,14 +42,14 @@ void delay_process( for( size_t i = 0; i < frame_size; ++i ) { if( delay->duration > 0 ) { out[i] = - (1.0 - delay->mix) * in[i] - + delay->mix * delay->buf[ delay->buf_idx ]; + 0.5 * in[i] + + 0.5 * delay->mix * delay->buf[ delay->buf_idx ]; delay->buf[ delay->buf_idx ] *= delay->feedback; delay->buf[ delay->buf_idx ] += (1.0 - delay->feedback) * in[i]; delay->buf_idx = (delay->buf_idx + 1) % delay->duration; } else { - out[i] = in[i]; + out[i] = 0.5 * in[i]; } } }