pub struct Clip {
pub number: usize,
pub width: u16,
pub has_content: bool,
pub start_tick: i64,
pub length_ticks: i64,
pub notes: Vec<NoteSnapshot>,
pub hidden_notes: Vec<(i64, i64, u8, u8)>,
}Fields§
§number: usize§width: u16§has_content: bool§start_tick: i64Start position on the timeline (ticks).
length_ticks: i64Length in ticks.
notes: Vec<NoteSnapshot>Notes for piano roll display (from ClipSnapshot).
Notes hidden by shrinking the clip. Stored with start_frac and duration_frac as absolute tick ratios (tick / original_length_when_hidden) converted to tick offsets for stable restore. Format: (tick_offset_from_clip_start, duration_ticks, note, velocity)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clip
impl RefUnwindSafe for Clip
impl Send for Clip
impl Sync for Clip
impl Unpin for Clip
impl UnsafeUnpin for Clip
impl UnwindSafe for Clip
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