pub struct Fft { /* private fields */ }
Expand description
FFT parameter data structure.
Implementations§
Source§impl Fft
impl Fft
Sourcepub fn spectrum_size(&self) -> usize
pub fn spectrum_size(&self) -> usize
Number of entries in this spectrum window.
Divide this by the output rate to get the hz per entry.
Sourcepub fn spectrum(&self, channel: usize) -> &[c_float] ⓘ
pub fn spectrum(&self, channel: usize) -> &[c_float] ⓘ
Channel spectrum data.
Values inside the float buffer are typically between 0 and 1.0. Each top level array represents one PCM channel of data.
Address data as spectrum(channel)[bin]
. A bin is 1 fft window entry.
Only read/display half of the buffer typically for analysis as the 2nd half is usually the same data reversed due to the nature of the way FFT works.
Trait Implementations§
Source§impl ReadableParameter for Fft
impl ReadableParameter for Fft
Source§fn get_parameter_string(dsp: Dsp, index: c_int) -> Result<Utf8CString>
fn get_parameter_string(dsp: Dsp, index: c_int) -> Result<Utf8CString>
Get the parameter string at
index
.Source§impl ReadableParameterIndex<Fft> for SpectrumData
impl ReadableParameterIndex<Fft> for SpectrumData
impl StructuralPartialEq for Fft
Auto Trait Implementations§
impl Freeze for Fft
impl RefUnwindSafe for Fft
impl Send for Fft
impl Sync for Fft
impl Unpin for Fft
impl UnwindSafe for Fft
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more