CLAM::NormalizationConfig Class Reference

Normalization is a CLAM implementation of 3 normalization's algorithms. More...

#include <Normalization.hxx>

List of all members.

Public Member Functions

 NormalizationConfig ()
 NormalizationConfig (const NormalizationConfig &prototype, const bool shareData=false, const bool deep=true)
 __COMMON_DYNAMIC_TYPE (NormalizationConfig, 2)
 __COMMON_DYN_ATTRIBUTE (0, public, int, Type) protected
bool LoadType (CLAM::Storage &s)
 __COMMON_DYN_ATTRIBUTE (1, public, TSize, FrameSize) protected
bool LoadFrameSize (CLAM::Storage &s)
void DefaultInit (void)
 The concrete dynamic type constructor calls DefaultInit().

Detailed Description

Normalization is a CLAM implementation of 3 normalization's algorithms.

  1. normalizes in relation to the maximum energy value of the signal
  2. normalizes in relation to the average energy of the signal
  3. scales the audio by the value under which lies 90% of the energy values that are not "silence"

The class's Do() function input is CLAM Audio, the ouput is the normalized Audio.

The class's configuration parameters are:

parameters default value) Comment
FrameSize 2205 - 0.05s @ 44.1 kHz Frame Size over which normalization takes place
Type (1)

Type of normalization to be applied. 1, 2 or 3 according to the normalizations descriptions above.

Author:
jricard@iua.upf.es
gpeter@iua.upf.es

Definition at line 64 of file Normalization.hxx.


Constructor & Destructor Documentation

CLAM::NormalizationConfig::NormalizationConfig (  )  [inline]

Definition at line 67 of file Normalization.hxx.

CLAM::NormalizationConfig::NormalizationConfig ( const NormalizationConfig prototype,
const bool  shareData = false,
const bool  deep = true 
) [inline]

Definition at line 67 of file Normalization.hxx.


Member Function Documentation

CLAM::NormalizationConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
TSize  ,
FrameSize   
) [inline]

Definition at line 69 of file Normalization.hxx.

CLAM::NormalizationConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
int  ,
Type   
) [inline]

Definition at line 68 of file Normalization.hxx.

CLAM::NormalizationConfig::__COMMON_DYNAMIC_TYPE ( NormalizationConfig  ,
 
)
void CLAM::NormalizationConfig::DefaultInit ( void   ) 

The concrete dynamic type constructor calls DefaultInit().

This allows user to initialize his/her object. But we define DefaultInit() here because we don't want to force writting one DefaultInit() function for each concrete dynamic type. If a dynamic type concrete class defines some (not-default) constructors, this should also call the DefaultInit().

See also:
CopyInit()

Reimplemented from CLAM::DynamicType.

Definition at line 27 of file Normalization.cxx.

References CLAM::DynamicType::UpdateData().

bool CLAM::NormalizationConfig::LoadFrameSize ( CLAM::Storage s  )  [inline]

Definition at line 69 of file Normalization.hxx.

bool CLAM::NormalizationConfig::LoadType ( CLAM::Storage s  )  [inline]

Definition at line 68 of file Normalization.hxx.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.3