#include <SpectralShapeShift.hxx>
Public Member Functions | |
SpectralShapeShift () | |
~SpectralShapeShift () | |
bool | Do (const Frame &in, Frame &out) |
bool | Do (const Spectrum &inpeaks, Spectrum &out) |
bool | Do () |
Supervised mode execution method (using ports). |
In order to preserve timbre, the original spectral shape is extracted and then applied back.
Definition at line 45 of file SpectralShapeShift.hxx.
CLAM::SpectralShapeShift::SpectralShapeShift | ( | ) | [inline] |
Definition at line 56 of file SpectralShapeShift.hxx.
References CLAM::Processing::Configure(), CLAM::EScale::eLog, and CLAM::DynamicType::UpdateData().
CLAM::SpectralShapeShift::~SpectralShapeShift | ( | ) | [inline] |
Definition at line 81 of file SpectralShapeShift.hxx.
bool CLAM::SpectralShapeShift::Do | ( | ) | [inline, virtual] |
Supervised mode execution method (using ports).
Implements CLAM::Processing.
Definition at line 91 of file SpectralShapeShift.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 38 of file SpectralShapeShift.cxx.
References CLAM::SpectralEnvelopeApply::Do(), CLAM::SpectralEnvelopeExtract::Do(), CLAM::SpectralPeakDetect::Do(), CLAM::EInterpolation::eLinear, CLAM::InControl::GetLastValue(), CLAM::BPFTmpl< TX, TY >::GetXValue(), CLAM::FrameTransformation::mConfig, CLAM::BPFTmpl< TX, TY >::SetIntpType(), CLAM::BPFTmpl< TX, TY >::SetXValue(), CLAM::BPFTmpl< TX, TY >::Size(), CLAM::Spectrum::ToDB(), and CLAM::Spectrum::ToLinear().
Implements CLAM::FrameTransformation.
Definition at line 83 of file SpectralShapeShift.hxx.
References Do().