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 {

Public Member Functions

 NoiseDecoder (double mix_freq, size_t block_size)
void set_seed (int seed)
void process (const RTAudioBlock &audio_block, float *samples, OutputMode output_mode=REPLACE, float portamento_stretch=1.0)
void precompute_tables ()

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::NoiseDecoder ( double  mix_freq,
size_t  block_size 

Creates a noise decoder object.

mix_freqmix freq (sample rate) of the output sample data

Member Function Documentation

◆ process()

void NoiseDecoder::process ( const RTAudioBlock 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_blockAudioBlock to be decoded

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