[−][src]Struct aubio_rs::PVoc
Phase vocoder object
Methods
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 !Send for PVoc
impl !Sync for PVoc
impl Unpin for PVoc
impl UnwindSafe for PVoc
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,