CLAM::SpectralSynthesisConfig Class Reference

Config class for the SpectralSynthesis Processing. More...

#include <SpectralSynthesisConfig.hxx>

List of all members.

Public Member Functions

 SpectralSynthesisConfig ()
 SpectralSynthesisConfig (const SpectralSynthesisConfig &prototype, const bool shareData=false, const bool deep=true)
 __COMMON_DYNAMIC_TYPE (SpectralSynthesisConfig, 10)
 __COMMON_DYN_ATTRIBUTE (0, public, WindowGeneratorConfig, AnalWindowGenerator) protected
 Configuration for children Processing Objects.
bool LoadAnalWindowGenerator (CLAM::Storage &s)
 __COMMON_DYN_ATTRIBUTE (1, public, WindowGeneratorConfig, SynthWindowGenerator) protected
bool LoadSynthWindowGenerator (CLAM::Storage &s)
 __COMMON_DYN_ATTRIBUTE (2, public, CircularShiftConfig, CircularShift) protected
bool LoadCircularShift (CLAM::Storage &s)
 __COMMON_DYN_ATTRIBUTE (3, public, IFFTConfig, IFFT) protected
bool LoadIFFT (CLAM::Storage &s)
 __COMMON_DYN_ATTRIBUTE (4, public, int, prZeroPadding) protected
bool LoadprZeroPadding (CLAM::Storage &s)
 __COMMON_DYN_ATTRIBUTE (5, public, int, prSamplingRate) protected
bool LoadprSamplingRate (CLAM::Storage &s)
 __COMMON_DYN_ATTRIBUTE (6, public, bool, Residual) protected
bool LoadResidual (CLAM::Storage &s)
 __COMMON_DYN_ATTRIBUTE (7, public, int, prAnalWindowSize) protected
bool LoadprAnalWindowSize (CLAM::Storage &s)
 __COMMON_DYN_ATTRIBUTE (8, public, EWindowType, prAnalWindowType) protected
bool LoadprAnalWindowType (CLAM::Storage &s)
 __COMMON_DYN_ATTRIBUTE (9, public, int, prHopSize) protected
bool LoadprHopSize (CLAM::Storage &s)
void SetAnalWindowSize (TSize w)
 Setter for Analysis Window size in number of samples.
TSize GetAnalWindowSize () const
 Getter for Analysis Window Size.
void SetAnalWindowType (const EWindowType &t)
 Setter for Analysis Window type.
const EWindowTypeGetAnalWindowType () const
 Getter for Analysis Window type.
void SetZeroPadding (int z)
 Sets Zero padding factor.
int GetZeroPadding () const
 Getter for Zero padding factor.
void SetSynthWindowSize (TSize w)
 Setter for Synthesis window size in number of samples.
TSize GetSynthWindowSize () const
 Getter for Synthesis Window Size.
void SetHopSize (TSize h)
 Setter for Synthesis Hop size in number of samples.
TSize GetHopSize () const
 Getter for Synthesis Hop size.
void SetSamplingRate (TData sr)
 Setter for global Sampling rate.
TData GetSamplingRate () const
 Getter for global Sampling rate.
void SetSpectrumSize (TSize specSize)
 Setter for Spectrum Size.
TSize GetSpectrumSize () const

Friends

class SpectralSynthesis

Detailed Description

Config class for the SpectralSynthesis Processing.

Definition at line 35 of file SpectralSynthesisConfig.hxx.


Constructor & Destructor Documentation

CLAM::SpectralSynthesisConfig::SpectralSynthesisConfig (  )  [inline]

Definition at line 42 of file SpectralSynthesisConfig.hxx.

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

Definition at line 42 of file SpectralSynthesisConfig.hxx.


Member Function Documentation

CLAM::SpectralSynthesisConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
int  ,
prHopSize   
) [inline]

Definition at line 54 of file SpectralSynthesisConfig.hxx.

CLAM::SpectralSynthesisConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
EWindowType  ,
prAnalWindowType   
) [inline]

Definition at line 53 of file SpectralSynthesisConfig.hxx.

CLAM::SpectralSynthesisConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
int  ,
prAnalWindowSize   
) [inline]

Definition at line 52 of file SpectralSynthesisConfig.hxx.

CLAM::SpectralSynthesisConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
bool  ,
Residual   
) [inline]

Definition at line 50 of file SpectralSynthesisConfig.hxx.

CLAM::SpectralSynthesisConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
int  ,
prSamplingRate   
) [inline]

Definition at line 49 of file SpectralSynthesisConfig.hxx.

CLAM::SpectralSynthesisConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
int  ,
prZeroPadding   
) [inline]

Definition at line 48 of file SpectralSynthesisConfig.hxx.

CLAM::SpectralSynthesisConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
IFFTConfig  ,
IFFT   
) [inline]

Definition at line 47 of file SpectralSynthesisConfig.hxx.

CLAM::SpectralSynthesisConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
CircularShiftConfig  ,
CircularShift   
) [inline]

Definition at line 46 of file SpectralSynthesisConfig.hxx.

CLAM::SpectralSynthesisConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
WindowGeneratorConfig  ,
SynthWindowGenerator   
) [inline]

Definition at line 45 of file SpectralSynthesisConfig.hxx.

CLAM::SpectralSynthesisConfig::__COMMON_DYN_ATTRIBUTE ( ,
public  ,
WindowGeneratorConfig  ,
AnalWindowGenerator   
) [inline]

Configuration for children Processing Objects.

Definition at line 44 of file SpectralSynthesisConfig.hxx.

CLAM::SpectralSynthesisConfig::__COMMON_DYNAMIC_TYPE ( SpectralSynthesisConfig  ,
10   
)
TSize CLAM::SpectralSynthesisConfig::GetAnalWindowSize (  )  const

Getter for Analysis Window Size.

See also:
SetAnalWindowSize

Definition at line 85 of file SpectralSynthesisConfig.cxx.

Referenced by CLAM::SpectralSynthesis::Do(), SetSamplingRate(), and SetZeroPadding().

const EWindowType & CLAM::SpectralSynthesisConfig::GetAnalWindowType (  )  const

Getter for Analysis Window type.

See also:
SetAnalWindowType

Definition at line 96 of file SpectralSynthesisConfig.cxx.

TSize CLAM::SpectralSynthesisConfig::GetHopSize (  )  const

Getter for Synthesis Hop size.

See also:
SetHopSize

Definition at line 131 of file SpectralSynthesisConfig.cxx.

Referenced by CLAM::SpectralSynthesis::Do().

TData CLAM::SpectralSynthesisConfig::GetSamplingRate (  )  const

Getter for global Sampling rate.

Definition at line 144 of file SpectralSynthesisConfig.cxx.

TSize CLAM::SpectralSynthesisConfig::GetSpectrumSize (  )  const
TSize CLAM::SpectralSynthesisConfig::GetSynthWindowSize (  )  const

Getter for Synthesis Window Size.

See also:
SetSynthWindowSize

Definition at line 108 of file SpectralSynthesisConfig.cxx.

int CLAM::SpectralSynthesisConfig::GetZeroPadding (  )  const

Getter for Zero padding factor.

See also:
SetZeroPadding

Definition at line 120 of file SpectralSynthesisConfig.cxx.

Referenced by SetAnalWindowSize(), and SetZeroPadding().

bool CLAM::SpectralSynthesisConfig::LoadAnalWindowGenerator ( CLAM::Storage s  )  [inline]

Definition at line 44 of file SpectralSynthesisConfig.hxx.

bool CLAM::SpectralSynthesisConfig::LoadCircularShift ( CLAM::Storage s  )  [inline]

Definition at line 46 of file SpectralSynthesisConfig.hxx.

bool CLAM::SpectralSynthesisConfig::LoadIFFT ( CLAM::Storage s  )  [inline]

Definition at line 47 of file SpectralSynthesisConfig.hxx.

bool CLAM::SpectralSynthesisConfig::LoadprAnalWindowSize ( CLAM::Storage s  )  [inline]

Definition at line 52 of file SpectralSynthesisConfig.hxx.

bool CLAM::SpectralSynthesisConfig::LoadprAnalWindowType ( CLAM::Storage s  )  [inline]

Definition at line 53 of file SpectralSynthesisConfig.hxx.

bool CLAM::SpectralSynthesisConfig::LoadprHopSize ( CLAM::Storage s  )  [inline]

Definition at line 54 of file SpectralSynthesisConfig.hxx.

bool CLAM::SpectralSynthesisConfig::LoadprSamplingRate ( CLAM::Storage s  )  [inline]

Definition at line 49 of file SpectralSynthesisConfig.hxx.

bool CLAM::SpectralSynthesisConfig::LoadprZeroPadding ( CLAM::Storage s  )  [inline]

Definition at line 48 of file SpectralSynthesisConfig.hxx.

bool CLAM::SpectralSynthesisConfig::LoadResidual ( CLAM::Storage s  )  [inline]

Definition at line 50 of file SpectralSynthesisConfig.hxx.

bool CLAM::SpectralSynthesisConfig::LoadSynthWindowGenerator ( CLAM::Storage s  )  [inline]

Definition at line 45 of file SpectralSynthesisConfig.hxx.

void CLAM::SpectralSynthesisConfig::SetAnalWindowSize ( TSize  w  ) 

Setter for Analysis Window size in number of samples.

It should match the size used in the SpectralAnalysis Processing. An assertion fault is raised if size is not odd. This method changes size of AnalysisWindowGenerator, IFFT and CircularShift accordingly.

Definition at line 75 of file SpectralSynthesisConfig.cxx.

References CLAM_ASSERT, and GetZeroPadding().

Referenced by SetSamplingRate().

void CLAM::SpectralSynthesisConfig::SetAnalWindowType ( const EWindowType t  ) 

Setter for Analysis Window type.

See also:
EWindowType

Definition at line 90 of file SpectralSynthesisConfig.cxx.

void CLAM::SpectralSynthesisConfig::SetHopSize ( TSize  h  ) 

Setter for Synthesis Hop size in number of samples.

Changes size of the Synthesis WindowGenerator, and the Hop Size and Buffer Size in the OverlapAdd Processing

Definition at line 125 of file SpectralSynthesisConfig.cxx.

void CLAM::SpectralSynthesisConfig::SetSamplingRate ( TData  sr  ) 

Setter for global Sampling rate.

It synchronizes all existing sizes.

for sychronizing existing config

Definition at line 136 of file SpectralSynthesisConfig.cxx.

References GetAnalWindowSize(), and SetAnalWindowSize().

void CLAM::SpectralSynthesisConfig::SetSpectrumSize ( TSize  specSize  ) 

Setter for Spectrum Size.

void CLAM::SpectralSynthesisConfig::SetSynthWindowSize ( TSize  w  ) 

Setter for Synthesis window size in number of samples.

Just affects the Synthesis Window Generator Size

Definition at line 102 of file SpectralSynthesisConfig.cxx.

References CLAM_ASSERT.

void CLAM::SpectralSynthesisConfig::SetZeroPadding ( int  z  ) 

Sets Zero padding factor.

A factor of zero means that no zero padding has been applied in the analysis.

See also:
SpectralAnalysis::SetZeroPadding

Definition at line 113 of file SpectralSynthesisConfig.cxx.

References GetAnalWindowSize(), and GetZeroPadding().


Friends And Related Function Documentation

friend class SpectralSynthesis [friend]

Definition at line 38 of file SpectralSynthesisConfig.hxx.


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