Re: [LAD] Click-free fade-in algorithm for synths?

From: Paul Davis <paul@email-addr-hidden>
Date: Tue Sep 24 2019 - 23:26:53 EEST

On Tue, Sep 24, 2019 at 12:38 PM Johannes Lorenz <j.spam@email-addr-hidden-ho.me>
wrote:

> Counting zero crossings prevents
> clicking on lower notes, and it makes higher notes more punchy.

There's fundamentally no such thing as a zero crossing. You might have two
samples on either side of zero, but you still don't have a sample *at*
zero, so in the general case, truncating one of them to zero and
starting/ending there is still going to give you distortion and/or noise.
Obviously there may be cases where one of them is close enough to zero for
this not to be be an issue, but it's not a general method.
Ardour applies declick fades every time the transport starts and stops. You
can read about how we do it here:

https://github.com/Ardour/ardour/blob/master/libs/ardour/ardour/disk_reader.h#L135
https://github.com/Ardour/ardour/blob/master/libs/ardour/disk_reader.cc#L1445
https://github.com/Ardour/ardour/blob/master/libs/ardour/amp.cc#L163

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Wed Jan 1 02:16:09 2020

This archive was generated by hypermail 2.1.8 : Wed Jan 01 2020 - 02:16:10 EET