pub struct PlayNote {
pub note: u8,
pub velocity: u8,
}
Expand description
Play a note with a velocity.
Fields§
§note: u8
Note represented as u8, with note % 12 == 0
representing ‘C’.
velocity: u8
The strength of attack of the note.
Trait Implementations§
impl Copy for PlayNote
impl Eq for PlayNote
impl StructuralPartialEq for PlayNote
Auto Trait Implementations§
impl Freeze for PlayNote
impl RefUnwindSafe for PlayNote
impl Send for PlayNote
impl Sync for PlayNote
impl Unpin for PlayNote
impl UnwindSafe for PlayNote
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