Config class for the SynthSineSpectrum Processing. More...
#include <SynthSineSpectrumConfig.hxx>
Public Member Functions | |
SynthSineSpectrumConfig () | |
SynthSineSpectrumConfig (const SynthSineSpectrumConfig &prototype, const bool shareData=false, const bool deep=true) | |
__COMMON_DYNAMIC_TYPE (SynthSineSpectrumConfig, 3) | |
__COMMON_DYN_ATTRIBUTE (0, public, TSize, SpectrumSize) protected | |
Desired size of the resulting spectrum. | |
bool | LoadSpectrumSize (CLAM::Storage &s) |
__COMMON_DYN_ATTRIBUTE (1, public, TData, SamplingRate) protected | |
Sample rate used. | |
bool | LoadSamplingRate (CLAM::Storage &s) |
__COMMON_DYN_ATTRIBUTE (2, public, TData, ZeroPadding) protected | |
Zero-padding factor. | |
bool | LoadZeroPadding (CLAM::Storage &s) |
void | DefaultInit () |
The concrete dynamic type constructor calls DefaultInit(). | |
void | DefaultValues () |
Config class for the SynthSineSpectrum Processing.
Definition at line 33 of file SynthSineSpectrumConfig.hxx.
CLAM::SynthSineSpectrumConfig::SynthSineSpectrumConfig | ( | ) | [inline] |
Definition at line 35 of file SynthSineSpectrumConfig.hxx.
CLAM::SynthSineSpectrumConfig::SynthSineSpectrumConfig | ( | const SynthSineSpectrumConfig & | prototype, | |
const bool | shareData = false , |
|||
const bool | deep = true | |||
) | [inline] |
Definition at line 35 of file SynthSineSpectrumConfig.hxx.
CLAM::SynthSineSpectrumConfig::__COMMON_DYN_ATTRIBUTE | ( | 2 | , | |
public | , | |||
TData | , | |||
ZeroPadding | ||||
) | [inline] |
Zero-padding factor.
This determines the frequency resolution of the resulting spectrum. For instance, a SpectrumSize of 512 and a ZeroPadding factor of 1 will result in a spectrum of size 1024 but with a better frequency resolution than using a SpectrumSize of 1024 and a ZeroPadding factor of 0. The computational cost will also increase when the zero-padding factor is increased.
Definition at line 55 of file SynthSineSpectrumConfig.hxx.
CLAM::SynthSineSpectrumConfig::__COMMON_DYN_ATTRIBUTE | ( | 1 | , | |
public | , | |||
TData | , | |||
SamplingRate | ||||
) | [inline] |
Sample rate used.
Definition at line 44 of file SynthSineSpectrumConfig.hxx.
CLAM::SynthSineSpectrumConfig::__COMMON_DYN_ATTRIBUTE | ( | 0 | , | |
public | , | |||
TSize | , | |||
SpectrumSize | ||||
) | [inline] |
Desired size of the resulting spectrum.
If a zero-padding factor (see below) other than 0 is used, the actual size of the output spectrum will be SpectrumSize * 2^ZeroPadding.
Definition at line 42 of file SynthSineSpectrumConfig.hxx.
CLAM::SynthSineSpectrumConfig::__COMMON_DYNAMIC_TYPE | ( | SynthSineSpectrumConfig | , | |
3 | ||||
) |
void CLAM::SynthSineSpectrumConfig::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().
Reimplemented from CLAM::DynamicType.
Definition at line 31 of file SynthSineSpectrumConfig.cxx.
References DefaultValues(), and CLAM::DynamicType::UpdateData().
void CLAM::SynthSineSpectrumConfig::DefaultValues | ( | ) |
Definition at line 41 of file SynthSineSpectrumConfig.cxx.
Referenced by DefaultInit().
bool CLAM::SynthSineSpectrumConfig::LoadSamplingRate | ( | CLAM::Storage & | s | ) | [inline] |
Definition at line 44 of file SynthSineSpectrumConfig.hxx.
bool CLAM::SynthSineSpectrumConfig::LoadSpectrumSize | ( | CLAM::Storage & | s | ) | [inline] |
Definition at line 42 of file SynthSineSpectrumConfig.hxx.
bool CLAM::SynthSineSpectrumConfig::LoadZeroPadding | ( | CLAM::Storage & | s | ) | [inline] |
Definition at line 55 of file SynthSineSpectrumConfig.hxx.