#include <FrameInterpolator.hxx>
Note that only spectral peak array for the sinusoidal component and residual spectrum are interpolated.
Definition at line 60 of file FrameInterpolator.hxx.
Public Member Functions | |
FrameInterpolator () | |
FrameInterpolator (const FrameInterpConfig &c) | |
~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 | |
FrameInterpolatorCtl | mFrameInterpolationFactorCtl |
Input control for interpolation factor. | |
FrameInterpolatorCtl | mMagInterpolationFactorCtl |
FrameInterpolatorCtl | mFreqInterpolationFactorCtl |
FrameInterpolatorCtl | mPitchInterpolationFactorCtl |
FrameInterpolatorCtl | mResidualInterpolationFactorCtl |
FrameInterpolatorCtl | mPitch1Ctl |
Input controls for input pitch needed for harmonic interpolation. | |
FrameInterpolatorCtl | mPitch2Ctl |
FrameInterpolatorCtl | mIsHarmonicCtl |
Input control for whether harmonic interpolation has to be performed. | |
InPort< Frame > | mIn1 |
Ports. | |
InPort< Frame > | mIn2 |
OutPort< Frame > | mOut |
Spectrum * | mpSpectralShape |
CLAM::FrameInterpolator::FrameInterpolator | ( | ) |
CLAM::FrameInterpolator::FrameInterpolator | ( | const FrameInterpConfig & | c | ) |
CLAM::FrameInterpolator::~FrameInterpolator | ( | ) | [inline] |
Definition at line 82 of file FrameInterpolator.hxx.
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 84 of file FrameInterpolator.hxx.
bool CLAM::FrameInterpolator::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::ProcessingComposite.
Definition at line 162 of file FrameInterpolator.cxx.
References CLAM_ASSERT.
Referenced by CLAM::SegmentSMSTimeStretch::Do(), CLAM::SegmentSMSMorph::Do(), and CLAM::SegmentSMSMorph::FindInterpolatedFrameFromSegment2Morph().
Definition at line 127 of file FrameInterpolator.cxx.
References CLAM_DEBUG_ASSERT, CLAM::SpectrumInterpolator::Do(), CLAM::SpectralPeakArrayInterpolator::Do(), CLAM::Frame::GetFundamentalFreq(), CLAM::Processing::IsRunning(), mIsHarmonicCtl, mPitch1Ctl, mPitch2Ctl, mPitchInterpolationFactorCtl, and mpSpectralShape.
void CLAM::FrameInterpolator::AttachSpectralShape | ( | Spectrum & | spec | ) | [inline] |
Definition at line 112 of file FrameInterpolator.hxx.
References mpSpectralShape.
Referenced by CLAM::SegmentSMSMorph::ConcreteConfigure().
FrameInterpolatorCtl CLAM::FrameInterpolator::mFrameInterpolationFactorCtl |
Input control for interpolation factor.
Definition at line 92 of file FrameInterpolator.hxx.
Referenced by CLAM::SegmentSMSTimeStretch::Do(), and CLAM::SegmentSMSMorph::UpdateFrameInterpolatorFactors().
FrameInterpolatorCtl CLAM::FrameInterpolator::mMagInterpolationFactorCtl |
Definition at line 94 of file FrameInterpolator.hxx.
Referenced by CLAM::SegmentSMSMorph::UpdateFrameInterpolatorFactors().
FrameInterpolatorCtl CLAM::FrameInterpolator::mFreqInterpolationFactorCtl |
Definition at line 95 of file FrameInterpolator.hxx.
Referenced by CLAM::SegmentSMSMorph::UpdateFrameInterpolatorFactors().
FrameInterpolatorCtl CLAM::FrameInterpolator::mPitchInterpolationFactorCtl |
Definition at line 96 of file FrameInterpolator.hxx.
Referenced by Do(), and CLAM::SegmentSMSMorph::UpdateFrameInterpolatorFactors().
FrameInterpolatorCtl CLAM::FrameInterpolator::mResidualInterpolationFactorCtl |
Definition at line 97 of file FrameInterpolator.hxx.
Referenced by CLAM::SegmentSMSMorph::UpdateFrameInterpolatorFactors().
FrameInterpolatorCtl CLAM::FrameInterpolator::mPitch1Ctl |
Input controls for input pitch needed for harmonic interpolation.
Definition at line 101 of file FrameInterpolator.hxx.
Referenced by Do().
FrameInterpolatorCtl CLAM::FrameInterpolator::mPitch2Ctl |
FrameInterpolatorCtl CLAM::FrameInterpolator::mIsHarmonicCtl |
Input control for whether harmonic interpolation has to be performed.
Definition at line 105 of file FrameInterpolator.hxx.
Referenced by Do().
Definition at line 109 of file FrameInterpolator.hxx.
Definition at line 110 of file FrameInterpolator.hxx.
Definition at line 114 of file FrameInterpolator.hxx.
Referenced by AttachSpectralShape(), and Do().