SpectMorph
Public Member Functions | Public Attributes | List of all members
SpectMorph::AudioBlock Class Reference

Block of audio data, encoded in SpectMorph parametric format. More...

#include <smaudio.hh>

Public Member Functions

void sort_freqs ()
 
double freqs_f (size_t i) const
 
double mags_f (size_t i) const
 
double phases_f (size_t i) const
 
double noise_f (size_t i) const
 

Public Attributes

std::vector< uint16_t > noise
 noise envelope, representing the original signal minus sine components
 
std::vector< uint16_t > freqs
 frequencies of the sine components of this frame
 
std::vector< uint16_t > mags
 magnitudes of the sine components
 
std::vector< uint16_t > phases
 phases of the sine components
 
std::vector< float > lpc_lsf_p
 LPC line spectrum frequencies, P(z) roots.
 
std::vector< float > lpc_lsf_q
 LPC line spectrum frequencies, Q(z) roots.
 
std::vector< float > original_fft
 original zeropadded FFT data - for debugging only
 
std::vector< float > debug_samples
 original audio samples for this frame - for debugging only
 

Detailed Description

Block of audio data, encoded in SpectMorph parametric format.

This represents a single analysis frame, usually containing sine waves in freqs and phases, and a noise envelope for everything that remained after subtracting the sine waves. The parameters original_fft and debug_samples are optional and are used for debugging only.


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