Re: [LAD] Mixing audio: Noiseless volume changes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Monday, March 18, 2013 - 11:05 pm

On Mon, Mar 18, 2013 at 05:50:39PM -0400, Tim E. Real wrote:

> If I use a zero-crossing/zero-value detector and apply volume changes

Zero crossings are not 'safe'. You avoid a discontinuity in the signal
but there will still be one in the derivative of the signal. The spectrum
will be different, and noise will be reduced a bit, but it's by no means
'perfect'.

The approach I use it to make a quick fade. There are two variations.
In both cases you select a 'period size', this could be Jack's period,
or a multiple of it close to some predetermined time, or it could be
entirely independent of the outer context.

In the simplest case, just make linear fade between the current and the
new gain. If the fade time is long enough this will do for non-critical
things such as a volume control in a player, but it's still not good enough
for e.g. a high quality mixer.

In the more complex version, you also limit the amount of gain change
per period. So the gain change may take several periods (which can be
shorter in this case). It requires a bit of logic and state machinery,
but nothing esoteric.

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@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Mixing audio: Noiseless volume changes, Tim E. Real, (Mon Mar 18, 9:50 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Fons Adriaensen, (Mon Mar 18, 11:05 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Paul Davis, (Mon Mar 18, 10:47 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Tim E. Real, (Mon Mar 18, 11:05 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Tim E. Real, (Mon Mar 18, 11:43 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Fons Adriaensen, (Mon Mar 18, 11:58 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Tim E. Real, (Tue Mar 19, 12:31 am)
Re: [LAD] Mixing audio: Noiseless volume changes, James Morris, (Mon Mar 18, 11:28 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Fons Adriaensen, (Mon Mar 18, 11:45 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Harry van Haaren, (Tue Mar 19, 2:09 am)
Re: [LAD] Mixing audio: Noiseless volume changes, Tim Goetze, (Tue Mar 19, 3:17 am)
Re: [LAD] Mixing audio: Noiseless volume changes, Fons Adriaensen, (Tue Mar 19, 1:02 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Tim Goetze, (Tue Mar 19, 1:53 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Fons Adriaensen, (Tue Mar 19, 3:08 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Tim Goetze, (Tue Mar 19, 3:37 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Fons Adriaensen, (Tue Mar 19, 4:31 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Tim Goetze, (Tue Mar 19, 7:06 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Charles Z Henry, (Tue Mar 19, 10:26 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Fons Adriaensen, (Tue Mar 19, 10:57 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Charles Z Henry, (Tue Mar 19, 11:12 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Fons Adriaensen, (Tue Mar 19, 11:30 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Fons Adriaensen, (Tue Mar 19, 10:26 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Harry van Haaren, (Tue Mar 19, 1:31 pm)
Re: [LAD] Mixing audio: Noiseless volume changes, Harry van Haaren, (Tue Mar 19, 4:30 am)
Re: [LAD] Mixing audio: Noiseless volume changes, Tim Goetze, (Tue Mar 19, 3:22 am)