[ecasound] feature request: please separate normalization and histogram

From: Sergei Steshenko <sergstesh@email-addr-hidden>
Date: Fri Sep 05 2008 - 04:33:33 EEST

Hello All,

I didn't manage to separate histogram generation and normalization info -
I mean, it appears that they always come together as a result of '-ev'
switch:

"
(eca-chain) (audiofx) -- Amplitude statistics -----------------------------
Range, pos/neg, count,(%), ch1...n
Pos -1.0 dB: 4,0.000% 5,0.000%
Pos -2.0 dB: 43,0.000% 68,0.000%
Pos -4.0 dB: 1028,0.006% 1071,0.007%
Pos -8.0 dB: 48966,0.308% 47556,0.299%
Pos -16.0 dB: 1160168,7.303% 1155192,7.272%
Pos -32.0 dB: 4494766,28.294% 4508264,28.379%
Pos -64.0 dB: 1741875,10.965% 1735342,10.924%
Pos -inf.0 dB: 564683,3.555% 563595,3.548%
Neg -inf.0 dB: 438434,2.760% 437734,2.755%
Neg -64.0 dB: 1734430,10.918% 1731367,10.899%
Neg -32.0 dB: 4481504,28.210% 4495535,28.299%
Neg -16.0 dB: 1174825,7.395% 1164178,7.328%
Neg -8.0 dB: 44274,0.279% 44751,0.282%
Neg -4.0 dB: 924,0.006% 1239,0.008%
Neg -2.0 dB: 56,0.000% 68,0.000%
Neg -1.0 dB: 16,0.000% 31,0.000%
(audiofx) Peak amplitude, period: pos=0.96542 neg=0.99989.
(audiofx) Peak amplitude, all : pos=0.96542 neg=0.99989.
(audiofx) Clipped samples, period: pos=0 neg=0.
(audiofx) Clipped samples, all : pos=0 neg=0.
(audiofx) Max gain without clipping, all: 1.00011.
(audiofx) -- End of statistics --------------------------------
".

Histogram calculation is much more expensive that just finding max
amplitude, so performance-wise it makes sense to separate the
functionalities, especially in the light of our discussion of performance
impact of checking sample count not being zero :-).

Thanks,
  Sergei.

      

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Fri Sep 5 08:15:02 2008

This archive was generated by hypermail 2.1.8 : Fri Sep 05 2008 - 08:15:02 EEST