CLAM::SpectralSynthesisConfig Class Reference

#include <SpectralSynthesisConfig.hxx>

Inheritance diagram for CLAM::SpectralSynthesisConfig:

CLAM::ProcessingConfig CLAM::DynamicType CLAM::Component

List of all members.


Detailed Description

Config class for the SpectralSynthesis Processing.

Definition at line 35 of file SpectralSynthesisConfig.hxx.


Public Member Functions

 DYNAMIC_TYPE_USING_INTERFACE (SpectralSynthesisConfig, 10, ProcessingConfig)
 DYN_ATTRIBUTE (0, public, WindowGeneratorConfig, AnalWindowGenerator)
 Configuration for children Processing Objects.
 DYN_ATTRIBUTE (1, public, WindowGeneratorConfig, SynthWindowGenerator)
 DYN_ATTRIBUTE (2, public, CircularShiftConfig, CircularShift)
 DYN_ATTRIBUTE (3, public, IFFTConfig, IFFT)
 DYN_ATTRIBUTE (4, public, int, prZeroPadding)
 DYN_ATTRIBUTE (5, public, int, prSamplingRate)
 DYN_ATTRIBUTE (6, public, bool, Residual)
 DYN_ATTRIBUTE (7, public, int, prAnalWindowSize)
 DYN_ATTRIBUTE (8, public, EWindowType, prAnalWindowType)
 DYN_ATTRIBUTE (9, public, int, prHopSize)
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

Member Function Documentation

CLAM::SpectralSynthesisConfig::DYNAMIC_TYPE_USING_INTERFACE ( SpectralSynthesisConfig  ,
10  ,
ProcessingConfig   
)

CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE ( ,
public  ,
WindowGeneratorConfig  ,
AnalWindowGenerator   
)

Configuration for children Processing Objects.

CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE ( ,
public  ,
WindowGeneratorConfig  ,
SynthWindowGenerator   
)

CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE ( ,
public  ,
CircularShiftConfig  ,
CircularShift   
)

CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE ( ,
public  ,
IFFTConfig  ,
IFFT   
)

CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE ( ,
public  ,
int  ,
prZeroPadding   
)

CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE ( ,
public  ,
int  ,
prSamplingRate   
)

CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE ( ,
public  ,
bool  ,
Residual   
)

CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE ( ,
public  ,
int  ,
prAnalWindowSize   
)

CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE ( ,
public  ,
EWindowType  ,
prAnalWindowType   
)

CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE ( ,
public  ,
int  ,
prHopSize   
)

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().

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().

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

Setter for Analysis Window type.

See also:
EWindowType

Definition at line 90 of file SpectralSynthesisConfig.cxx.

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

Getter for Analysis Window type.

See also:
SetAnalWindowType

Definition at line 96 of file SpectralSynthesisConfig.cxx.

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().

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().

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.

TSize CLAM::SpectralSynthesisConfig::GetSynthWindowSize (  )  const

Getter for Synthesis Window Size.

See also:
SetSynthWindowSize

Definition at line 108 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.

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().

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().

TData CLAM::SpectralSynthesisConfig::GetSamplingRate (  )  const

Getter for global Sampling rate.

Definition at line 144 of file SpectralSynthesisConfig.cxx.

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

Setter for Spectrum Size.

TSize CLAM::SpectralSynthesisConfig::GetSpectrumSize (  )  const


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 on Tue Aug 12 22:33:49 2008 for CLAM by  doxygen 1.5.5