pub enum NoteEvent<K: Eq + Hash + Clone, D> {
Add {
key: K,
data: D,
},
Stop {
key: K,
},
Skip,
}Expand description
A note event in a piano roll.
This means either that a note with a certain index and some data is added, or that a note with a certain index is stopped.
See Note for ideas on what the data might represent.
Variants§
Add
Adds a note with a certain index and certain data.
Stop
Stops a note with a certain index.
Fields
§
key: KSkip
Does nothing. This exists so that loops can work properly.
Trait Implementations§
impl<K: Copy + Eq + Hash + Clone, D: Copy> Copy for NoteEvent<K, D>
Auto Trait Implementations§
impl<K, D> Freeze for NoteEvent<K, D>
impl<K, D> RefUnwindSafe for NoteEvent<K, D>where
K: RefUnwindSafe,
D: RefUnwindSafe,
impl<K, D> Send for NoteEvent<K, D>
impl<K, D> Sync for NoteEvent<K, D>
impl<K, D> Unpin for NoteEvent<K, D>
impl<K, D> UnwindSafe for NoteEvent<K, D>where
K: UnwindSafe,
D: UnwindSafe,
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