pub struct FVaFilt {
params: Arc<FilterParams>,
old_params: Box<(f32, f32, f32, i8, i8, i8)>,
ladder: LadderFilter,
svf: Svf,
sallenkey: SallenKey,
oversample: (PolyIIRHalfbandFilter, PolyIIRHalfbandFilter),
dc_filter: DCFilterX4,
}
Expand description
A simple amplifier
Fields
params: Arc<FilterParams>
old_params: Box<(f32, f32, f32, i8, i8, i8)>
ladder: LadderFilter
svf: Svf
sallenkey: SallenKey
oversample: (PolyIIRHalfbandFilter, PolyIIRHalfbandFilter)
dc_filter: DCFilterX4
Implementations
sourceimpl FVaFilt
impl FVaFilt
pub fn new(_nid: &NodeId, _node_global: &NodeGlobalRef) -> Self
pub const in_l: &'static str = "Signal left channel input"
pub const in_r: &'static str = "Signal right channel input"
pub const freq: &'static str = "Filter cutoff frequency."
pub const res: &'static str = "Filter resonance."
pub const drive: &'static str = "Filter (over) drive."
pub const ftype: &'static str = "The filter type, there are varying types of \ filters available:\n\ - **Ladder**\n\ - **SVF**\n\ - **Sallen Key**\n"
pub const smode: &'static str = "SVF Filter Mode\n\ - **LP** - Low pass\n\ - **HP** - High pass\n\ - **BP1** - Band pass 1\n\ - **BP2** - Band pass 2\n\ - **Notch** - Notch\n"
pub const lmode: &'static str = "Ladder Slope\n\ - **LP 6dB** - Low pass 6dB\n\ - **LP 12dB** - Low pass 12dB\n\ - **LP 18dB** - Low pass 18dB\n\ - **LP 24dB** - Low pass 24dB\n\ - **HP 6dB** - High pass 6dB\n\ - **HP 12dB** - High pass 12dB\n\ - **HP 18dB** - High pass 18dB\n\ - **HP 24dB** - High pass 24dB\n\ - **BP 12dB** - Band pass 12dB\n\ - **BP 24dB** - Band pass 24dB\n\ - **N 12dB** - Notch 12dB\n\ "
pub const sig_l: &'static str = "Filtered signal left channel output."
pub const sig_r: &'static str = "Filtered signal right channel output."
pub const DESC: &'static str = r#"F's Virtual Analog (Stereo) Filter This is a collection of virtual analog filters that were implemented by Fredemus (aka Frederik Halkjær). They behave well when driven hard but that comes with the price that they are more expensive. "#
pub const HELP: &'static str = r#"Frederik Halkjær Virtual Analog Stereo Filters "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for FVaFilt
impl DspNode for FVaFilt
sourcefn set_sample_rate(&mut self, srate: f32)
fn set_sample_rate(&mut self, srate: f32)
Updates the sample rate for the node.
sourcefn process(
&mut self,
ctx: &mut dyn NodeAudioContext,
_ectx: &mut NodeExecContext,
_nctx: &NodeContext<'_>,
atoms: &[SAtom],
inputs: &[ProcBuf],
outputs: &mut [ProcBuf],
ctx_vals: LedPhaseVals<'_>
)
fn process(
&mut self,
ctx: &mut dyn NodeAudioContext,
_ectx: &mut NodeExecContext,
_nctx: &NodeContext<'_>,
atoms: &[SAtom],
inputs: &[ProcBuf],
outputs: &mut [ProcBuf],
ctx_vals: LedPhaseVals<'_>
)
The code DSP function. Read more
Auto Trait Implementations
impl RefUnwindSafe for FVaFilt
impl Send for FVaFilt
impl Sync for FVaFilt
impl Unpin for FVaFilt
impl UnwindSafe for FVaFilt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more