pub struct RenderedPhrase {
pub samples: Vec<f64>,
pub sample_rate: f64,
pub note_onsets: Vec<usize>,
pub spans: Vec<NoteSpan>,
}Expand description
A rendered phrase: mono samples normalized from quiver’s ±5 V audio level to nominal ±1.0.
Fields§
§samples: Vec<f64>Mono samples (left/right average), nominal ±1.0 full scale.
sample_rate: f64Sample rate in Hz.
note_onsets: Vec<usize>Sample index where each note’s gate opens (for attack-time features).
spans: Vec<NoteSpan>Gate spans and roles of each note, in phrase order.
Implementations§
Source§impl RenderedPhrase
impl RenderedPhrase
Sourcepub fn to_audition(&self) -> Audition
pub fn to_audition(&self) -> Audition
The playback-ready view of this render.
Trait Implementations§
Source§impl Clone for RenderedPhrase
impl Clone for RenderedPhrase
Source§fn clone(&self) -> RenderedPhrase
fn clone(&self) -> RenderedPhrase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RenderedPhrase
impl RefUnwindSafe for RenderedPhrase
impl Send for RenderedPhrase
impl Sync for RenderedPhrase
impl Unpin for RenderedPhrase
impl UnsafeUnpin for RenderedPhrase
impl UnwindSafe for RenderedPhrase
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