Pitch shift with timbre preservation using the SMS model. More...
#include <SpectralFocus.hxx>
Public Member Functions | |
SpectralFocus () | |
~SpectralFocus () | |
virtual bool | InitControls () |
Virtual function to override when needing to give different default values to the controls. | |
bool | Do (const Frame &in, Frame &out) |
bool | Do (const Spectrum &inpeaks, Spectrum &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 45 of file SpectralFocus.hxx.
CLAM::SpectralFocus::SpectralFocus | ( | ) | [inline] |
Definition at line 58 of file SpectralFocus.hxx.
References CLAM::SpecTypeFlags::bMagPhase, CLAM::SpecTypeFlags::bMagPhaseBPF, CLAM::Processing::Configure(), and CLAM::Spectrum::SetType().
CLAM::SpectralFocus::~SpectralFocus | ( | ) | [inline] |
Definition at line 74 of file SpectralFocus.hxx.
bool CLAM::SpectralFocus::Do | ( | ) | [inline, virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 92 of file SpectralFocus.hxx.
References CLAM::InPort< Token >::Consume(), CLAM::OutPort< Token >::GetData(), CLAM::InPort< Token >::GetData(), and CLAM::OutPort< Token >::Produce().
Referenced by Do().
Implements CLAM::FrameTransformationTmpl< Spectrum >.
Definition at line 36 of file SpectralFocus.cxx.
Implements CLAM::FrameTransformation.
Definition at line 84 of file SpectralFocus.hxx.
References Do().
virtual bool CLAM::SpectralFocus::InitControls | ( | ) | [inline, virtual] |
Virtual function to override when needing to give different default values to the controls.
Reimplemented from CLAM::FrameTransformation.
Definition at line 76 of file SpectralFocus.hxx.
References CLAM::InControl< ControlDataType >::DoControl().