pub struct Arranger {
pub placements: Vec<ArrangerPlacement>,
pub lanes: Vec<LaneId>,
}Expand description
Arrangement of playable material laid out across lanes on a timeline.
Holds the ordered set of ArrangerPlacements plus the lane ids the arrangement declares, and renders them into play events.
Fields§
§placements: Vec<ArrangerPlacement>Placements that make up the arrangement, in declaration order.
lanes: Vec<LaneId>Lane ids the arrangement declares.
Implementations§
Source§impl Arranger
impl Arranger
Sourcepub fn render_arrangement(&self, cx: &PlayContext) -> Result<ArrangerRender>
pub fn render_arrangement(&self, cx: &PlayContext) -> Result<ArrangerRender>
Renders the arrangement into clipped, stable-ordered play events.
Applies each placement’s stretch, transforms, pitch remap, and filter, clips events to the context range, and appends diagnostics and traces.
Sourcepub fn rendered_notes(&self) -> Vec<TimedNote>
pub fn rendered_notes(&self) -> Vec<TimedNote>
Renders the arrangement and returns only its timed notes.
Sourcepub fn diagnostics(&self) -> Vec<ArrangerDiagnostic>
pub fn diagnostics(&self) -> Vec<ArrangerDiagnostic>
Renders the arrangement and returns only the diagnostics it raises.
Trait Implementations§
impl Eq for Arranger
Auto Trait Implementations§
impl !RefUnwindSafe for Arranger
impl !UnwindSafe for Arranger
impl Freeze for Arranger
impl Send for Arranger
impl Sync for Arranger
impl Unpin for Arranger
impl UnsafeUnpin for Arranger
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