pub struct Note {
pub velocity: u8,
pub start: u64,
pub length: u64,
pub pitch: Pitch,
pub instrument: usize,
pub volume: u8,
pub gate: u8,
}Expand description
A note with its position and length in ticks and the channel settings it was played with.
Fields§
§velocity: u8Attack velocity, 0..=127. Existing note calls and unsuffixed text use 127.
start: u64§length: u64§pitch: Pitch§instrument: usizeIndex into Score::instruments.
volume: u8Channel volume, 0 through 15.
gate: u8Fraction of the length in eighths, 1 through 8, before the release starts.
Trait Implementations§
impl Copy for Note
impl Eq 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