SpectMorph
|
Decoder for the noise component (stochastic component) of the signal. More...
#include <smnoisedecoder.hh>
Public Types | |
enum | OutputMode { REPLACE, ADD, FFT_SPECTRUM, DEBUG_UNWINDOWED, DEBUG_NO_OUTPUT } |
Public Member Functions | |
NoiseDecoder (double mix_freq, size_t block_size) | |
void | set_seed (int seed) |
void | process (const AudioBlock &audio_block, float *samples, OutputMode output_mode=REPLACE, float portamento_stretch=1.0) |
Static Public Member Functions | |
static size_t | preferred_block_size (double mix_freq) |
Decoder for the noise component (stochastic component) of the signal.
NoiseDecoder::NoiseDecoder | ( | double | mix_freq, |
size_t | block_size | ||
) |
Creates a noise decoder object.
mix_freq | mix freq (sample rate) of the output sample data |
void NoiseDecoder::process | ( | const AudioBlock & | audio_block, |
float * | samples, | ||
OutputMode | output_mode = REPLACE , |
||
float | portamento_stretch = 1.0 |
||
) |
This function decodes the noise contained in the frame and fills the decoded_residue vector of the frame.
audio_block | AudioBlock to be decoded |