SpectMorph
Public Types | Public Member Functions | Static Public Member Functions | List of all members
SpectMorph::NoiseDecoder Class Reference

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)
 

Detailed Description

Decoder for the noise component (stochastic component) of the signal.

Constructor & Destructor Documentation

NoiseDecoder::NoiseDecoder ( double  mix_freq,
size_t  block_size 
)

Creates a noise decoder object.

Parameters
mix_freqmix freq (sample rate) of the output sample data

Member Function Documentation

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.

Parameters
audio_blockAudioBlock to be decoded

The documentation for this class was generated from the following files: