CLAM-Development  1.4.0
Public Member Functions | Friends
CLAM::SpectralSynthesisConfig Class Reference

Config class for the SpectralSynthesis Processing. More...

#include <SpectralSynthesisConfig.hxx>

List of all members.

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
- Public Member Functions inherited from CLAM::ProcessingConfig
 ProcessingConfig (const int n)
 Constructor.
 ProcessingConfig (const ProcessingConfig &prototype, bool shareData=false, bool deep=true)
 Copy constructor.
virtual ~ProcessingConfig ()
virtual const char * GetClassName () const
 Return the class name.
- Public Member Functions inherited from CLAM::DynamicType
 DynamicType (const int nAttr)
 Constructs a DynamicType object that can hold.
 DynamicType (const DynamicType &prototype, const bool shareData, const bool deepCopy)
 Copy constructor of a dynamic Type.
 DynamicType (const DynamicType &prototype)
virtual ~DynamicType ()
void CopyInit (const DynamicType &dt)
 This method allows custom code for the copy-constructor of a dynamic type, since the copy-constructor is macro expanded and can not be overwritted.
bool UpdateData ()
 Method used to resize the data space of the dynamic type, necessary when some AddXXX() / RemoveXXX() (where XXX is an attribute name) has been done.
unsigned GetNDynamicAttributes () const
const char * GetDynamicAttributeName (unsigned i)
virtual const std::type_info & GetTypeId (unsigned i) const =0
bool AttributeIsComponent (unsigned i) const
bool AttributeIsDynamictype (unsigned i) const
bool IsAttributeInstantiated (unsigned i) const
const void * GetAttributeAsVoidPtr (unsigned i) const
const ComponentGetAttributeAsComponent (unsigned i) const
ComponentGetAttributeAsComponent (unsigned i)
void FullfilsInvariant () const
virtual ComponentDeepCopy () const
void Debug () const
virtual void StoreOn (CLAM::Storage &storage) const
 Stores component's subitems on the given Storage.
virtual void LoadFrom (CLAM::Storage &storage)
 Loads component's subitems from the given Storage.
- Public Member Functions inherited from CLAM::Component
virtual ~Component ()

Friends

class SpectralSynthesis

Detailed Description

Config class for the SpectralSynthesis Processing.

Definition at line 35 of file SpectralSynthesisConfig.hxx.


Member Function Documentation

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   
)
CLAM::SpectralSynthesisConfig::DYNAMIC_TYPE_USING_INTERFACE ( SpectralSynthesisConfig  ,
10  ,
ProcessingConfig   
)
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().

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: