3 #ifndef SPECTMORPH_SINEDECODER_HH
4 #define SPECTMORPH_SINEDECODER_HH
6 #include "smifftsynth.hh"
10 namespace SpectMorph {
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
Definition: smifftsynth.hh:16
Decoder for the sine component (deterministic component) of the signal.
Definition: smsinedecoder.hh:19
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
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
Mode
Different supported modes for decoding.
Definition: smsinedecoder.hh:24
@ MODE_PHASE_SYNC_OVERLAP
Definition: smsinedecoder.hh:29
@ MODE_TRACKING
Definition: smsinedecoder.hh:40
@ MODE_PHASE_SYNC_OVERLAP_IFFT
Definition: smsinedecoder.hh:34