Struct comfy_wgpu::ReverbBuilder
pub struct ReverbBuilder {
pub feedback: Value<f64>,
pub damping: Value<f64>,
pub stereo_width: Value<f64>,
pub mix: Value<f64>,
}Expand description
Configures a reverb effect.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.feedback: Value<f64>How much the room reverberates. A higher value will result in a bigger sounding room. 1.0 gives an infinitely reverberating room.
damping: Value<f64>How quickly high frequencies disappear from the reverberation.
stereo_width: Value<f64>The stereo width of the reverb effect (0.0 being fully mono, 1.0 being fully stereo).
mix: Value<f64>How much dry (unprocessed) signal should be blended
with the wet (processed) signal. 0.0 means
only the dry signal will be heard. 1.0 means
only the wet signal will be heard.
Implementations§
§impl ReverbBuilder
impl ReverbBuilder
pub fn new() -> ReverbBuilder
pub fn new() -> ReverbBuilder
Creates a new ReverbBuilder with the default settings.
pub fn feedback(self, feedback: impl Into<Value<f64>>) -> ReverbBuilder
pub fn feedback(self, feedback: impl Into<Value<f64>>) -> ReverbBuilder
Sets how much the room reverberates. A higher value will result in a bigger sounding room. 1.0 gives an infinitely reverberating room.
pub fn damping(self, damping: impl Into<Value<f64>>) -> ReverbBuilder
pub fn damping(self, damping: impl Into<Value<f64>>) -> ReverbBuilder
Sets how quickly high frequencies disappear from the reverberation.
pub fn stereo_width(self, stereo_width: impl Into<Value<f64>>) -> ReverbBuilder
pub fn stereo_width(self, stereo_width: impl Into<Value<f64>>) -> ReverbBuilder
Sets the stereo width of the reverb effect (0.0 being fully mono, 1.0 being fully stereo).
pub fn mix(self, mix: impl Into<Value<f64>>) -> ReverbBuilder
pub fn mix(self, mix: impl Into<Value<f64>>) -> ReverbBuilder
Sets how much dry (unprocessed) signal should be blended
with the wet (processed) signal. 0.0 means only the dry
signal will be heard. 1.0 means only the wet signal will
be heard.
Trait Implementations§
§impl Clone for ReverbBuilder
impl Clone for ReverbBuilder
§fn clone(&self) -> ReverbBuilder
fn clone(&self) -> ReverbBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ReverbBuilder
impl Debug for ReverbBuilder
§impl Default for ReverbBuilder
impl Default for ReverbBuilder
§fn default() -> ReverbBuilder
fn default() -> ReverbBuilder
§impl EffectBuilder for ReverbBuilder
impl EffectBuilder for ReverbBuilder
§type Handle = ReverbHandle
type Handle = ReverbHandle
§fn build(
self
) -> (Box<dyn Effect, Global>, <ReverbBuilder as EffectBuilder>::Handle)
fn build( self ) -> (Box<dyn Effect, Global>, <ReverbBuilder as EffectBuilder>::Handle)
§impl PartialEq<ReverbBuilder> for ReverbBuilder
impl PartialEq<ReverbBuilder> for ReverbBuilder
§fn eq(&self, other: &ReverbBuilder) -> bool
fn eq(&self, other: &ReverbBuilder) -> bool
self and other values to be equal, and is used
by ==.