pub enum MidiError {
}Expand description
Errors produced when constructing or converting core MIDI values.
Variants§
ZeroTpq
A ticks-per-quarter resolution was zero.
InvalidU7(u16)
A value exceeded the 7-bit (U7) range.
InvalidU14(u16)
A value exceeded the 14-bit (U14) range.
InvalidChannel(u8)
A value exceeded the valid Channel range.
InvalidRatio(i64, i64)
A scaling ratio had a zero numerator or denominator.
TruncatedChannel
A channel-message decode ran out of data bytes.
NotChannelStatus(u8)
A status byte’s high nibble is not a channel-voice message.
InexactRebase
A TickTime::rebase could not be performed
exactly.
ZeroTempo
A tempo meta event carried the forbidden zero microseconds-per-quarter value.
NegativeTempoTick
An event or conversion used a negative tick, which is outside an SMF tempo timeline.
TempoEventsOutOfOrder
Tempo-map source events were not ordered by exact tick time.
MetricalTempoRequired
A tempo map was requested for a non-metrical time division.
InexactTempoTick
An exact beat or wall-time position does not land on an integer MIDI tick at the map’s resolution.
TempoOverflow
A tempo conversion exceeded its integer representation.
TempoChart(String)
The shared stream-clock chart rejected tempo arithmetic.
Trait Implementations§
impl Eq for MidiError
Source§impl Error for MidiError
impl Error for MidiError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()