#[repr(u8)]pub enum Waveform {
Square = 0,
Sine = 1,
Sawtooth = 2,
Noise = 3,
}Expand description
A waveform on the synthesiser. You can change this note by note.
Variants§
Square = 0
A square wave
Sine = 1
A sine wave
Sawtooth = 2
A sawtooth wave
Noise = 3
A white noise (ish)
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