pub struct VOsc {
israte: f32,
osc: VPSOscillator,
oversampling: Box<Oversampling<OVERSAMPLING>>,
}
Expand description
A simple amplifier
Fields
israte: f32
osc: VPSOscillator
oversampling: Box<Oversampling<OVERSAMPLING>>
Implementations
sourceimpl VOsc
impl VOsc
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 d: &'static str = "This is the horzontal bending point of the waveform. \ It has a similar effect that pulse width settings have on other \ oscillators. Make sure to try modulating this parameter at audio rate!\ "
pub const v: &'static str = "This is the vertical bending point of the waveform. \ You can adjust the effect that ~~d~~ has on the waveform with this \ parameter. Make sure to try to modulate this parameter at audio rate!\ "
pub const vs: &'static str = "Scaling factor for ~~v~~. If you increase this beyond **1.0**, \ you will hear formant like sounds from the oscillator. Try adjusting \ ~~d~~ to move the formants around."
pub const dist: &'static str = "A collection of waveshaper/distortions to choose from."
pub const damt: &'static str = "Distortion amount."
pub const ovrsmpl: &'static str = "Enable/Disable oversampling."
pub const sig: &'static str = "Oscillator output"
pub const DESC: &'static str = r#"V Oscillator A vector phase shaping oscillator, to create interesting waveforms and ways to manipulate them. It has two parameters (~~v~~ and ~~d~~) to shape the phase of the sinusoid wave, and a ~~vs~~ parameter to add extra spice. Distortion can beef up the oscillator output and you can apply oversampling. "#
pub const HELP: &'static str = r#"Vector Phase Shaping Oscillator A vector phase shaping oscillator, to create interesting waveforms and ways to manipulate them. It has two parameters (~~v~~ and ~~d~~) to shape the phase of the sinusoid wave, and a third parameter ~~vs~~ to add extra spice. With distortion you can beef up the oscillator output even more and to make it more harmonic you can apply oversampling. "#
pub fn graph_fun() -> Option<GraphFun>
Trait Implementations
sourceimpl DspNode for VOsc
impl DspNode for VOsc
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 VOsc
impl Send for VOsc
impl Sync for VOsc
impl Unpin for VOsc
impl UnwindSafe for VOsc
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