Expand description
A simple amplifier
Fields
comb: Box<Comb>
Implementations
sourceimpl Comb
impl Comb
pub fn new(_nid: &NodeId, _node_global: &NodeGlobalRef) -> Self
pub const inp: &'static str = "The signal input for the comb filter."
pub const g: &'static str = "The internal factor for the comb filter. Be careful with high ~~g~~ \ values (> **0.75**) in feedback mode, you will probably have to attenuate \ the output a bit yourself."
pub const time: &'static str = "The comb delay time."
pub const sig: &'static str = "The output of comb filter."
pub const mode: &'static str = "The mode of the comb filter, whether it's a \ feedback or feedforward comb filter."
pub const DESC: &'static str = r#"Comb Filter A very simple comb filter. It has interesting filtering effects and can also be used to build custom reverbs. "#
pub const HELP: &'static str = r#"A Simple Comb Filter This is a comb filter that can be used for filtering as well as for building reverbs or anything you might find it useful for. Attention: Be careful with high ~~g~~ values, you might need to attenuate the output manually for the feedback combfilter mode, because the feedback adds up quickly. For typical arrangements in combination with allpass filters, see the documentation of the `AllP` node! "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for Comb
impl DspNode for Comb
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 Comb
impl Send for Comb
impl Sync for Comb
impl Unpin for Comb
impl UnwindSafe for Comb
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