Expand description
A simple amplifier
Fields
allpass: Box<AllPass<f64>>
Implementations
sourceimpl AllP
impl AllP
pub fn new(_nid: &NodeId, _node_global: &NodeGlobalRef) -> Self
pub const inp: &'static str = "The signal input for the allpass filter."
pub const g: &'static str = "The internal factor for the allpass filter."
pub const time: &'static str = "The allpass delay time."
pub const sig: &'static str = "The output of allpass filter."
pub const DESC: &'static str = r#"Single Allpass Filter This is an allpass filter that can be used to build reverbs or anything you might find it useful for. "#
pub const HELP: &'static str = r#"A Simple Single Allpass Filter This is an allpass filter that can be used to build reverbs or anything you might find it useful for. Typical arrangements are (Schroeder Reverb): ```text t=4.5ms g=0.7 -> Comb AllP -> AllP -> AllP -> -> Comb t=42ms t=13.5ms -> Comb g=0.7 g=0.7 -> Comb ``` Or: ```text Comb -> t=0.48ms Comb -> g=0.7 Comb -> AllP -> AllP -> AllP Comb -> t=5ms t=1.68ms g=0.7 g=0.7 ``` Typical values for the comb filters are in the range ~~g~~=**0.6** to **0.9** and time in the range of **30ms** to **250ms**. Feel free to deviate from this and experiment around. Building your own reverbs is fun! (And don't forget that you can create feedback using the `FbWr` and `FbRd` nodes!) "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for AllP
impl DspNode for AllP
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 AllP
impl Send for AllP
impl Sync for AllP
impl Unpin for AllP
impl UnwindSafe for AllP
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