pub struct Wavetable<const BUFSIZE: usize> { /* private fields */ }Expand description
A simple, raw wavetable oscillator
Implementations§
Trait Implementations§
Source§impl<const BUFSIZE: usize> MonoSource<BUFSIZE> for Wavetable<BUFSIZE>
impl<const BUFSIZE: usize> MonoSource<BUFSIZE> for Wavetable<BUFSIZE>
fn reset(&mut self)
fn set_modulator( &mut self, par: SynthParameterLabel, init: f32, modulator: Modulator<BUFSIZE>, )
fn set_parameter(&mut self, par: SynthParameterLabel, val: &SynthParameterValue)
fn finish(&mut self)
fn is_finished(&self) -> bool
fn get_next_block( &mut self, start_sample: usize, in_buffers: &[SampleBuffer], ) -> [f32; BUFSIZE]
Source§fn set_param_or_modulator(
&mut self,
par: SynthParameterLabel,
val_or_mod: ValueOrModulator<BUFSIZE>,
)
fn set_param_or_modulator( &mut self, par: SynthParameterLabel, val_or_mod: ValueOrModulator<BUFSIZE>, )
default impl so we have a common interface …
fn get_next_block_with_input( &mut self, start_sample: usize, _input: &[f32; BUFSIZE], in_buffers: &[SampleBuffer], ) -> [f32; BUFSIZE]
Auto Trait Implementations§
impl<const BUFSIZE: usize> !RefUnwindSafe for Wavetable<BUFSIZE>
impl<const BUFSIZE: usize> !UnwindSafe for Wavetable<BUFSIZE>
impl<const BUFSIZE: usize> Freeze for Wavetable<BUFSIZE>
impl<const BUFSIZE: usize> Send for Wavetable<BUFSIZE>
impl<const BUFSIZE: usize> Sync for Wavetable<BUFSIZE>
impl<const BUFSIZE: usize> Unpin for Wavetable<BUFSIZE>
impl<const BUFSIZE: usize> UnsafeUnpin for Wavetable<BUFSIZE>
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