CLAM-Development
1.1
|
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 | ( | const Frame & | in, |
Frame & | out | ||
) | [inline, virtual] |
Implements CLAM::FrameTransformation.
Definition at line 84 of file SpectralFocus.hxx.
References Do().
bool CLAM::SpectralFocus::Do | ( | const Spectrum & | inpeaks, |
Spectrum & | out | ||
) | [virtual] |
Implements CLAM::FrameTransformationTmpl< Spectrum >.
Definition at line 39 of file SpectralFocus.cxx.
References CLAM::Array< T >::AddElem(), CLAM::InControl::GetLastValue(), CLAM::Spectrum::GetSize(), CLAM::FrameTransformation::mAmount, CLAM::FrameTransformation::mConfig, Round(), CLAM::Spectrum::SetBPFSize(), CLAM::Array< T >::SetSize(), CLAM::Spectrum::SetSize(), and CLAM::Spectrum::SynchronizeTo().
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::InPort< Token >::GetData(), CLAM::OutPort< Token >::GetData(), and CLAM::OutPort< Token >::Produce().
Referenced by 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::DoControl().