pub struct Timeline {
pub parts: Vec<Part>,
pub context_changes: Vec<ContextChange>,
}Expand description
A collection of musical parts that play simultaneously.
Represents the complete musical content at a given level, whether for a full score or a movement within a larger work.
Fields§
§parts: Vec<Part>§context_changes: Vec<ContextChange>Implementations§
Source§impl Timeline
impl Timeline
pub fn add_part(&mut self, part: Part)
pub fn with_part(self, part: Part) -> Self
pub fn add_parts(&mut self, parts: Vec<Part>)
pub fn with_parts(self, parts: Vec<Part>) -> Self
pub fn add_context_change(&mut self, change: ContextChange)
pub fn with_context_change(self, change: ContextChange) -> Self
pub fn total_duration(&self) -> Fraction
Trait Implementations§
impl StructuralPartialEq for Timeline
Auto Trait Implementations§
impl Freeze for Timeline
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnsafeUnpin for Timeline
impl UnwindSafe for Timeline
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