pub struct Keyboard {
pub mode: VoiceMode,
/* private fields */
}Expand description
Four most recently held roots, in priority order, with their strike velocities.
Fields§
§mode: VoiceModeCurrent voice allocation mode.
Implementations§
Source§impl Keyboard
impl Keyboard
Sourcepub fn press(&mut self, note: Note)
pub fn press(&mut self, note: Note)
Remember a playable nonzero-velocity strike, moving restrikes to the front.
Sourcepub fn release(&mut self, note: u8) -> bool
pub fn release(&mut self, note: u8) -> bool
Forget a root. Returns true if removing it changes the active chord or unison root.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Keyboard
impl Freeze for Keyboard
impl Move for Keyboard
impl RefUnwindSafe for Keyboard
impl Send for Keyboard
impl Sync for Keyboard
impl Unpin for Keyboard
impl UnsafeUnpin for Keyboard
impl UnwindSafe for Keyboard
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