#include <FrameAdder.hxx>
Note that only spectral peak array for the sinusoidal component and residual spectrum are interpolated.
Definition at line 48 of file 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 |
CLAM::FrameAdder::FrameAdder | ( | ) |
CLAM::FrameAdder::FrameAdder | ( | const FrameAdderConfig & | c | ) |
CLAM::FrameAdder::~FrameAdder | ( | ) | [inline] |
Definition at line 68 of file FrameAdder.hxx.
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.
bool CLAM::FrameAdder::Do | ( | void | ) | [virtual] |
Supervised mode execution method (using ports).
Implements CLAM::ProcessingComposite.
Definition at line 91 of file FrameAdder.cxx.
References CLAM_ASSERT.
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 64 of file FrameAdder.cxx.
References CLAM_DEBUG_ASSERT, CLAM::SpectrumAdder2::Do(), CLAM::SpectralPeakArrayAdder::Do(), and CLAM::Processing::IsRunning().
Definition at line 80 of file FrameAdder.hxx.
Definition at line 81 of file FrameAdder.hxx.