pub struct NoteSpan {
pub voct: f64,
pub chord: usize,
pub on_start: usize,
pub on_end: usize,
}Expand description
Where one phrase note sits in the rendered buffer, and what it was — the
role information segment-local features key on (crate::audio finds the
held note, the highest note and the chord note by property, never by
position, so custom test phrases degrade gracefully).
Fields§
§voct: f64Pitch of the note’s primary voice, V/Oct from C4.
chord: usizeNumber of additional chord voices gate-synced with this note.
on_start: usizeSample index where the gate opened.
on_end: usizeSample index where the gate closed (exclusive end of the on-span).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NoteSpan
impl RefUnwindSafe for NoteSpan
impl Send for NoteSpan
impl Sync for NoteSpan
impl Unpin for NoteSpan
impl UnsafeUnpin for NoteSpan
impl UnwindSafe for NoteSpan
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