3 #ifndef SPECTMORPH_SINEDECODER_HH 4 #define SPECTMORPH_SINEDECODER_HH 6 #include "smifftsynth.hh" 44 double fundamental_freq;
47 std::vector<double> synth_fixed_phase, next_synth_fixed_phase;
52 SineDecoder (
double fundamental_freq,
double mix_freq,
size_t frame_size,
size_t frame_step,
Mode mode);
57 const std::vector<double>& window,
58 std::vector<float>& decoded_sines);
Block of audio data, encoded in SpectMorph parametric format.
Definition: smaudio.hh:28
SineDecoder(double fundamental_freq, double mix_freq, size_t frame_size, size_t frame_step, Mode mode)
Constructor setting up the various decoding parameters.
Definition: smsinedecoder.cc:26
Definition: smsinedecoder.hh:29
Mode
Different supported modes for decoding.
Definition: smsinedecoder.hh:24
Definition: smsinedecoder.hh:40
Definition: smsinedecoder.hh:34
Definition: smifftsynth.hh:15
Definition: smalignedarray.cc:7
void process(const AudioBlock &block, const AudioBlock &next_block, const std::vector< double > &window, std::vector< float > &decoded_sines)
Function which decodes a part of the signal.
Definition: smsinedecoder.cc:55
Decoder for the sine component (deterministic component) of the signal.
Definition: smsinedecoder.hh:18