Enum ittech::Waveform[][src]

pub enum Waveform {
    Sine,
    Sawtooth,
    Square,
    Random,
}

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

impl Clone for Waveform[src]

impl Copy for Waveform[src]

impl Debug for Waveform[src]

impl PartialEq<Waveform> for Waveform[src]

impl StructuralPartialEq for Waveform[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.