CLAM::FrameAdder Class Reference

This class performs the interpolation of two Frame processing data objects. More...

#include <FrameAdder.hxx>

List of all members.

Public Member Functions

 FrameAdder ()
 FrameAdder (const FrameAdderConfig &c)
 ~FrameAdder ()
const ProcessingConfigGetConfig () const
 Configuration getter.
bool Do (void)
 Supervised mode execution method (using ports).
bool Do (const Frame &in1, const Frame &in2, Frame &out)

Public Attributes

InPort< FramemIn1
InPort< FramemIn2
OutPort< FramemOut

Detailed Description

This class performs the interpolation of two Frame processing data objects.

Note that only spectral peak array for the sinusoidal component and residual spectrum are interpolated.

: maybe other attributes in Frame could also be interpolated if so specified in the configuration.

Definition at line 48 of file FrameAdder.hxx.

Constructor & Destructor Documentation

CLAM::FrameAdder::FrameAdder (  ) 

Definition at line 27 of file FrameAdder.cxx.

CLAM::FrameAdder::FrameAdder ( const FrameAdderConfig c  ) 

Definition at line 36 of file FrameAdder.cxx.

CLAM::FrameAdder::~FrameAdder (  )  [inline]

Definition at line 68 of file FrameAdder.hxx.

Member Function Documentation

bool CLAM::FrameAdder::Do ( const Frame in1,
const Frame in2,
Frame out 

we set the output fundamental to zero. Note that when adding two frames we have a polyphonic signal and the representation of the resulting sum of harmonics is not trivial.

Now we add spectral peaks

Finally we add residual spectrum

Definition at line 61 of file FrameAdder.cxx.

References CLAM_DEBUG_ASSERT, CLAM::SpectrumAdder2::Do(), CLAM::SpectralPeakArrayAdder::Do(), and CLAM::Processing::IsRunning().

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

Supervised mode execution method (using ports).

A boolean telling whether it has been output

Implements CLAM::ProcessingComposite.

Definition at line 88 of file FrameAdder.cxx.

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

Configuration getter.

Gets the configuration parameters used to create the object.

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 70 of file FrameAdder.hxx.

Member Data Documentation


Definition at line 79 of file FrameAdder.hxx.

Definition at line 80 of file FrameAdder.hxx.

Definition at line 81 of file FrameAdder.hxx.

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