pub struct NoteBuilder { /* private fields */ }Expand description
Builder for Note.
Implementations§
Source§impl NoteBuilder
impl NoteBuilder
Sourcepub fn base_start_tick(&mut self, value: u32) -> &mut Self
pub fn base_start_tick(&mut self, value: u32) -> &mut Self
The base start tick position of the note (before any trimmer adjustments).
Sourcepub fn pitch(&mut self, value: Pitch) -> &mut Self
pub fn pitch(&mut self, value: Pitch) -> &mut Self
The pitch of the note (musical note, octave, and accidental).
Sourcepub fn duration(&mut self, value: Duration) -> &mut Self
pub fn duration(&mut self, value: Duration) -> &mut Self
The duration of the note (note length).
Sourcepub fn tie(&mut self, value: bool) -> &mut Self
pub fn tie(&mut self, value: bool) -> &mut Self
Whether this note is tied to the next note (tie start).
Sourcepub fn tied(&mut self, value: bool) -> &mut Self
pub fn tied(&mut self, value: bool) -> &mut Self
Whether this note is tied from the previous note (tie end).
Sourcepub fn base_velocity(&mut self, value: Velocity) -> &mut Self
pub fn base_velocity(&mut self, value: Velocity) -> &mut Self
The base velocity of the note (before any trimmer adjustments).
Sourcepub fn start_tick_trimmer(&mut self, value: Trimmer) -> &mut Self
pub fn start_tick_trimmer(&mut self, value: Trimmer) -> &mut Self
Trimmer for adjusting the start tick position.
Sourcepub fn duration_trimmer(&mut self, value: RateTrimmer) -> &mut Self
pub fn duration_trimmer(&mut self, value: RateTrimmer) -> &mut Self
Trimmer for adjusting the duration as a rate multiplier.
Sourcepub fn velocity_trimmer(&mut self, value: Trimmer) -> &mut Self
pub fn velocity_trimmer(&mut self, value: Trimmer) -> &mut Self
Trimmer for adjusting the velocity.
Trait Implementations§
Source§impl Clone for NoteBuilder
impl Clone for NoteBuilder
Source§fn clone(&self) -> NoteBuilder
fn clone(&self) -> NoteBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 NoteBuilder
impl RefUnwindSafe for NoteBuilder
impl Send for NoteBuilder
impl Sync for NoteBuilder
impl Unpin for NoteBuilder
impl UnwindSafe for NoteBuilder
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