pub struct Delay {
buffer: Box<DelayBuffer<f32>>,
clock: TriggerSampleClock,
}
Expand description
A simple amplifier
Fields
buffer: Box<DelayBuffer<f32>>
clock: TriggerSampleClock
Implementations
sourceimpl Delay
impl Delay
pub fn new(_nid: &NodeId, _node_global: &NodeGlobalRef) -> Self
pub const inp: &'static str = "The signal input for the delay. You can mix in this \ input to the output with the ~~mix~~ parameter."
pub const trig: &'static str = "If you set ~~mode~~ to **Sync** the delay time will be \ synchronized to the trigger signals received on this input."
pub const time: &'static str = "The delay time. It can be freely modulated to your \ likings."
pub const fb: &'static str = "The feedback amount of the delay output to it's input. \ "
pub const mix: &'static str = "The dry/wet mix of the delay."
pub const mode: &'static str = "Allows different operating modes of the delay. \ **Time** is the default, and means that the ~~time~~ input \ specifies the delay time. **Sync** will synchronize the delay time \ with the trigger signals on the ~~trig~~ input."
pub const sig: &'static str = "The output of the dry/wet mix."
pub const DESC: &'static str = r#"Simple Delay Line This is a very simple single buffer delay node. It provides an internal feedback and dry/wet mix. "#
pub const HELP: &'static str = r#"A Simple Delay Line This node provides a very simple delay line with the bare minimum of parameters. Most importantly a freely modulateable ~~time~~ parameter and a feedback ~~fb~~ parameter. Via the ~~mix~~ parameter you can mix in the input signal to the output. You can use this node to delay any kind of signal, from a simple control signal to an audio signal. For other kinds of delay/feedback please see also the `FbWr`/`FbRd` nodes. "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for Delay
impl DspNode for Delay
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 Delay
impl Send for Delay
impl Sync for Delay
impl Unpin for Delay
impl UnwindSafe for Delay
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