pub struct FrameNote {
pub on: u64,
pub off: u64,
pub pitch: Pitch,
pub instrument: usize,
pub volume: u8,
pub velocity: u8,
}Expand description
One note’s absolute onset and exclusive gate-off, in source output frames.
A tie across a section/tempo change is one note with a later off, not a
retrigger. Sorted equal-onset notes follow input order within each track.
Fields§
§on: u64§off: u64§pitch: Pitch§instrument: usize§volume: u80..=15 channel volume, independent of the instrument’s own volume.
velocity: u80..=127 velocity, linear in amplitude.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameNote
impl RefUnwindSafe for FrameNote
impl Send for FrameNote
impl Sync for FrameNote
impl Unpin for FrameNote
impl UnsafeUnpin for FrameNote
impl UnwindSafe for FrameNote
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