pub struct NoteSlice {
pub at: Time,
pub until: Time,
pub notes: Vec<SlicedNote>,
}Expand description
Exact half-open piano-roll window with every sounding note occurrence.
The notes vector deliberately preserves duplicate pitches and unisons for
later consonance, orchestration, and voice-aware analysis.
Fields§
§at: TimeInclusive start of the window.
until: TimeExclusive end of the window.
notes: Vec<SlicedNote>Notes sounding throughout [at, until), in stable occurrence order.
Trait Implementations§
impl Eq for NoteSlice
impl StructuralPartialEq for NoteSlice
Auto Trait Implementations§
impl Freeze for NoteSlice
impl RefUnwindSafe for NoteSlice
impl Send for NoteSlice
impl Sync for NoteSlice
impl Unpin for NoteSlice
impl UnsafeUnpin for NoteSlice
impl UnwindSafe for NoteSlice
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