pub struct WaveTableOscillator { /* private fields */ }
Implementations§
source§impl WaveTableOscillator
impl WaveTableOscillator
pub fn from_oscillator(oscillator: Oscillator<f32>, table_len: usize) -> Self
pub fn new(table: Vec<f32>) -> Self
pub fn frequency(&self) -> f32
pub fn sample_rate(&self) -> f32
pub fn table(&self) -> &[f32]
pub fn table_mut(&mut self) -> &mut [f32]
pub fn set_sample_rate(&mut self, value: f32)
pub fn set_frequency(&mut self, value: f32)
pub fn tick(&mut self)
pub fn tick_n(&mut self, samples: f32)
pub fn get(&self) -> f32
pub fn next_sample(&mut self) -> f32
Auto Trait Implementations§
impl RefUnwindSafe for WaveTableOscillator
impl Send for WaveTableOscillator
impl Sync for WaveTableOscillator
impl Unpin for WaveTableOscillator
impl UnwindSafe for WaveTableOscillator
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