MidiEvent

Trait MidiEvent 

Source
pub trait MidiEvent {
    // Required method
    fn tempo(&self) -> Option<u32>;
}
Expand description

Implement this trait to use ConvertTicksToMicroseconds and ConvertMicroSecondsToTicks for this type of midi event.

Required Methods§

Source

fn tempo(&self) -> Option<u32>

If &self is a meta-event indicating a tempo change, return Some(t), where t is the number of microseconds per beat. Return None otherwise.

Implementors§

Source§

impl<'a> MidiEvent for TrackEventKind<'a>

Available on crate feature convert-time only.