[LAD] Click-free fade-in algorithm for synths?
fons at linuxaudio.org
Wed Sep 25 11:41:36 CEST 2019
On Tue, Sep 24, 2019 at 08:38:19PM +0200, Johannes Lorenz wrote:
> For example, in zynaddsubfx, we count the ascending zero crossings and
> calculate the fade-in length upon it . Then, an S-curve of that length is
> multiplied with the signal. Counting zero crossings prevents clicking on
> lower notes, and it makes higher notes more punchy. That algorithm works
> very well for a buffersize of 256 samples (at 44100 samples/s), but it fails
> at 32 samples (since the zero crossings of 32 samples are often not
That could be a good method, but why should this (or anything a synth
does) depend on period size ? Implementation may be a bit simpler if
it does, but that's poor excuse (IMHO :-)...
More information about the Linux-audio-dev