CLAM-Development  1.4.0
Public Member Functions
CLAM::SpectralSpread Class Reference

Pitch shift with timbre preservation using the SMS model. More...

#include <SpectralSpread.hxx>

List of all members.

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)

Detailed Description

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.


Constructor & Destructor Documentation

CLAM::SpectralSpread::SpectralSpread ( )
inline
CLAM::SpectralSpread::~SpectralSpread ( )
inline

Definition at line 71 of file SpectralSpread.hxx.


Member Function Documentation

bool CLAM::SpectralSpread::Do ( const Frame in,
Frame out 
)
inlinevirtual

Implements CLAM::FrameTransformation.

Definition at line 81 of file SpectralSpread.hxx.

References Do().

bool CLAM::SpectralSpread::Do ( const Spectrum inpeaks,
Spectrum out 
)
virtual
bool CLAM::SpectralSpread::Do ( )
inlinevirtual

Supervised mode execution method (using ports)

Returns:
A boolean telling whether it has been output

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().

virtual bool CLAM::SpectralSpread::InitControls ( )
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.


The documentation for this class was generated from the following files: