pub struct PatternScaleSettings {
pub master_len_per_track_multiplier: u8,
pub master_len_per_track: u8,
pub master_scale_per_track: u8,
pub master_len: u8,
pub master_scale: u8,
pub scale_mode: u8,
}Expand description
Pattern level scaling settings. Some of these settings still apply when the pattern is in Per-Track scaling mode.
Fields§
§master_len_per_track_multiplier: u8Multiply this value by master_len_per_track to get
the real Master Length in Per Track Pattern mode.
This field must be set to 255 when Master Length in
Per Track Pattern mode is set to INF.
0: From 2 steps to 255 steps.
1: From 256 steps to 511 steps.
2: From 512 steps to 767 steps.
3: From 768 steps to 1023 steps.
4: 1024 steps only.
255: `INF`.master_len_per_track: u8Master Length in Per Track Pattern mode.
Must multiply this by multiplier like this (x + 1) * (mult + 1) to get the real number.
This field must be set to 255 when Master Length in
Per Track Pattern mode is set to INF.
Minimum value is 2 when the multiplier equals 0.
master_scale_per_track: u8The Audio Track’s Scale when Pattern is in Per Track mode.
Options
0 -> 2x
1 -> 3/2x
2 -> 1x (Default)
3 -> 3/4x
4 -> 1/2x
5 -> 1/4x
6 -> 1/8xmaster_len: u8Master Pattern Length. Determines Pattern Length for all Tracks when NOT in Per Track mode.
master_scale: u8Master Pattern playback multiplier.
Options
0 -> 2x
1 -> 3/2x
2 -> 1x (Default)
3 -> 3/4x
4 -> 1/2x
5 -> 1/4x
6 -> 1/8xscale_mode: u8Scale mode for the Pattern.
Options
NORMAL: 0 (Default)
PER TRACK: 1Trait Implementations§
Source§impl Clone for PatternScaleSettings
impl Clone for PatternScaleSettings
Source§fn clone(&self) -> PatternScaleSettings
fn clone(&self) -> PatternScaleSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PatternScaleSettings
impl Debug for PatternScaleSettings
Source§impl Default for PatternScaleSettings
impl Default for PatternScaleSettings
Source§impl<'de> Deserialize<'de> for PatternScaleSettings
impl<'de> Deserialize<'de> for PatternScaleSettings
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>,
Source§impl PartialEq for PatternScaleSettings
impl PartialEq for PatternScaleSettings
Source§impl Serialize for PatternScaleSettings
impl Serialize for PatternScaleSettings
impl StructuralPartialEq for PatternScaleSettings
Auto Trait Implementations§
impl Freeze for PatternScaleSettings
impl RefUnwindSafe for PatternScaleSettings
impl Send for PatternScaleSettings
impl Sync for PatternScaleSettings
impl Unpin for PatternScaleSettings
impl UnwindSafe for PatternScaleSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more