[][src]Struct bae_rs::modifiers::bandpass::BandPass

pub struct BandPass { /* fields omitted */ }

-12dB per octave BandPass filter.

Methods

impl BandPass[src]

pub fn new(f: MathT, q: MathT) -> Self[src]

Creates a new BandPass object from the given central frequency and q value.

The filter's quality is set to the central frequency divided by the difference between the corner frequencies.

pub fn from_corners(f: (MathT, MathT)) -> Self[src]

Creates a new BandPass object from given corner frequencies.

pub fn get_central_frequency(&self) -> MathT[src]

Returns the central frequency of the filter.

pub fn set_central_frequency(&mut self, f: MathT)[src]

Sets a new central frequency.

pub fn get_quality(&self) -> MathT[src]

Returns the quality of the filter.

pub fn set_quality(&mut self, q: MathT)[src]

Sets the quality of the filter.

The filter's quality is set to the central frequency divided by the difference between the corner frequencies.

pub fn get_corner_frequencies(&self) -> (MathT, MathT)[src]

Returns the corner frequencies of the filter.

pub fn set_corner_frequencies(&mut self, f: (MathT, MathT))[src]

Sets the corner frequencies of the filter.

Trait Implementations

impl Clone for BandPass[src]

impl Modifier for BandPass[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,