pub enum Waveform {
Sine,
Square,
Sawtooth,
Triangle,
Pulse,
Noise,
}Expand description
Standard waveform shapes for oscillators and LFOs.
Variants§
Sine
Pure tone with no harmonics.
Square
Rich in odd harmonics, bright and buzzy.
Sawtooth
Contains all harmonics, bright and cutting.
Triangle
Soft, flute-like tone with odd harmonics.
Pulse
Variable duty cycle square wave.
Noise
Random values for each sample.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Waveform
impl RefUnwindSafe for Waveform
impl Send for Waveform
impl Sync for Waveform
impl Unpin for Waveform
impl UnwindSafe for Waveform
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