pub struct BiqFilt {
cascade: Vec<Biquad>,
srate: f32,
ofreq: f32,
oq: f32,
ogain: f32,
otype: u8,
}
Expand description
A simple amplifier
Fields
cascade: Vec<Biquad>
srate: f32
ofreq: f32
oq: f32
ogain: f32
otype: u8
Implementations
sourceimpl BiqFilt
impl BiqFilt
pub fn new(_nid: &NodeId, _node_global: &NodeGlobalRef) -> Self
pub const inp: &'static str = "Signal input"
pub const freq: &'static str = "Filter cutoff frequency."
pub const q: &'static str = "Filter Q factor."
pub const gain: &'static str = "Filter gain."
pub const ftype: &'static str = "'BtW LP' Butterworth Low-Pass, 'Res' Resonator"
pub const order: &'static str = ""
pub const sig: &'static str = "Filtered signal output."
pub const DESC: &'static str = r#"Biquad Filter This is the implementation of a biquad filter cascade. It is not meant for fast automation. Please use other nodes like eg. `SFilter` for that. "#
pub const HELP: &'static str = r#"Biquad Filter (Cascade) This is the implementation of a biquad filter cascade. It is not meant for fast automation and might blow up if you treat it too rough. Please use other nodes like eg. `SFilter` for that. "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for BiqFilt
impl DspNode for BiqFilt
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 BiqFilt
impl Send for BiqFilt
impl Sync for BiqFilt
impl Unpin for BiqFilt
impl UnwindSafe for BiqFilt
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