pub struct PerformanceKeyMap {
pub name: String,
pub editable: bool,
pub entries: Vec<PerformanceKeyMapEntry>,
pub velocity: u8,
pub transpose: i8,
pub scale_lock: bool,
}Expand description
Serializable physical-key mapping for browser performance input.
Fields§
§name: StringStable map name.
editable: boolWhether the browser editor may rewrite and persist this map.
entries: Vec<PerformanceKeyMapEntry>Physical keys and their performance actions.
velocity: u8Current key velocity used by note entries.
transpose: i8Current transpose, in semitones.
scale_lock: boolWhether degree entries should be scale-locked by the browser.
Implementations§
Source§impl PerformanceKeyMap
impl PerformanceKeyMap
Sourcepub fn qwerty_two_row() -> Self
pub fn qwerty_two_row() -> Self
Default two-row chromatic map with controls for live performance.
Trait Implementations§
Source§impl Clone for PerformanceKeyMap
impl Clone for PerformanceKeyMap
Source§fn clone(&self) -> PerformanceKeyMap
fn clone(&self) -> PerformanceKeyMap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PerformanceKeyMap
impl Debug for PerformanceKeyMap
Source§impl Default for PerformanceKeyMap
impl Default for PerformanceKeyMap
impl Eq for PerformanceKeyMap
Source§impl PartialEq for PerformanceKeyMap
impl PartialEq for PerformanceKeyMap
impl StructuralPartialEq for PerformanceKeyMap
Auto Trait Implementations§
impl Freeze for PerformanceKeyMap
impl RefUnwindSafe for PerformanceKeyMap
impl Send for PerformanceKeyMap
impl Sync for PerformanceKeyMap
impl Unpin for PerformanceKeyMap
impl UnsafeUnpin for PerformanceKeyMap
impl UnwindSafe for PerformanceKeyMap
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.