Struct aubio_rs::PVoc [−][src]
pub struct PVoc { /* fields omitted */ }
Phase vocoder object
Implementations
impl PVoc
[src]
impl PVoc
[src]pub fn new(win_size: usize, hop_size: usize) -> Result<Self>
[src]
Create phase vocoder object
win_size
Size of analysis buffer (and length the FFT transform)hop_size
Step size between two consecutive analysis
pub fn with_window(self, window_type: WindowType) -> Result<Self>
[src]
Select window type
pub fn get_hop(&self) -> usize
[src]
Get hop size
pub fn get_win(&self) -> usize
[src]
Get window size
pub fn do_<'i, 'o, I, O>(&mut self, input: I, fftgrain: O) -> Status where
I: Into<FVec<'i>>,
O: Into<CVecMut<'o>>,
[src]
I: Into<FVec<'i>>,
O: Into<CVecMut<'o>>,
Compute spectral frame
This function accepts an input vector of size hop_size
.
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.
input
New input signal (hop_size
long)fftgrain
Output spectral frame (win_size
long)
pub fn rdo<'i, 'o, I, O>(&mut self, fftgrain: I, output: O) -> Status where
I: Into<CVec<'i>>,
O: Into<FVecMut<'o>>,
[src]
I: Into<CVec<'i>>,
O: Into<FVecMut<'o>>,
Compute signal from spectral frame
This function takes an input spectral frame fftgrain of size win_size
and computes its inverse Fourier transform. Overlap-add synthesis is then
computed using the previously synthetised frames, and the output stored in out.
fftgrain
Input spectral frame (win_size
long)output
Output signal (hop_size
long)
pub fn set_window(&mut self, window_type: WindowType) -> Status
[src]
Set window type
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PVoc
impl RefUnwindSafe for PVoc
impl UnwindSafe for PVoc
impl UnwindSafe for PVoc