pub struct BowStri {
bstr: Box<BowedString>,
}
Expand description
A bowed string simulation oscillator
Fields
bstr: Box<BowedString>
Implementations
sourceimpl BowStri
impl BowStri
pub fn new(_nid: &NodeId, _node_global: &NodeGlobalRef) -> Self
pub const freq: &'static str = "Frequency of the bowed string oscillator.\n"
pub const det: &'static str = "Detune the oscillator in semitones and cents. \ the input of this value is rounded to semitones on coarse input. \ Fine input lets you detune in cents (rounded). \ A signal sent to this port is not rounded.\n\ Note: The signal input allows detune +-10 octaves."
pub const vel: &'static str = "Velocity of the bow"
pub const force: &'static str = "Force of the bow"
pub const pos: &'static str = "Position of the bow"
pub const sig: &'static str = "Oscillator signal output.\n"
pub const DESC: &'static str = r#"Bowed String Oscillator This is an oscillator that simulates a bowed string. "#
pub const HELP: &'static str = r#"A Bowed String Simulation Oscillator This is an oscillator that simulates a bowed string. It's a bit wonky, so play around with the parameters and see what works and what doesn't. It plays find in the area from **~55Hz** up to **~1760Hz**, beyond that it might not produce a sound. I can recommend to apply an envelope to the ~~vel~~ parameter, which is basically the bow's velocity. "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for BowStri
impl DspNode for BowStri
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 BowStri
impl Send for BowStri
impl Sync for BowStri
impl Unpin for BowStri
impl UnwindSafe for BowStri
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