Enum nodi::Event[][src]

pub enum Event {
    Tempo(u32),
    TimeSignature(u8u8u8u8),
    KeySignature(i8bool),
    Midi(MidiEvent),
}
Expand description

Represents a single MIDI event.

Variants

Tempo(u32)

Represents a tempo change message. The wrapped u32 represents microseconds per beat.

Tuple Fields of Tempo

0: u32
TimeSignature(u8u8u8u8)

In order of the MIDI specification, numerator, denominator, MIDI clocks per click, 32nd notes per quarter.

Tuple Fields of TimeSignature

0: u81: u82: u83: u8
KeySignature(i8bool)

As in the MIDI specification, negative numbers indicate number of flats and positive numbers indicate number of sharps. false indicates a major scale, true indicates a minor scale.

Tuple Fields of KeySignature

0: i81: bool
Midi(MidiEvent)

Represents a MIDI event.

Tuple Fields of Midi

0: MidiEvent

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 !=.

Tries to create Self from a TrackEventKind.

Errors

Will return an error if the given TrackEventKind is not compatible.

The type returned in the event of a conversion error.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.