#include <SpectralSynthesisConfig.hxx>
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 EWindowType & | GetAnalWindowType () 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 |
CLAM::SpectralSynthesisConfig::DYNAMIC_TYPE_USING_INTERFACE | ( | SpectralSynthesisConfig | , | |
10 | , | |||
ProcessingConfig | ||||
) |
CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE | ( | 0 | , | |
public | , | |||
WindowGeneratorConfig | , | |||
AnalWindowGenerator | ||||
) |
Configuration for children Processing Objects.
CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE | ( | 1 | , | |
public | , | |||
WindowGeneratorConfig | , | |||
SynthWindowGenerator | ||||
) |
CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE | ( | 2 | , | |
public | , | |||
CircularShiftConfig | , | |||
CircularShift | ||||
) |
CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE | ( | 3 | , | |
public | , | |||
IFFTConfig | , | |||
IFFT | ||||
) |
CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE | ( | 4 | , | |
public | , | |||
int | , | |||
prZeroPadding | ||||
) |
CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE | ( | 5 | , | |
public | , | |||
int | , | |||
prSamplingRate | ||||
) |
CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE | ( | 6 | , | |
public | , | |||
bool | , | |||
Residual | ||||
) |
CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE | ( | 7 | , | |
public | , | |||
int | , | |||
prAnalWindowSize | ||||
) |
CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE | ( | 8 | , | |
public | , | |||
EWindowType | , | |||
prAnalWindowType | ||||
) |
CLAM::SpectralSynthesisConfig::DYN_ATTRIBUTE | ( | 9 | , | |
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.
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.
Definition at line 90 of file SpectralSynthesisConfig.cxx.
const EWindowType & CLAM::SpectralSynthesisConfig::GetAnalWindowType | ( | ) | const |
Getter for Analysis Window type.
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.
Definition at line 113 of file SpectralSynthesisConfig.cxx.
References GetAnalWindowSize(), and GetZeroPadding().
int CLAM::SpectralSynthesisConfig::GetZeroPadding | ( | ) | const |
Getter for Zero padding factor.
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.
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.
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 |
TSize CLAM::SpectralSynthesisConfig::GetSpectrumSize | ( | ) | const |
friend class SpectralSynthesis [friend] |
Definition at line 38 of file SpectralSynthesisConfig.hxx.