Skip to main content

Op

Enum Op 

Source
pub enum Op {
    Peq {
        frequency: f64,
        q: f64,
        gain_db: f64,
        fixed: bool,
    },
    Fir {
        name: String,
        taps: Vec<f64>,
        fixed: bool,
    },
    FirLowRate {
        name: String,
        taps_low: Vec<f64>,
        fs_low: f64,
        fixed: bool,
    },
    Gain {
        db: f64,
        fixed: bool,
    },
    Invert {
        fixed: bool,
    },
    Hp {
        frequency: f64,
        kind: BandType,
        fixed: bool,
    },
    Lp {
        frequency: f64,
        kind: BandType,
        fixed: bool,
    },
    Ap {
        frequency: f64,
        q: f64,
        fixed: bool,
    },
    Delay {
        ms: f64,
        fixed: bool,
    },
}
Expand description

One filter-plan operation. fixed marks a fixed subwoofer filter.

Variants§

§

Peq

RBJ peaking EQ.

Fields

§frequency: f64

Center frequency in hertz.

§q: f64

Quality factor.

§gain_db: f64

Gain in dB.

§fixed: bool

Whether the band is a fixed subwoofer filter.

§

Fir

48 kHz FIR and its plan-local stem.

Fields

§name: String

FIR stem before the writer-specific prefix.

§taps: Vec<f64>

IEEE-float samples before WAV serialization.

§fixed: bool

Fixed-filter marker (normally false for FIRs).

§

FirLowRate

Compact design-rate FIR, expanded only for a consumer that needs 48 kHz taps.

Fields

§name: String

FIR stem before the writer-specific prefix.

§taps_low: Vec<f64>

Design-rate coefficients including the isolation low-pass.

§fs_low: f64

Design sample rate in hertz.

§fixed: bool

Fixed-filter marker.

§

Gain

Gain in dB and its fixed marker.

Fields

§db: f64

Gain in dB.

§fixed: bool

Fixed-filter marker.

§

Invert

Polarity inversion and its fixed marker.

Fields

§fixed: bool

Fixed-filter marker.

§

Hp

Analog-prototype high-pass.

Fields

§frequency: f64

Cutoff frequency in hertz.

§kind: BandType

Filter family and order.

§fixed: bool

Fixed-filter marker.

§

Lp

Analog-prototype low-pass.

Fields

§frequency: f64

Cutoff frequency in hertz.

§kind: BandType

Filter family and order.

§fixed: bool

Fixed-filter marker.

§

Ap

Second-order analog all-pass.

Fields

§frequency: f64

Center frequency in hertz.

§q: f64

Quality factor.

§fixed: bool

Fixed-filter marker.

§

Delay

Delay in milliseconds.

Fields

§ms: f64

Delay in milliseconds.

§fixed: bool

Fixed-filter marker.

Implementations§

Source§

impl Op

Source

pub fn is_fixed(&self) -> bool

Whether the operation is a fixed subwoofer filter.

Trait Implementations§

Source§

impl Clone for Op

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Op

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Op

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Op

Auto Trait Implementations§

§

impl Freeze for Op

§

impl RefUnwindSafe for Op

§

impl Send for Op

§

impl Sync for Op

§

impl Unpin for Op

§

impl UnsafeUnpin for Op

§

impl UnwindSafe for Op

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.