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

Sine wave 0

Sawtooth

Sawtooth (ramp-down) wave 1

Square

Square wave 2

Random

White noise 3

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.