CLAM-Development
1.4.0
|
Pitch shift with timbre preservation using the SMS model. More...
#include <SpectralSpread.hxx>
Public Member Functions | |
SpectralSpread () | |
~SpectralSpread () | |
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 SpectralSpread.hxx.
|
inline |
Definition at line 56 of file SpectralSpread.hxx.
References CLAM::SpecTypeFlags::bMagPhase, CLAM::SpecTypeFlags::bMagPhaseBPF, CLAM::Processing::Configure(), and CLAM::Spectrum::SetType().
|
inline |
Definition at line 71 of file SpectralSpread.hxx.
Implements CLAM::FrameTransformation.
Definition at line 81 of file SpectralSpread.hxx.
References Do().
Implements CLAM::FrameTransformationTmpl< Spectrum >.
Definition at line 38 of file SpectralSpread.cxx.
References CLAM::Array< T >::AddElem(), CLAM::InControl< ControlDataType >::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().
|
inlinevirtual |
Supervised mode execution method (using ports)
Implements CLAM::Processing.
Definition at line 89 of file SpectralSpread.hxx.
References CLAM::InPort< Token >::Consume(), CLAM::InPort< Token >::GetData(), CLAM::OutPort< Token >::GetData(), and CLAM::OutPort< Token >::Produce().
Referenced by Do().
|
inlinevirtual |
Virtual function to override when needing to give different default values to the controls.
Reimplemented from CLAM::FrameTransformation.
Definition at line 73 of file SpectralSpread.hxx.
References CLAM::InControl< ControlDataType >::DoControl(), and CLAM::FrameTransformation::mAmount.