pub struct BOsc {
osc: PolyBlepOscillator,
israte: f32,
}
Expand description
A simple amplifier
Fields
osc: PolyBlepOscillator
israte: f32
Implementations
sourceimpl BOsc
impl BOsc
pub fn new(nid: &NodeId, _node_global: &NodeGlobalRef) -> Self
pub const freq: &'static str = "Base frequency of the 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 pw: &'static str = ""
pub const wtype: &'static str = "Waveform type. Available waveforms:\n\ - **Sin** - Sine Waveform\n\ - **Tri** - Triangle Waveform\n\ - **Saw** - Sawtooth Waveform\n\ - **Pulse** - Pulse Waveform\n\ - **Pulse-DC** - Pulse Waveform (DC corrected)"
pub const sig: &'static str = "Oscillator output"
pub const DESC: &'static str = r#"Basic Oscillator A very basic band limited oscillator with a sine, triangle, pulse and sawtooth waveform. "#
pub const HELP: &'static str = r#"Basic Waveform Oscillator A very basic band limited oscillator with a sine, triangle, pulse and sawtooth waveform. The pulse width ~~pw~~ parameter only has an effect for the **Pulse** waveform. There are two pulse waveforms: **Pulse** and **Pulse-DC**. Depending on the pulse width setting of the oscillator the output of the pulse might introduce DC (direct current) into the signal. The **Pulse-DC** variant compensates that DC component by shifting the signal, just like a high pass filter would do. "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for BOsc
impl DspNode for BOsc
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 BOsc
impl Send for BOsc
impl Sync for BOsc
impl Unpin for BOsc
impl UnwindSafe for BOsc
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