Struct vitalium_verb_dsp::ReverbParams

source ·
pub struct ReverbParams {
Show 13 fields pub mix: f32, pub size: f32, pub decay: f32, pub delay: f32, pub width: f32, pub chorus_freq_hz: f32, pub chorus_amount: f32, pub pre_low_cut_hz: f32, pub pre_high_cut_hz: f32, pub low_shelf_cut_hz: f32, pub low_shelf_gain_db: f32, pub high_shelf_cut_hz: f32, pub high_shelf_gain_db: f32,
}
Expand description

The parameters of the reverb.

Fields§

§mix: f32

The wet/dry mix, in the range [0.0, 1.0]

By default this is set to 0.25

§size: f32

The size of the reverb, in the range [0.0, 1.0]

By default this is set to 0.5

§decay: f32

The decay of the reverb in seconds, in the range [0.1, 64.0]

By default this is set to 1.0

§delay: f32

The pre-delay of the reverb in seconds, in the range [0.0, 0.3]

By default this is set to 0.004

§width: f32

The stereo width adjustment of the wet signal, in the range [-1.0, 1.0], where:

  • 0.0 is no change to stereo width
  • -1.0 reduces the stereo width to mono
  • 1.0 widens the stereo width to the maximum amount

By default this is set to -0.05

§chorus_freq_hz: f32

The frequency of the chorus applied to the feedback, in the range [0.003, 8.0]

By default this is set to 0.25

§chorus_amount: f32

The amount of chorus applied to the feedback, in the range [0.0, 1.0]

By default this is set to 0.046

§pre_low_cut_hz: f32

The cutoff of the highpass filter applied to the input before it is sent to the reverb tank, in the range [20.0, 20,000.0]

By default this is set to 20.0

§pre_high_cut_hz: f32

The cutoff of the lowpass filter applied to the input before it is sent to the reverb tank, in the range [20.0, 20,000.0]

By default this is set to 4,700.0

§low_shelf_cut_hz: f32

The cutoff of the low-shelf filter applied to the feedback, in the range [20.0, 20,000.0]

By default this is set to 20.0

§low_shelf_gain_db: f32

The gain of the low-shelf filter applied to the feedback in decibels, in the range [-6.0, 0.0]

By default this is set to 0.0

§high_shelf_cut_hz: f32

The cutoff of the high-shelf filter applied to the feedback, in the range [20.0, 20,000.0]

By default this is set to 1,480.0

§high_shelf_gain_db: f32

The gain of the high-shelf filter applied to the feedback in decibels, in the range [-6.0, 0.0]

By default this is set to -1.0

Implementations§

source§

impl ReverbParams

source

pub const MIN_CUTOFF_FREQ: f32 = 20f32

source

pub const MAX_CUTOFF_FREQ: f32 = 2.0E+4f32

source

pub const MIN_SHELF_GAIN_DB: f32 = -6f32

source

pub const MAX_SHELF_GAIN_DB: f32 = 0f32

source

pub const MIN_DELAY_SECONDS: f32 = 0f32

source

pub const MAX_DELAY_SECONDS: f32 = 0.300000012f32

source

pub const MIN_DECAY_SECONDS: f32 = 0.100000001f32

source

pub const MAX_DECAY_SECONDS: f32 = 64f32

source

pub const MIN_CHORUS_FREQ: f32 = 0.00300000003f32

source

pub const MAX_CHORUS_FREQ: f32 = 8f32

source

pub const DEFAULT_PRE_LOW_CUTOFF: f32 = 20f32

source

pub const DEFAULT_PRE_HIGH_CUTOFF: f32 = 4700f32

source

pub const DEFAULT_LOW_SHELF_CUTOFF: f32 = 20f32

source

pub const DEFAULT_LOW_SHELF_GAIN_DB: f32 = 0f32

source

pub const DEFAULT_HIGH_SHELF_CUTOFF: f32 = 1480f32

source

pub const DEFAULT_HIGH_SHELF_GAIN_DB: f32 = -1f32

source

pub const DEFAULT_DRY_WET_MIX: f32 = 0.25f32

source

pub const DEFAULT_DELAY_SECONDS: f32 = 0.00400000019f32

source

pub const DEFAULT_DECAY_SECONDS: f32 = 1f32

source

pub const DEFAULT_REVERB_SIZE: f32 = 0.5f32

source

pub const DEFAULT_WIDTH: f32 = -0.0500000007f32

source

pub const DEFAULT_CHORUS_AMOUNT: f32 = 0.0460000001f32

source

pub const DEFAULT_CHORUS_FREQ: f32 = 0.25f32

Trait Implementations§

source§

impl Clone for ReverbParams

source§

fn clone(&self) -> ReverbParams

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for ReverbParams

source§

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

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

impl Default for ReverbParams

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl PartialEq for ReverbParams

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for ReverbParams

source§

impl StructuralPartialEq for ReverbParams

Auto Trait Implementations§

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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> ToOwned for T
where T: Clone,

§

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>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.