pub trait Grouped<B: Ump> {
// Required methods
fn group(&self) -> u4;
fn set_group(&mut self, group: u4)
where B: BufferMut;
}
Expand description
Read and write the MIDI 2.0 group field of a wrapped MIDI message.
use midi2::{ux::u4, Grouped, Data, channel_voice2::NoteOn};
let mut message = NoteOn::<[u32; 4]>::new();
message.set_group(u4::new(0xA));
assert_eq!(message.group(), u4::new(0xA));
assert_eq!(message.data(), &[0x4A90_0000, 0x0000_0000]);