pub struct Note {
pub voice: u8,
pub start: f32,
pub end: f32,
pub pitch: f32,
}Expand description
A note on a piano roll, for Graph::Voices. Times and pitch 0..1.
Fields§
§voice: u8The voice that plays the note, from 0.
start: f32When the note starts.
end: f32When the note ends.
pitch: f32How high the note is.
Trait Implementations§
impl Copy for Note
impl StructuralPartialEq for Note
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnsafeUnpin for Note
impl UnwindSafe for Note
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