#[repr(u8)] #[derive(Debug, Clone, Copy, PartialEq, Eq)] /// An enum that is used to specify what kind of MIDI messages should /// be ignored when receiving messages. pubenum Ignore {
None = 0x00,
Sysex = 0x01,
Time = 0x02,
SysexAndTime = 0x03,
ActiveSense = 0x04,
SysexAndActiveSense = 0x05,
TimeAndActiveSense = 0x06,
All = 0x07
}
impl std::ops::BitOr for Ignore { type Output = Ignore; #[inline(always)] fn bitor(self, rhs: Self) -> Self::Output { // this is safe because all combinations also exist as variants unsafe { std::mem::transmute(selfas u8 | rhs as u8) }
}
}
/// A MIDI structure used internally by some backends to store incoming /// messages. Each message represents one and only one MIDI message. /// The timestamp is represented as the elapsed microseconds since /// a point in time that is arbitrary, but does not change for the /// lifetime of a given MidiInputConnection. #[derive(Debug, Clone)] struct MidiMessage {
bytes: Vec<u8>,
timestamp: u64
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.