pub struct Oscillator { /* private fields */ }Implementations§
Source§impl Oscillator
impl Oscillator
pub fn new() -> Self
Sourcepub fn set_tuning(&mut self, frequencies: [f32; 128])
pub fn set_tuning(&mut self, frequencies: [f32; 128])
Load a tuning table into this oscillator. After loading, param 3 (midi_note) drives the frequency.
pub fn clear_tuning(&mut self)
Trait Implementations§
Source§impl Default for Oscillator
impl Default for Oscillator
Source§impl DspNode for Oscillator
impl DspNode for Oscillator
Source§fn process(
&mut self,
_inputs: &[Option<&[f32; 64]>; 8],
output: &mut [f32; 64],
params: &mut ParamBlock,
sample_rate: f32,
)
fn process( &mut self, _inputs: &[Option<&[f32; 64]>; 8], output: &mut [f32; 64], params: &mut ParamBlock, sample_rate: f32, )
Process one buffer of audio. Read more
Source§fn capture_state(&self) -> StateBlob
fn capture_state(&self) -> StateBlob
Capture internal state for continuity transfer. Read more
Source§fn restore_state(&mut self, state: StateBlob)
fn restore_state(&mut self, state: StateBlob)
Restore internal state after a graph mutation. Read more
Auto Trait Implementations§
impl Freeze for Oscillator
impl RefUnwindSafe for Oscillator
impl Send for Oscillator
impl Sync for Oscillator
impl Unpin for Oscillator
impl UnsafeUnpin for Oscillator
impl UnwindSafe for Oscillator
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more