Pitch shift with timbre preservation using the SMS model. More...
#include <SMSSpectralShapeShift.hxx>
Public Member Functions | |
SMSSpectralShapeShift () | |
~SMSSpectralShapeShift () | |
bool | Do (const Frame &in, Frame &out) |
bool | Do (const SpectralPeakArray &inpeaks, SpectralPeakArray &out) |
bool | Do () |
Supervised mode execution method (using ports). |
Pitch shift with timbre preservation using the SMS model.
In order to preserve timbre, the original spectral shape is extracted and then applied back.
Definition at line 44 of file SMSSpectralShapeShift.hxx.
CLAM::SMSSpectralShapeShift::SMSSpectralShapeShift | ( | ) | [inline] |
Definition at line 55 of file SMSSpectralShapeShift.hxx.
References CLAM::Processing::Configure().
CLAM::SMSSpectralShapeShift::~SMSSpectralShapeShift | ( | ) | [inline] |
Definition at line 65 of file SMSSpectralShapeShift.hxx.
bool CLAM::SMSSpectralShapeShift::Do | ( | ) | [inline, virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 75 of file SMSSpectralShapeShift.hxx.
References CLAM::InPort< Token >::Consume(), CLAM::OutPort< Token >::GetData(), CLAM::InPort< Token >::GetData(), and CLAM::OutPort< Token >::Produce().
Referenced by Do().
bool CLAM::SMSSpectralShapeShift::Do | ( | const SpectralPeakArray & | inpeaks, | |
SpectralPeakArray & | out | |||
) |
Definition at line 39 of file SMSSpectralShapeShift.cxx.
References CLAM::SpectralEnvelopeApply::Do(), CLAM::SpectralEnvelopeExtract::Do(), CLAM::InControl< ControlDataType >::GetLastValue(), CLAM::BPFTmpl< TX, TY >::GetXValue(), CLAM::FrameTransformation::mConfig, CLAM::BPFTmpl< TX, TY >::SetXValue(), CLAM::BPFTmpl< TX, TY >::Size(), and CLAM::BPFTmpl< TX, TY >::UpdateSplineTable().
Implements CLAM::FrameTransformation.
Definition at line 67 of file SMSSpectralShapeShift.hxx.
References Do().