|
CLAM-Development
1.1
|
The PhaseManagement Class takes care about either. More...
#include <PhaseManagement.hxx>
Public Member Functions | |
| PhaseManagement () | |
| PhaseManagement (PhaseManagementConfig &c) | |
| ~PhaseManagement () | |
| const char * | GetClassName () const |
| Override it in every subclass and retur the name of that class. | |
| bool | Do (void) |
| Supervised mode execution method (using ports) | |
| bool | Do (Frame ¤tFrame) |
| bool | Do (SpectralPeakArray &in) |
| Basic non-supervised Do. | |
| bool | ConcreteConfigure (const ProcessingConfig &) |
| Configuration method. | |
| const ProcessingConfig & | GetConfig () const |
| Configuration getter. | |
| void | Init () |
| void | ResetPhaseAlignment () |
| void | DoPhaseAlignment (SpectralPeakArray &peakArray) |
| void | DoRandomPhases (SpectralPeakArray &peakArray) |
| void | DoPhaseContinuation (SpectralPeakArray &p) |
| void | SetLastPhasesAndFreqs (SpectralPeakArray &peakArray) |
| void | GenerateRandomPhases (DataArray &a) |
Public Attributes | |
| InControlTmpl< PhaseManagement > | mCurrentTime |
| InControlTmpl< PhaseManagement > | mCurrentPitch |
The PhaseManagement Class takes care about either.
Definition at line 45 of file PhaseManagement.hxx.
Definition at line 31 of file PhaseManagement.cxx.
References CLAM::Processing::Configure(), and Init().
Definition at line 38 of file PhaseManagement.cxx.
References CLAM::Processing::Configure(), and Init().
Definition at line 77 of file PhaseManagement.cxx.
| bool CLAM::PhaseManagement::ConcreteConfigure | ( | const ProcessingConfig & | c | ) | [virtual] |
Configuration method.
Reimplemented from CLAM::Processing.
Definition at line 45 of file PhaseManagement.cxx.
References CLAM::Processing::CopyAsConcreteConfig().
| bool CLAM::PhaseManagement::Do | ( | void | ) | [inline, virtual] |
Supervised mode execution method (using ports)
Implements CLAM::Processing.
Definition at line 55 of file PhaseManagement.hxx.
Referenced by Do(), CLAM::SinusoidalSynthesis::Do(), and CLAM::SMSSynthesis::Do().
| bool CLAM::PhaseManagement::Do | ( | Frame & | currentFrame | ) |
Definition at line 109 of file PhaseManagement.cxx.
References Do(), CLAM::InControlTmpl< ProcObj >::DoControl(), mCurrentPitch, and mCurrentTime.
| bool CLAM::PhaseManagement::Do | ( | SpectralPeakArray & | in | ) |
Basic non-supervised Do.
Definition at line 82 of file PhaseManagement.cxx.
References DoPhaseAlignment(), DoPhaseContinuation(), DoRandomPhases(), CLAM::EPhaseGeneration::eAlign, CLAM::EPhaseGeneration::eContinuation, CLAM::EPhaseGeneration::eNone, and CLAM::EPhaseGeneration::eRandom.
| void CLAM::PhaseManagement::DoPhaseAlignment | ( | SpectralPeakArray & | peakArray | ) |
Definition at line 129 of file PhaseManagement.cxx.
References CLAM::SpectralPeakArray::GetFreq(), CLAM::InControl::GetLastValue(), CLAM::SpectralPeakArray::GetnPeaks(), CLAM::SpectralPeakArray::GetPhase(), mCurrentPitch, mCurrentTime, CLAM::SpectralPeakArray::SetIsIndexUpToDate(), CLAM::SpectralPeakArray::SetPhase(), and TWO_PI.
Referenced by Do().
Definition at line 249 of file PhaseManagement.cxx.
References CLAM::SpectralPeakArray::GetIndex(), CLAM::InControl::GetLastValue(), CLAM::SpectralPeakArray::GetnPeaks(), CLAM::SpectralPeakArray::GetPositionFromIndex(), mCurrentTime, CLAM::SpectralPeakArray::SetIsIndexUpToDate(), and TWO_PI.
Referenced by Do().
| void CLAM::PhaseManagement::DoRandomPhases | ( | SpectralPeakArray & | peakArray | ) |
Definition at line 192 of file PhaseManagement.cxx.
References CLAM::SpectralPeakArray::GetFreq(), CLAM::SpectralPeakArray::GetIndex(), CLAM::SpectralPeakArray::GetnPeaks(), CLAM::SpectralPeakArray::GetSpectralPeak(), CLAM::Array< T >::Resize(), CLAM::SpectralPeakArray::SetIsIndexUpToDate(), CLAM::SpectralPeakArray::SetPhase(), CLAM::Array< T >::SetSize(), and TWO_PI.
Referenced by Do().
| void CLAM::PhaseManagement::GenerateRandomPhases | ( | DataArray & | a | ) |
Definition at line 292 of file PhaseManagement.cxx.
References CLAM::Array< T >::Size(), and TWO_PI.
Referenced by Init().
| const char* CLAM::PhaseManagement::GetClassName | ( | ) | const [inline, virtual] |
Override it in every subclass and retur the name of that class.
Implements CLAM::Processing.
Definition at line 53 of file PhaseManagement.hxx.
| const ProcessingConfig& CLAM::PhaseManagement::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Reimplemented from CLAM::Processing.
Definition at line 65 of file PhaseManagement.hxx.
| void CLAM::PhaseManagement::Init | ( | ) |
Definition at line 51 of file PhaseManagement.cxx.
References CLAM::EScale::eLog, GenerateRandomPhases(), CLAM::Array< T >::Resize(), CLAM::SpectralPeakArray::SetIsIndexUpToDate(), CLAM::Array< T >::SetSize(), and CLAM::DynamicType::UpdateData().
Referenced by PhaseManagement().
Definition at line 119 of file PhaseManagement.cxx.
| void CLAM::PhaseManagement::SetLastPhasesAndFreqs | ( | SpectralPeakArray & | peakArray | ) |
Definition at line 301 of file PhaseManagement.cxx.
References CLAM::SpectralPeakArray::GetnPeaks(), CLAM::Array< T >::Resize(), CLAM::SpectralPeakArray::SetIsIndexUpToDate(), and CLAM::Array< T >::SetSize().
Definition at line 71 of file PhaseManagement.hxx.
Referenced by Do(), CLAM::SinusoidalSynthesis::Do(), CLAM::SMSSynthesis::Do(), and DoPhaseAlignment().
Definition at line 70 of file PhaseManagement.hxx.
Referenced by Do(), CLAM::SinusoidalSynthesis::Do(), CLAM::SMSSynthesis::Do(), DoPhaseAlignment(), and DoPhaseContinuation().
1.7.6.1