#include <SMSMorph.hxx>
Allows to 'morph' or hybridize two sounds, so the resulting one has intermediate characteristics
Definition at line 42 of file SMSMorph.hxx.
Public Types | |
typedef SMSMorphConfig | Config |
Public Member Functions | |
SMSMorph () | |
~SMSMorph () | |
bool | Do () |
Supervised mode execution method (using ports). | |
bool | Do (const SpectralPeakArray &inPeaks1, const Fundamental &inFund1, const Spectrum &inSpectrum1, const SpectralPeakArray &inPeaks2, const Fundamental &inFund2, const Spectrum &inSpectrum2, SpectralPeakArray &outPeaks, Fundamental &outFund, Spectrum &outSpectrum) |
bool | Do (const Frame &in1, const Frame &in2, Frame &out) |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
Protected Member Functions | |
bool | ConcreteConfigure (const ProcessingConfig &c) |
Configuration method interface. | |
Protected Attributes | |
SpectrumInterpolator | mSpectrumInterpolator |
Child processings. | |
SpectralPeakArrayInterpolator | mPeaksInterpolator |
typedef SMSMorphConfig CLAM::SMSMorph::Config |
CLAM::SMSMorph::SMSMorph | ( | ) | [inline] |
CLAM::SMSMorph::~SMSMorph | ( | ) | [inline] |
Definition at line 85 of file SMSMorph.hxx.
bool CLAM::SMSMorph::Do | ( | ) | [inline, virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 87 of file SMSMorph.hxx.
Referenced by Do().
bool CLAM::SMSMorph::Do | ( | const SpectralPeakArray & | inPeaks1, | |
const Fundamental & | inFund1, | |||
const Spectrum & | inSpectrum1, | |||
const SpectralPeakArray & | inPeaks2, | |||
const Fundamental & | inFund2, | |||
const Spectrum & | inSpectrum2, | |||
SpectralPeakArray & | outPeaks, | |||
Fundamental & | outFund, | |||
Spectrum & | outSpectrum | |||
) |
Definition at line 55 of file SMSMorph.cxx.
References CLAM::Fundamental::AddElem(), CLAM_DEBUG_ASSERT, CLAM::SpectrumInterpolator::Do(), CLAM::SpectralPeakArrayInterpolator::Do(), CLAM::Fundamental::GetFreq(), CLAM::InControl::GetLastValue(), CLAM::Fundamental::GetnCandidates(), CLAM::Spectrum::GetSize(), mPeaksInterpolator, mSpectrumInterpolator, CLAM::SendFloatToInControl(), CLAM::Fundamental::SetFreq(), and CLAM::Fundamental::SetnCandidates().
const ProcessingConfig& CLAM::SMSMorph::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Reimplemented from CLAM::Processing.
Definition at line 131 of file SMSMorph.hxx.
bool CLAM::SMSMorph::ConcreteConfigure | ( | const ProcessingConfig & | ) | [protected, virtual] |
Configuration method interface.
The Processing base class forces all the concrete classes derived from it to implement this method, which must actually perform the specific configuration tasks.
Note that the user can not call this method directly. He will use Configure instead. The argument is expected to be an object of the necesary concrete configuration class.
Reference | to the configuration object. |
This | method must throw a bad_cast exception if the argument is not an object of the expected configuration class. |
Reimplemented from CLAM::Processing.
Definition at line 101 of file SMSMorph.cxx.
References CLAM::Processing::CopyAsConcreteConfig(), CLAM::InControl::SetBounds(), and CLAM::InControl::SetDefaultValue().