midi_io/midi/
value_error.rs1#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]
3#[non_exhaustive]
4pub enum ValueError {
5 #[error("{0} is not a 7-bit MIDI data value (0..=127)")]
6 DataByte(u8),
7 #[error("{0} is not a MIDI channel index (0..=15)")]
8 ChannelIndex(u8),
9 #[error("{0} is not a MIDI channel number (1..=16)")]
10 ChannelNumber(u8),
11 #[error("{0} is out of MIDI pitch-bend range")]
12 PitchBend(i32),
13 #[error("{0} is not a 14-bit MIDI song-position value (0..=16383)")]
14 SongPosition(u16),
15}