Enum ittech::Waveform [−][src]
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
Sine wave 0
Sawtooth (ramp-down) wave 1
Square wave 2
White noise 3
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Waveform
impl UnwindSafe for Waveform
Blanket Implementations
Mutably borrows from an owned value. Read more