#include <PhaseVocoder.h>
Definition at line 21 of file PhaseVocoder.h.
◆ PhaseVocoder()
PhaseVocoder::PhaseVocoder |
( |
int |
size, |
|
|
int |
hop |
|
) |
| |
◆ ~PhaseVocoder()
virtual PhaseVocoder::~PhaseVocoder |
( |
| ) |
|
|
virtual |
◆ FFTShift()
void PhaseVocoder::FFTShift |
( |
double * |
src | ) |
|
|
protected |
◆ getMagnitudes()
void PhaseVocoder::getMagnitudes |
( |
double * |
mag | ) |
|
|
protected |
◆ getPhases()
void PhaseVocoder::getPhases |
( |
double * |
theta | ) |
|
|
protected |
◆ processFrequencyDomain()
void PhaseVocoder::processFrequencyDomain |
( |
const double * |
reals, |
|
|
const double * |
imags, |
|
|
double * |
mag, |
|
|
double * |
phase, |
|
|
double * |
unwrapped |
|
) |
| |
Given one frame of frequency-domain samples, return the magnitudes, instantaneous phases, and unwrapped phases.
reals and imags must each contain size/2+1 values (where size is the frame size value as passed to the PhaseVocoder constructor).
mag, phase, and unwrapped must each be non-NULL and point to enough space for size/2+1 values.
◆ processTimeDomain()
void PhaseVocoder::processTimeDomain |
( |
const double * |
src, |
|
|
double * |
mag, |
|
|
double * |
phase, |
|
|
double * |
unwrapped |
|
) |
| |
Given one frame of time-domain samples, FFT and return the magnitudes, instantaneous phases, and unwrapped phases.
src must have size values (where size is the frame size value as passed to the PhaseVocoder constructor), and should have been windowed as necessary by the caller (but not fft-shifted).
mag, phase, and unwrapped must each be non-NULL and point to enough space for size/2 + 1 values. The redundant conjugate half of the output is not returned.
◆ reset()
void PhaseVocoder::reset |
( |
| ) |
|
Reset the stored phases to zero. Note that this may be necessary occasionally (depending on the application) to avoid loss of floating-point precision in the accumulated unwrapped phase values as they grow.
◆ unwrapPhases()
void PhaseVocoder::unwrapPhases |
( |
double * |
theta, |
|
|
double * |
unwrapped |
|
) |
| |
|
protected |
◆ m_fft
◆ m_hop
◆ m_imag
double* PhaseVocoder::m_imag |
|
protected |
◆ m_n
◆ m_phase
double* PhaseVocoder::m_phase |
|
protected |
◆ m_real
double* PhaseVocoder::m_real |
|
protected |
◆ m_time
double* PhaseVocoder::m_time |
|
protected |
◆ m_unwrapped
double* PhaseVocoder::m_unwrapped |
|
protected |
The documentation for this class was generated from the following file: