pub struct KeyTable {
pub instrument: Level,
/* private fields */
}Expand description
The whole keyboard map: the instrument’s record and one per MIDI note.
Fields§
§instrument: LevelScales and detunes the whole map.
Implementations§
Source§impl KeyTable
impl KeyTable
Sourcepub const NEUTRAL: KeyTable
pub const NEUTRAL: KeyTable
Every record neutral — what the editor writes for an untouched map.
Sourcepub fn write(&self, map: &mut [u8]) -> Result<(), ParseError>
pub fn write(&self, map: &mut [u8]) -> Result<(), ParseError>
Writes the map ahead of the zone count, leaving the zone table alone.
Sourcepub fn prefix(&self) -> [u8; 785]
pub fn prefix(&self) -> [u8; 785]
The bytes ahead of the zone count, ready to head a new map payload.
Trait Implementations§
impl Eq for KeyTable
impl StructuralPartialEq for KeyTable
Auto Trait Implementations§
impl Freeze for KeyTable
impl RefUnwindSafe for KeyTable
impl Send for KeyTable
impl Sync for KeyTable
impl Unpin for KeyTable
impl UnsafeUnpin for KeyTable
impl UnwindSafe for KeyTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.