CLAM::SMSSynthesis Class Reference

This is the processing object class we are using to group several other processing objects. More...

#include <SMSSynthesis.hxx>

List of all members.

Public Member Functions

 SMSSynthesis (const Config &cfg=Config())
 ~SMSSynthesis ()
const char * GetClassName () const
 Override it in every subclass and retur the name of that class.
const ProcessingConfigGetConfig () const
 Configuration getter.
bool Do (void)
 Supervised mode execution.
bool SinusoidalSynthesis (const SpectralPeakArray &in, Spectrum &outSpec, Audio &outAudio)
 Sinusoidal synthesis, gives also the output spectrum.
bool SinusoidalSynthesis (const SpectralPeakArray &in, Audio &out)
 Sinusoidal synthesis.
bool Do (SpectralPeakArray &inputSinusoidalPeaks, Spectrum &inputResidualSpectrum, Spectrum &outputSinusoidalSpectrum, Spectrum &outputSpectrum, Audio &outputAudio, Audio &outputSinusoidalAudio, Audio &outputResidualAudio)
 non-supervised Do method.
bool Do (SpectralPeakArray &inputSinusoidalPeaks, Spectrum &inputResidualSpectrum, Spectrum &outputSinusoidalSpectrum, Spectrum &outputSpectrum, Audio &outputAudio)
 non-supervised Do method.
bool Do (SpectralPeakArray &inputSinusoidal, Spectrum &inputSpectrum, Audio &outputAudio, Audio &outputSinusoidal, Audio &outputResidual)
 non-supervised Do method.
bool Do (Frame &in)
 non-supervised Do method: works on a CLAM::Frame
bool Do (Frame &in, bool isSynthesizeSinusoidsAndResidual)
 If isSynthesizeSinusoidsAndResidual is false, this method synthesizes only the mixdown of the sinusoids and residual rather than synthesizing each separately.
bool Do (Segment &in)
 non-supervised Do method: works on a CLAM::Segment.

Public Attributes

FloatInControl mCurrentTimeControl
FloatInControl mCurrentPitch

Protected Member Functions

void InitFrame (Frame &in)

Protected Attributes

InPort< SpectralPeakArraymInputSinSpectralPeaks
 Ports.
InPort< SpectrummInputResSpectrum
OutPort< SpectrummOutputSinSpectrum
OutPort< SpectrummOutputSpectrum
AudioOutPort mOutputAudio
AudioOutPort mOutputResAudio
AudioOutPort mOutputSinAudio

Detailed Description

This is the processing object class we are using to group several other processing objects.

Definition at line 57 of file SMSSynthesis.hxx.


Constructor & Destructor Documentation

CLAM::SMSSynthesis::SMSSynthesis ( const Config cfg = Config()  ) 
CLAM::SMSSynthesis::~SMSSynthesis (  ) 

Definition at line 67 of file SMSSynthesis.cxx.


Member Function Documentation

bool CLAM::SMSSynthesis::Do ( Segment in  ) 

non-supervised Do method: works on a CLAM::Segment.

Processes current frame in the segment and increments segment internal counter.

Definition at line 358 of file SMSSynthesis.cxx.

bool CLAM::SMSSynthesis::Do ( Frame in,
bool  isSynthesizeSinusoidsAndResidual 
)

If isSynthesizeSinusoidsAndResidual is false, this method synthesizes only the mixdown of the sinusoids and residual rather than synthesizing each separately.

If you don't need the separate audio representations of the sinusoid and residual, use this with isSynthesizeSinusoidsAndResidual set to false, because then this method only performs one IFFT rather than three which saves a considerable number of CPU cycles.

Definition at line 329 of file SMSSynthesis.cxx.

References Do().

bool CLAM::SMSSynthesis::Do ( Frame in  ) 

non-supervised Do method: works on a CLAM::Frame

Definition at line 323 of file SMSSynthesis.cxx.

bool CLAM::SMSSynthesis::Do ( SpectralPeakArray inputSinusoidal,
Spectrum inputSpectrum,
Audio outputAudio,
Audio outputSinusoidal,
Audio outputResidual 
)

non-supervised Do method.

SMSSynthesis produces, as side effect, also some output Spectrums. Use this overload if you do not care about these spectrums and just need the output audio. If this overload is used directly you must set the controls for current time and current pitch from the outside.

Definition at line 192 of file SMSSynthesis.cxx.

bool CLAM::SMSSynthesis::Do ( SpectralPeakArray inputSinusoidalPeaks,
Spectrum inputResidualSpectrum,
Spectrum outputSinusoidalSpectrum,
Spectrum outputSpectrum,
Audio outputAudio 
)

non-supervised Do method.

Produces as output the sinusoidal spectrum, the global spectrum. and the global audio frames. If this overload is used directly you must set the controls for current time and current pitch from the outside.

Definition at line 271 of file SMSSynthesis.cxx.

bool CLAM::SMSSynthesis::Do ( SpectralPeakArray inputSinusoidalPeaks,
Spectrum inputResidualSpectrum,
Spectrum outputSinusoidalSpectrum,
Spectrum outputSpectrum,
Audio outputAudio,
Audio outputSinusoidalAudio,
Audio outputResidualAudio 
)

non-supervised Do method.

Produces as output the sinusoidal spectrum, the global spectrum. and the sinusoidal, residual and globar audio frames. If this overload is used directly you must set the controls for current time and current pitch from the outside.

Definition at line 210 of file SMSSynthesis.cxx.

bool CLAM::SMSSynthesis::Do ( void   )  [virtual]

Supervised mode execution.

Implements CLAM::ProcessingComposite.

Definition at line 163 of file SMSSynthesis.cxx.

Referenced by Do(), and InitFrame().

const char* CLAM::SMSSynthesis::GetClassName (  )  const [inline, virtual]

Override it in every subclass and retur the name of that class.

Reimplemented from CLAM::ProcessingComposite.

Definition at line 105 of file SMSSynthesis.hxx.

const ProcessingConfig& CLAM::SMSSynthesis::GetConfig (  )  const [inline, virtual]

Configuration getter.

Gets the configuration parameters used to create the object.

Returns:
Const reference to the configuration object. The usual way to perform a configuration change in the processing object is to take a copy of this reference, to change it and to send it with the Configure method. If not overriden, it returns a NullProcessingConfig.

Implements CLAM::ProcessingComposite.

Definition at line 108 of file SMSSynthesis.hxx.

void CLAM::SMSSynthesis::InitFrame ( Frame in  )  [protected]

Definition at line 364 of file SMSSynthesis.cxx.

References Do().

bool CLAM::SMSSynthesis::SinusoidalSynthesis ( const SpectralPeakArray in,
Audio out 
)

Sinusoidal synthesis.

Definition at line 140 of file SMSSynthesis.cxx.

bool CLAM::SMSSynthesis::SinusoidalSynthesis ( const SpectralPeakArray in,
Spectrum outSpec,
Audio outAudio 
)

Sinusoidal synthesis, gives also the output spectrum.

Definition at line 150 of file SMSSynthesis.cxx.


Member Data Documentation

Definition at line 169 of file SMSSynthesis.hxx.

Definition at line 168 of file SMSSynthesis.hxx.

Definition at line 159 of file SMSSynthesis.hxx.

Ports.

Definition at line 158 of file SMSSynthesis.hxx.

Definition at line 162 of file SMSSynthesis.hxx.

Definition at line 163 of file SMSSynthesis.hxx.

Definition at line 164 of file SMSSynthesis.hxx.

Definition at line 160 of file SMSSynthesis.hxx.

Definition at line 161 of file SMSSynthesis.hxx.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.3