Re: [LAD] Mixing audio: Noiseless volume changes

From: Fons Adriaensen <fons@email-addr-hidden>
Date: Wed Mar 20 2013 - 01:29:59 EET

On Tue, Mar 19, 2013 at 06:12:21PM -0500, Charles Z Henry wrote:

> If it was always a fixed time over which you need to fade in, I think you
> could find a good analytical function to use, or make a table that always
> has a predictable effect.

Raised cosine is a good solution, but you don't need
sines and cosines. Try e.g.

    x * x * (3 - 2 * x)

with x in [0...1].

This can even be generated using only additions.

Ciao,

-- 
FA
A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Wed Mar 20 04:15:02 2013

This archive was generated by hypermail 2.1.8 : Wed Mar 20 2013 - 04:15:02 EET