This class performs the interpolation of two Frame processing data objects. More...
#include <FrameInterpolator.hxx>
Public Member Functions | |
FrameInterpolator (const FrameInterpConfig &c=Config()) | |
~FrameInterpolator () | |
const ProcessingConfig & | GetConfig () const |
Configuration getter. | |
bool | Do (void) |
Supervised mode execution method (using ports). | |
bool | Do (const Frame &in1, const Frame &in2, Frame &out) |
void | AttachSpectralShape (Spectrum &spec) |
Public Attributes | |
FloatInControl | mFrameInterpolationFactorCtl |
Input control for interpolation factor. | |
FloatInControl | mMagInterpolationFactorCtl |
FloatInControl | mFreqInterpolationFactorCtl |
FloatInControl | mPitchInterpolationFactorCtl |
FloatInControl | mResidualInterpolationFactorCtl |
FloatInControl | mPitch1Ctl |
Input controls for input pitch needed for harmonic interpolation. | |
FloatInControl | mPitch2Ctl |
FloatInControl | mIsHarmonicCtl |
Input control for whether harmonic interpolation has to be performed. | |
InPort< Frame > | mIn1 |
Ports. | |
InPort< Frame > | mIn2 |
OutPort< Frame > | mOut |
Spectrum * | mpSpectralShape |
This class performs the interpolation of two Frame processing data objects.
Note that only spectral peak array for the sinusoidal component and residual spectrum are interpolated.
Definition at line 60 of file FrameInterpolator.hxx.
CLAM::FrameInterpolator::FrameInterpolator | ( | const FrameInterpConfig & | c = Config() |
) |
Definition at line 45 of file FrameInterpolator.cxx.
CLAM::FrameInterpolator::~FrameInterpolator | ( | ) | [inline] |
Definition at line 78 of file FrameInterpolator.hxx.
void CLAM::FrameInterpolator::AttachSpectralShape | ( | Spectrum & | spec | ) | [inline] |
Definition at line 108 of file FrameInterpolator.hxx.
References mpSpectralShape.
Definition at line 106 of file FrameInterpolator.cxx.
References CLAM_DEBUG_ASSERT, CLAM::SpectrumInterpolator::Do(), CLAM::SpectralPeakArrayInterpolator::Do(), CLAM::InControl< ControlDataType >::DoControl(), CLAM::Frame::GetFundamentalFreq(), CLAM::InControl< ControlDataType >::GetLastValue(), CLAM::Processing::IsRunning(), mIsHarmonicCtl, mPitch1Ctl, mPitch2Ctl, mPitchInterpolationFactorCtl, and mpSpectralShape.
bool CLAM::FrameInterpolator::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::ProcessingComposite.
Definition at line 141 of file FrameInterpolator.cxx.
const ProcessingConfig& CLAM::FrameInterpolator::GetConfig | ( | ) | const [inline, virtual] |
Configuration getter.
Gets the configuration parameters used to create the object.
Implements CLAM::ProcessingComposite.
Definition at line 80 of file FrameInterpolator.hxx.
Input control for interpolation factor.
Definition at line 88 of file FrameInterpolator.hxx.
Definition at line 91 of file FrameInterpolator.hxx.
Ports.
Definition at line 104 of file FrameInterpolator.hxx.
Definition at line 105 of file FrameInterpolator.hxx.
Input control for whether harmonic interpolation has to be performed.
Definition at line 101 of file FrameInterpolator.hxx.
Referenced by Do().
Definition at line 90 of file FrameInterpolator.hxx.
Definition at line 106 of file FrameInterpolator.hxx.
Input controls for input pitch needed for harmonic interpolation.
Definition at line 97 of file FrameInterpolator.hxx.
Referenced by Do().
Definition at line 98 of file FrameInterpolator.hxx.
Referenced by Do().
Definition at line 92 of file FrameInterpolator.hxx.
Referenced by Do().
Definition at line 110 of file FrameInterpolator.hxx.
Referenced by AttachSpectralShape(), and Do().
Definition at line 93 of file FrameInterpolator.hxx.