pub struct Rust1x1 {
buffer: DynNodeBuffer<Box<dyn DynamicNode1x1>>,
}
Expand description
A native Rust code node that uses trait objects for dispatch
Fields
buffer: DynNodeBuffer<Box<dyn DynamicNode1x1>>
Implementations
sourceimpl Rust1x1
impl Rust1x1
pub fn new(nid: &NodeId, node_global: &NodeGlobalRef) -> Self
pub const inp: &'static str = "Signal input. Signal input to the dynamically dispatched Rust node."
pub const alpha: &'static str = "Alpha parameter for the dynamically dispatched Rust node."
pub const beta: &'static str = "Beta parameter for the dynamically dispatched Rust node."
pub const gamma: &'static str = "Gamma parameter for the dynamically dispatched Rust node."
pub const delta: &'static str = "Delta parameter for the dynamically dispatched Rust node."
pub const sig: &'static str = "Signal output. Signal output of the dynamically dispatched Rust node."
pub const DESC: &'static str = r#"Rust Code Node This node does provide the user of HexoDSP or the SynthConstructor with an API to code custom DSP node implementations in pure Rust at compile time. It does not have any relevance for HexoSynth. See also [crate::SynthConstructor] and [crate::DynamicNode1x1]. "#
pub const HELP: &'static str = r#"Rust Code Node This node does provide the user of HexoDSP or the SynthConstructor with an API to code custom DSP node implementations in pure Rust at compile time. Treat this node as plugin API into the HexoDSP DSP graph. This node does nothing in HexoSynth. See also [crate::SynthConstructor] and [crate::DynamicNode1x1]. "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for Rust1x1
impl DspNode for Rust1x1
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 Rust1x1
impl Send for Rust1x1
impl Sync for Rust1x1
impl Unpin for Rust1x1
impl !UnwindSafe for Rust1x1
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