pub enum Waveform {
Sine,
Sawtooth,
Square,
Random,
}Expand description
Oscillator waveforms for commands S3x, S4x and S5x
IT retriggers the waveforms for each note - they start playing from their starting point when a new note is played.
Every oscillator waveform is 64 points long, and the speed parameter denotes by how many points per tick the play position is advanced. So at a vibrato speed of 2, the vibrato waveform repeats after 32 ticks.
§Canonicalization
The valid values for waveforms are 0..=3, all out-of-range values are parsed as 3.
Variants§
Trait Implementations§
impl Copy for Waveform
impl StructuralPartialEq for Waveform
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