pub struct ScaleVoiceRangeCmd {
pub part_index: usize,
pub staff_index: usize,
pub voice: usize,
pub start_measure: usize,
pub end_measure: usize,
pub scale: DurationScale,
pub tuplet_policy: TupletScalePolicy,
}Expand description
Scale every note in one voice across an inclusive measure range.
Tuplets preserve their actual-notes:normal-notes ratio, so their written
and performed durations change by the same factor. Underfilled scaled
measures receive explicit trailing rests; overflow rejects the complete
command before any score or history mutation.
Fields§
§part_index: usize§staff_index: usize§voice: usize§start_measure: usize§end_measure: usize§scale: DurationScale§tuplet_policy: TupletScalePolicyTrait Implementations§
Source§impl Clone for ScaleVoiceRangeCmd
impl Clone for ScaleVoiceRangeCmd
Source§impl Debug for ScaleVoiceRangeCmd
impl Debug for ScaleVoiceRangeCmd
Source§impl<'de> Deserialize<'de> for ScaleVoiceRangeCmd
impl<'de> Deserialize<'de> for ScaleVoiceRangeCmd
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScaleVoiceRangeCmd
impl RefUnwindSafe for ScaleVoiceRangeCmd
impl Send for ScaleVoiceRangeCmd
impl Sync for ScaleVoiceRangeCmd
impl Unpin for ScaleVoiceRangeCmd
impl UnsafeUnpin for ScaleVoiceRangeCmd
impl UnwindSafe for ScaleVoiceRangeCmd
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