Re: [linux-audio-dev] |||| Gain/Peak indicator

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] |||| Gain/Peak indicator
From: Steve Harris (S.W.Harris_AT_ecs.soton.ac.uk)
Date: Sat Jun 28 2003 - 17:27:13 EEST


Peak amplitude is just that - the largest abs sample value since you last
read it.

RMS is calculated by summing sqaured samples over some period of time then
taking the sqrt of the mean.

Limiters and compressors are much trickier.

On Mon, Jun 23, 2003 at 05:50:08 +0300, Ralfs Kurmis wrote:
> Hi to developers
>
> I'm search for realtime sound and peak gain indicator (db) algorithms and
> formulas.
> My first idea is all 16 bit absolute sound_sample_values in time interval
> t1...t2 compare with ethalon sine wave
> ( where ethalon sine wave amplitude is 32000 and lenght/2 is t2-t1 )
>
> Also for sound limiter (compressor) algorithms .


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sat Jun 28 2003 - 17:42:13 EEST