Enum nodi::Event [−][src]
pub enum Event {
Tempo(u32),
TimeSignature(u8, u8, u8, u8),
KeySignature(i8, bool),
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
In order of the MIDI specification, numerator, denominator, MIDI clocks per click, 32nd notes per quarter.
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.
Midi(MidiEvent)
Represents a MIDI event.
Tuple Fields of Midi
0: MidiEvent
Trait Implementations
Tries to create Self from a TrackEventKind.
Errors
Will return an error if the given TrackEventKind is not compatible.
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more