Struct comfy_wgpu::FilterBuilder
pub struct FilterBuilder {
pub mode: FilterMode,
pub cutoff: Value<f64>,
pub resonance: Value<f64>,
pub mix: Value<f64>,
}Expand description
Configures a filter 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.mode: FilterModeThe frequencies that the filter will remove.
cutoff: Value<f64>The cutoff frequency of the filter (in hertz).
resonance: Value<f64>The resonance of the filter.
The resonance is a feedback effect that produces a distinctive “ringing” sound.
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 FilterBuilder
impl FilterBuilder
pub fn new() -> FilterBuilder
pub fn new() -> FilterBuilder
Creates a new FilterBuilder with the default settings.
pub fn mode(self, mode: FilterMode) -> FilterBuilder
pub fn mode(self, mode: FilterMode) -> FilterBuilder
Sets the frequencies that the filter will remove.
pub fn cutoff(self, cutoff: impl Into<Value<f64>>) -> FilterBuilder
pub fn cutoff(self, cutoff: impl Into<Value<f64>>) -> FilterBuilder
Sets the cutoff frequency of the filter (in hertz).
pub fn resonance(self, resonance: impl Into<Value<f64>>) -> FilterBuilder
pub fn resonance(self, resonance: impl Into<Value<f64>>) -> FilterBuilder
Sets the resonance of the filter.
pub fn mix(self, mix: impl Into<Value<f64>>) -> FilterBuilder
pub fn mix(self, mix: impl Into<Value<f64>>) -> FilterBuilder
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 FilterBuilder
impl Clone for FilterBuilder
§fn clone(&self) -> FilterBuilder
fn clone(&self) -> FilterBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for FilterBuilder
impl Debug for FilterBuilder
§impl Default for FilterBuilder
impl Default for FilterBuilder
§fn default() -> FilterBuilder
fn default() -> FilterBuilder
§impl EffectBuilder for FilterBuilder
impl EffectBuilder for FilterBuilder
§type Handle = FilterHandle
type Handle = FilterHandle
§fn build(
self
) -> (Box<dyn Effect, Global>, <FilterBuilder as EffectBuilder>::Handle)
fn build( self ) -> (Box<dyn Effect, Global>, <FilterBuilder as EffectBuilder>::Handle)
§impl PartialEq<FilterBuilder> for FilterBuilder
impl PartialEq<FilterBuilder> for FilterBuilder
§fn eq(&self, other: &FilterBuilder) -> bool
fn eq(&self, other: &FilterBuilder) -> bool
self and other values to be equal, and is used
by ==.