This class performs the interpolation of two Frame processing data objects. More...
#include <FrameAdder.hxx>
Public Member Functions | |
FrameAdder () | |
FrameAdder (const FrameAdderConfig &c) | |
~FrameAdder () | |
const ProcessingConfig & | GetConfig () 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< Frame > | mIn1 |
Ports. | |
InPort< Frame > | mIn2 |
OutPort< Frame > | mOut |
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.
Definition at line 48 of file FrameAdder.hxx.
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.
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).
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.
Implements CLAM::ProcessingComposite.
Definition at line 70 of file FrameAdder.hxx.
Ports.
Definition at line 79 of file FrameAdder.hxx.
Definition at line 80 of file FrameAdder.hxx.
Definition at line 81 of file FrameAdder.hxx.