pub struct StftFrame {
pub sample_index: usize,
pub magnitudes: Vec<f32>,
pub phases: Vec<f32>,
pub spectrum: Vec<(f32, f32)>,
}Expand description
Output of one STFT analysis frame.
Fields§
§sample_index: usizeIndex of the centre sample in the original stream.
magnitudes: Vec<f32>Magnitude spectrum, one-sided, length window_size / 2 + 1.
phases: Vec<f32>Phase spectrum (radians), one-sided, same length as magnitudes.
spectrum: Vec<(f32, f32)>Full complex spectrum as (re, im) pairs, length window_size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StftFrame
impl RefUnwindSafe for StftFrame
impl Send for StftFrame
impl Sync for StftFrame
impl Unpin for StftFrame
impl UnsafeUnpin for StftFrame
impl UnwindSafe for StftFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more