pub struct PerformanceKeyboardState {
pub base_midi: i32,
pub octaves: u8,
pub octave_shift: i8,
pub scale_lock: Vec<u8>,
pub held_notes: Vec<i32>,
pub generated_notes: Vec<i32>,
pub sustain: bool,
pub pitch_bend: u16,
pub key_map: PerformanceKeyMap,
}Expand description
Display state for the keyboard surface.
Fields§
§base_midi: i32First displayed MIDI note before octave shift.
octaves: u8Number of octaves to display.
octave_shift: i8Octave shift applied to emitted notes.
scale_lock: Vec<u8>Pitch classes highlighted as in-scale.
held_notes: Vec<i32>Notes currently held by the source.
generated_notes: Vec<i32>Notes generated by downstream players.
sustain: boolSustain toggle state.
pitch_bend: u16Current pitch-bend value in MIDI 14-bit range.
key_map: PerformanceKeyMapPhysical-key mapping for computer-keyboard performance.
Trait Implementations§
Source§impl Clone for PerformanceKeyboardState
impl Clone for PerformanceKeyboardState
Source§fn clone(&self) -> PerformanceKeyboardState
fn clone(&self) -> PerformanceKeyboardState
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 PerformanceKeyboardState
impl Debug for PerformanceKeyboardState
Source§impl Default for PerformanceKeyboardState
impl Default for PerformanceKeyboardState
impl Eq for PerformanceKeyboardState
Source§impl PartialEq for PerformanceKeyboardState
impl PartialEq for PerformanceKeyboardState
impl StructuralPartialEq for PerformanceKeyboardState
Auto Trait Implementations§
impl Freeze for PerformanceKeyboardState
impl RefUnwindSafe for PerformanceKeyboardState
impl Send for PerformanceKeyboardState
impl Sync for PerformanceKeyboardState
impl Unpin for PerformanceKeyboardState
impl UnsafeUnpin for PerformanceKeyboardState
impl UnwindSafe for PerformanceKeyboardState
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.