Struct tetanes::audio::window_sinc::WindowSinc
source · pub struct WindowSinc { /* private fields */ }
Implementations§
source§impl WindowSinc
impl WindowSinc
sourcepub fn new(sample_rate: f32, cutoff: f32, bandwidth: f32) -> Self
pub fn new(sample_rate: f32, cutoff: f32, bandwidth: f32) -> Self
Creates a new WindowSinc
instance.
Panics
Panics if cutoff
or bandwidth
ratio to sample_rate
is greater than 0.5
.
pub const fn taps(&self) -> &Vec<f32>
pub fn spectral_invert(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub const fn latency(&self) -> usize
Trait Implementations§
source§impl Clone for WindowSinc
impl Clone for WindowSinc
source§fn clone(&self) -> WindowSinc
fn clone(&self) -> WindowSinc
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowSinc
impl Debug for WindowSinc
source§impl<'de> Deserialize<'de> for WindowSinc
impl<'de> Deserialize<'de> for WindowSinc
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for WindowSinc
impl PartialEq for WindowSinc
source§fn eq(&self, other: &WindowSinc) -> bool
fn eq(&self, other: &WindowSinc) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for WindowSinc
impl Serialize for WindowSinc
impl StructuralPartialEq for WindowSinc
Auto Trait Implementations§
impl RefUnwindSafe for WindowSinc
impl Send for WindowSinc
impl Sync for WindowSinc
impl Unpin for WindowSinc
impl UnwindSafe for WindowSinc
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