Phase vocoder object.
More...
Go to the source code of this file.
Detailed Description
Phase vocoder object.
This object implements a phase vocoder. The spectral frames are computed using a HanningZ window and a swapped version of the signal to simplify the phase relationships across frames. The window sizes and overlap are specified at creation time. Multiple channels are fully supported.
Function Documentation
compute spectral frame
This function accepts an input vector of size [channels]x[hop_s]. The analysis buffer is rotated and filled with the new data. After windowing of this signal window, the Fourier transform is computed and returned in fftgrain as two vectors, magnitude and phase.
- Parameters:
-
pv | phase vocoder object as returned by new_aubio_pvoc |
in | new input signal (hop_s long) |
fftgrain | output spectral frame |
get channel number
- Parameters:
-
pv | phase vocoder to get the number of channels from |
get hop size
- Parameters:
-
pv | phase vocoder to get the hop size from |
get window size
- Parameters:
-
pv | phase vocoder to get the window size from |
compute signal from spectral frame
This function takes an input spectral frame fftgrain of size [channels]x[buf_s] and computes its inverse Fourier transform. Overlap-add synthesis is then computed using the previously synthetised frames, and the output stored in out.
- Parameters:
-
pv | phase vocoder object as returned by new_aubio_pvoc |
fftgrain | input spectral frame |
out | output signal (hop_s long) |
delete phase vocoder object
- Parameters:
-
pv | phase vocoder object as returned by new_aubio_pvoc |
create phase vocoder object
- Parameters:
-
win_s | size of analysis buffer (and length the FFT transform) |
hop_s | step size between two consecutive analysis |
channels | number of channels |