pub struct TimedTrack {
pub instrument: Instrument,
/* private fields */
}Fields§
§instrument: InstrumentImplementations§
Source§impl TimedTrack
impl TimedTrack
pub fn new(instrument: Instrument) -> Self
pub fn note_at( self, start_seconds: f64, note: Note, duration_seconds: f64, velocity: Velocity, ) -> Self
pub fn automation_at( self, time_seconds: f64, target: impl Into<String>, value: f32, ) -> Self
pub fn linear_ramp_to_value_at( self, end_seconds: f64, target: impl Into<String>, value: f32, ) -> Self
pub fn value_curve_at( self, start_seconds: f64, target: impl Into<String>, values: impl IntoIterator<Item = f32>, duration_seconds: f64, ) -> Self
pub fn notes(&self) -> &[TimedNoteEvent]
pub fn automation(&self) -> &[TimedAutomationEvent]
Trait Implementations§
Source§impl Clone for TimedTrack
impl Clone for TimedTrack
Source§fn clone(&self) -> TimedTrack
fn clone(&self) -> TimedTrack
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 TimedTrack
impl RefUnwindSafe for TimedTrack
impl Send for TimedTrack
impl Sync for TimedTrack
impl Unpin for TimedTrack
impl UnsafeUnpin for TimedTrack
impl UnwindSafe for TimedTrack
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