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 mono1.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
impl ReverbParams
pub const MIN_CUTOFF_FREQ: f32 = 20f32
pub const MAX_CUTOFF_FREQ: f32 = 2.0E+4f32
pub const MIN_SHELF_GAIN_DB: f32 = -6f32
pub const MAX_SHELF_GAIN_DB: f32 = 0f32
pub const MIN_DELAY_SECONDS: f32 = 0f32
pub const MAX_DELAY_SECONDS: f32 = 0.300000012f32
pub const MIN_DECAY_SECONDS: f32 = 0.100000001f32
pub const MAX_DECAY_SECONDS: f32 = 64f32
pub const MIN_CHORUS_FREQ: f32 = 0.00300000003f32
pub const MAX_CHORUS_FREQ: f32 = 8f32
pub const DEFAULT_PRE_LOW_CUTOFF: f32 = 20f32
pub const DEFAULT_PRE_HIGH_CUTOFF: f32 = 4700f32
pub const DEFAULT_LOW_SHELF_CUTOFF: f32 = 20f32
pub const DEFAULT_LOW_SHELF_GAIN_DB: f32 = 0f32
pub const DEFAULT_HIGH_SHELF_CUTOFF: f32 = 1480f32
pub const DEFAULT_HIGH_SHELF_GAIN_DB: f32 = -1f32
pub const DEFAULT_DRY_WET_MIX: f32 = 0.25f32
pub const DEFAULT_DELAY_SECONDS: f32 = 0.00400000019f32
pub const DEFAULT_DECAY_SECONDS: f32 = 1f32
pub const DEFAULT_REVERB_SIZE: f32 = 0.5f32
pub const DEFAULT_WIDTH: f32 = -0.0500000007f32
pub const DEFAULT_CHORUS_AMOUNT: f32 = 0.0460000001f32
pub const DEFAULT_CHORUS_FREQ: f32 = 0.25f32
Trait Implementations§
source§impl Clone for ReverbParams
impl Clone for ReverbParams
source§fn clone(&self) -> ReverbParams
fn clone(&self) -> ReverbParams
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReverbParams
impl Debug for ReverbParams
source§impl Default for ReverbParams
impl Default for ReverbParams
source§impl PartialEq for ReverbParams
impl PartialEq for ReverbParams
source§fn eq(&self, other: &ReverbParams) -> bool
fn eq(&self, other: &ReverbParams) -> bool
self
and other
values to be equal, and is used
by ==
.