pub struct Test {
trig_sig: TrigSignal,
trigger: bool,
}
Expand description
A simple amplifier
Fields
trig_sig: TrigSignal
trigger: bool
Implementations
sourceimpl Test
impl Test
pub fn new(_nid: &NodeId, _node_global: &NodeGlobalRef) -> Self
pub const f: &'static str = "F Test"
pub const p: &'static str = "An unsmoothed parameter for automated tests."
pub const trig: &'static str = "A trigger input, that will create a short pulse on the ~~tsig~~ output."
pub const sig: &'static str = "The output of p as signal"
pub const tsig: &'static str = "A short trigger pulse will be generated when the ~~trig~~ input is triggered."
pub const out2: &'static str = "A test output that will emit **1.0** if output ~~sig~~ is connected."
pub const out3: &'static str = "A test output that will emit **1.0** if input ~~f~~ is connected."
pub const out4: &'static str = ""
pub const outc: &'static str = "Emits a number that defines the out_connected bitmask. Used only for testing!"
pub const DESC: &'static str = r#""#
pub const HELP: &'static str = r#""#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for Test
impl DspNode for Test
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],
_led: LedPhaseVals<'_>
)
fn process(
&mut self,
ctx: &mut dyn NodeAudioContext,
_ectx: &mut NodeExecContext,
nctx: &NodeContext<'_>,
atoms: &[SAtom],
_inputs: &[ProcBuf],
outputs: &mut [ProcBuf],
_led: LedPhaseVals<'_>
)
The code DSP function. Read more
Auto Trait Implementations
impl RefUnwindSafe for Test
impl Send for Test
impl Sync for Test
impl Unpin for Test
impl UnwindSafe for Test
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