Audio Processing Framework (APF) version 0.5.0
|
Input stage of convolution. More...
#include <apf/convolver.h>
Public Member Functions | |
Input (size_t block_size_, size_t partitions_) | |
template<typename In > | |
void | add_block (In first) |
Add a block of time-domain input samples. More... | |
size_t | partitions () const |
Public Member Functions inherited from apf::conv::TransformBase | |
template<typename In > | |
void | prepare_filter (In first, In last, Filter &filter) const |
Transform time-domain samples. More... | |
size_t | block_size () const |
size_t | partition_size () const |
template<typename In > | |
In | prepare_partition (In first, In last, fft_node &partition) const |
FFT of one block. More... | |
Public Attributes | |
fixed_list< fft_node > | spectra |
Spectra of the partitions (double-blocks) of the input signal to be convolved. More... | |
Additional Inherited Members | |
Protected Types inherited from apf::conv::TransformBase | |
using | scoped_plan = fftw< float >::scoped_plan |
using | plan_ptr = std::unique_ptr< scoped_plan > |
Protected Member Functions inherited from apf::conv::TransformBase | |
TransformBase (size_t block_size_) | |
TransformBase (TransformBase &&)=default | |
plan_ptr | _create_plan (float *array) const |
Create in-place FFT plan for halfcomplex data format. More... | |
void | _fft (float *first) const |
In-place FFT. More... | |
Protected Attributes inherited from apf::conv::TransformBase | |
plan_ptr | _fft_plan |
Input stage of convolution.
New audio data is fed in here, further processing happens in Output.
Definition at line 306 of file convolver.h.
|
inline |
block_size_ | audio block size |
partitions_ | number of partitions |
Definition at line 310 of file convolver.h.
References apf::conv::TransformBase::_create_plan(), and spectra.
void apf::conv::Input::add_block | ( | In | first | ) |
Add a block of time-domain input samples.
first | Iterator to first sample. |
In | Forward iterator |
Definition at line 336 of file convolver.h.
References apf::conv::TransformBase::_fft(), apf::math::has_only_zeros(), and spectra.
|
inline |
Definition at line 323 of file convolver.h.
fixed_list<fft_node> apf::conv::Input::spectra |
Spectra of the partitions (double-blocks) of the input signal to be convolved.
The first element is the most recent signal chunk.
Definition at line 327 of file convolver.h.
Referenced by add_block(), and Input().