Struct bliss_audio_aubio_rs::FFT[][src]

pub struct FFT { /* fields omitted */ }
Expand description

FFT (Fast Fourier Transformation) object

This object computes forward and backward FFTs.

Depending on how aubio was compiled, FFT are computed using one of:

  • Ooura
  • FFTW3
  • vDSP

Implementations

impl FFT[src]

pub fn new(win_size: usize) -> Result<Self>[src]

Create new FFT computation object

pub fn get_win(&self) -> usize[src]

Get window size

pub fn get_fft(&self) -> usize[src]

Get fft size

pub fn do_<'i, 'o, I, O>(&mut self, input: I, spectrum: O) -> Status where
    I: Into<FVec<'i>>,
    O: Into<CVecMut<'o>>, 
[src]

Compute forward (direct) FFT

pub fn rdo<'i, 'o, I, O>(&mut self, spectrum: I, output: O) -> Status where
    I: Into<CVec<'i>>,
    O: Into<FVecMut<'o>>, 
[src]

Compute backward (inverse) FFT

pub fn do_complex<'i, 'o, I, O>(&mut self, input: I, compspec: O) -> Status where
    I: Into<FVec<'i>>,
    O: Into<FVecMut<'o>>, 
[src]

Compute forward (direct) FFT

pub fn rdo_complex<'i, 'o, I, O>(&mut self, compspec: I, output: O) -> Status where
    I: Into<FVec<'i>>,
    O: Into<FVecMut<'o>>, 
[src]

Compute backward (inverse) FFT

pub fn get_spectrum<'i, 'o, I, O>(compspec: I, spectrum: O) -> Status where
    I: Into<FVec<'i>>,
    O: Into<CVecMut<'o>>, 
[src]

Convert real/imag spectrum to norm/phas spectrum

pub fn get_realimag<'i, 'o, I, O>(spectrum: I, compspec: O) -> Status where
    I: Into<CVec<'i>>,
    O: Into<FVecMut<'o>>, 
[src]

Convert norm/phas spectrum to real/imag spectrum

pub fn get_phas<'i, 'o, I, O>(compspec: I, spectrum_phas: O) -> Status where
    I: Into<FVec<'i>>,
    O: Into<CVecPhasMut<'o>>, 
[src]

Compute phas spectrum from real/imag parts

pub fn get_norm<'i, 'o, I, O>(compspec: I, spectrum_norm: O) -> Status where
    I: Into<FVec<'i>>,
    O: Into<CVecNormMut<'o>>, 
[src]

Compute norm component from real/imag parts

pub fn get_imag<'i, 'o, I, O>(spectrum: I, compspec: O) -> Status where
    I: Into<CVec<'i>>,
    O: Into<FVecMut<'o>>, 
[src]

Compute imaginary part from the norm/phas cvec

pub fn get_real<'i, 'o, I, O>(spectrum: I, compspec: O) -> Status where
    I: Into<CVec<'i>>,
    O: Into<FVecMut<'o>>, 
[src]

Compute real part from the norm/phas cvec

Trait Implementations

impl Drop for FFT[src]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl RefUnwindSafe for FFT

impl !Send for FFT

impl !Sync for FFT

impl Unpin for FFT

impl UnwindSafe for FFT

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.