This class performs the interpolation of two SpectralPeakArray processing data objects. More...
#include <SpectralPeakArrayInterpolator.hxx>
This class performs the interpolation of two SpectralPeakArray processing data objects.
Definition at line 54 of file SpectralPeakArrayInterpolator.hxx.
CLAM::SpectralPeakArrayInterpolator::SpectralPeakArrayInterpolator | ( | const PeaksInterpConfig & | c = Config() |
) |
Definition at line 45 of file SpectralPeakArrayInterpolator.cxx.
References CLAM::Processing::Configure().
CLAM::SpectralPeakArrayInterpolator::~SpectralPeakArrayInterpolator | ( | ) | [inline] |
Definition at line 69 of file SpectralPeakArrayInterpolator.hxx.
void CLAM::SpectralPeakArrayInterpolator::AttachSpectralShape | ( | Spectrum & | spec | ) | [inline] |
Definition at line 97 of file SpectralPeakArrayInterpolator.hxx.
References mpSpectralShape.
bool CLAM::SpectralPeakArrayInterpolator::Do | ( | const SpectralPeakArray & | in1, | |
const SpectralPeakArray & | in2, | |||
const Spectrum & | spectralShape, | |||
SpectralPeakArray & | out | |||
) |
Definition at line 206 of file SpectralPeakArrayInterpolator.cxx.
References CLAM_DEBUG_ASSERT, CLAM::InControl< ControlDataType >::GetLastValue(), CLAM::Spectrum::GetMag(), CLAM::SpectralPeakArray::GetnPeaks(), CLAM::Processing::IsRunning(), mFreqInterpolationFactorCtl, mIsHarmonicCtl, mPitch1Ctl, mPitch2Ctl, mPitchInterpolationFactorCtl, CLAM::SpectralPeakArray::SetnPeaks(), CLAM::SpectralPeakArray::TodB(), and CLAM::SpectralPeakArray::ToLinear().
bool CLAM::SpectralPeakArrayInterpolator::Do | ( | const SpectralPeakArray & | in1, | |
const SpectralPeakArray & | in2, | |||
SpectralPeakArray & | out | |||
) |
Definition at line 74 of file SpectralPeakArrayInterpolator.cxx.
References CLAM_DEBUG_ASSERT, CLAM::SpectralPeakArray::GetIndex(), CLAM::InControl< ControlDataType >::GetLastValue(), CLAM::SpectralPeakArray::GetnPeaks(), CLAM::SpectralPeakArray::GetPositionFromIndex(), CLAM::Processing::IsRunning(), mFreqInterpolationFactorCtl, mIsHarmonicCtl, mMagInterpolationFactorCtl, mPitch1Ctl, mPitch2Ctl, mPitchInterpolationFactorCtl, CLAM::SpectralPeakArray::SetnPeaks(), CLAM::SpectralPeakArray::TodB(), and CLAM::SpectralPeakArray::ToLinear().
bool CLAM::SpectralPeakArrayInterpolator::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 314 of file SpectralPeakArrayInterpolator.cxx.
References CLAM::OutPort< Token >::GetData(), CLAM::InPort< Token >::GetData(), mIn1, mIn2, mOut, and mpSpectralShape.
Referenced by CLAM::FrameInterpolator::Do().
const ProcessingConfig& CLAM::SpectralPeakArrayInterpolator::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Reimplemented from CLAM::Processing.
Definition at line 71 of file SpectralPeakArrayInterpolator.hxx.
Definition at line 80 of file SpectralPeakArrayInterpolator.hxx.
Referenced by Do().
Definition at line 93 of file SpectralPeakArrayInterpolator.hxx.
Referenced by Do().
Input control for whether harmonic interpolation has to be performed.
Definition at line 89 of file SpectralPeakArrayInterpolator.hxx.
Referenced by Do().
Input control for interpolation factor.
Definition at line 79 of file SpectralPeakArrayInterpolator.hxx.
Referenced by Do().
Definition at line 94 of file SpectralPeakArrayInterpolator.hxx.
Referenced by Do().
Input controls for input pitch needed for harmonic interpolation.
Definition at line 85 of file SpectralPeakArrayInterpolator.hxx.
Referenced by Do().
Definition at line 86 of file SpectralPeakArrayInterpolator.hxx.
Referenced by Do().
Definition at line 81 of file SpectralPeakArrayInterpolator.hxx.
Referenced by Do().
Definition at line 96 of file SpectralPeakArrayInterpolator.hxx.
Referenced by AttachSpectralShape(), and Do().