pub struct OplBankKey {
pub msb: u8,
pub lsb: u8,
pub program: u8,
pub percussion: bool,
}Expand description
An address in an OPL MIDI instrument bank. Programs and drum keys are zero-based.
Fields§
§msb: u8MIDI bank-select MSB (CC0), 0 through 127.
lsb: u8MIDI bank-select LSB (CC32), 0 through 127.
program: u8Melodic program or channel-10 drum key, 0 through 127.
percussion: boolWhether the address belongs to the percussion set.
Trait Implementations§
Source§impl Clone for OplBankKey
impl Clone for OplBankKey
impl Copy for OplBankKey
Source§impl Debug for OplBankKey
impl Debug for OplBankKey
impl Eq for OplBankKey
Source§impl Ord for OplBankKey
impl Ord for OplBankKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OplBankKey
impl PartialEq for OplBankKey
Source§impl PartialOrd for OplBankKey
impl PartialOrd for OplBankKey
impl StructuralPartialEq for OplBankKey
Auto Trait Implementations§
impl Forget for OplBankKey
impl Freeze for OplBankKey
impl RefUnwindSafe for OplBankKey
impl Send for OplBankKey
impl Sync for OplBankKey
impl Unpin for OplBankKey
impl UnsafeUnpin for OplBankKey
impl UnwindSafe for OplBankKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more