pub struct FormantOsc { /* private fields */ }Expand description
Formant oscillator for vocal synthesis
Generates vocal-like sounds by combining a glottal pulse excitation with parallel resonant filters tuned to formant frequencies for different vowels.
§Ports
- Input 0: V/Oct pitch (0V = C4 = 261.63 Hz)
- Input 1: Vowel select (0-1 CV maps to A/E/I/O/U)
- Input 2: Formant shift (bipolar CV, shifts all formants up/down)
- Input 3: Vibrato depth (0-1 CV)
- Output 10: Audio output (±5V)
Implementations§
Trait Implementations§
Source§impl Default for FormantOsc
impl Default for FormantOsc
Source§impl GraphModule for FormantOsc
impl GraphModule for FormantOsc
Source§fn tick(&mut self, inputs: &PortValues, outputs: &mut PortValues)
fn tick(&mut self, inputs: &PortValues, outputs: &mut PortValues)
Process one sample given port values
Source§fn set_sample_rate(&mut self, sample_rate: f64)
fn set_sample_rate(&mut self, sample_rate: f64)
Set sample rate
Source§fn process_block(
&mut self,
inputs: &BlockPortValues,
outputs: &mut BlockPortValues,
frames: usize,
)
fn process_block( &mut self, inputs: &BlockPortValues, outputs: &mut BlockPortValues, frames: usize, )
Process a block of samples (optional optimization). Read more
Source§fn breaks_feedback_cycle(&self) -> bool
fn breaks_feedback_cycle(&self) -> bool
Whether this module breaks a feedback cycle in the patch graph. Read more
Source§fn serialize_state(&self) -> Option<Value>
fn serialize_state(&self) -> Option<Value>
Available on crate feature
alloc only.Serialize module state (alloc feature only)
Source§fn deserialize_state(&mut self, _state: &Value) -> Result<(), String>
fn deserialize_state(&mut self, _state: &Value) -> Result<(), String>
Available on crate feature
alloc only.Deserialize module state (alloc feature only)
Source§fn introspect(&self) -> Option<&dyn ModuleIntrospection>
fn introspect(&self) -> Option<&dyn ModuleIntrospection>
Available on crate feature
alloc only.Downcast this module to its
ModuleIntrospection view, if it exposes one. Read moreSource§fn introspect_mut(&mut self) -> Option<&mut dyn ModuleIntrospection>
fn introspect_mut(&mut self) -> Option<&mut dyn ModuleIntrospection>
Available on crate feature
alloc only.Mutable companion to
introspect, used to set internal parameters.Source§impl ModuleIntrospection for FormantOsc
Available on crate feature alloc only.
impl ModuleIntrospection for FormantOsc
Available on crate feature
alloc only.Auto Trait Implementations§
impl Freeze for FormantOsc
impl RefUnwindSafe for FormantOsc
impl Send for FormantOsc
impl Sync for FormantOsc
impl Unpin for FormantOsc
impl UnsafeUnpin for FormantOsc
impl UnwindSafe for FormantOsc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more