pub struct TrackPerTrackModeScale {
pub per_track_len: u8,
pub per_track_scale: u8,
}Expand description
Audio Track custom scaling when the Pattern is in PER TRACK scale mode.
Fields§
§per_track_len: u8The Audio Track’s Length when Pattern is in Per Track mode. Default: 16
per_track_scale: 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/8xTrait Implementations§
Source§impl Clone for TrackPerTrackModeScale
impl Clone for TrackPerTrackModeScale
Source§fn clone(&self) -> TrackPerTrackModeScale
fn clone(&self) -> TrackPerTrackModeScale
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 moreSource§impl Debug for TrackPerTrackModeScale
impl Debug for TrackPerTrackModeScale
Source§impl Default for TrackPerTrackModeScale
impl Default for TrackPerTrackModeScale
Source§impl<'de> Deserialize<'de> for TrackPerTrackModeScale
impl<'de> Deserialize<'de> for TrackPerTrackModeScale
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
Source§impl PartialEq for TrackPerTrackModeScale
impl PartialEq for TrackPerTrackModeScale
Source§impl Serialize for TrackPerTrackModeScale
impl Serialize for TrackPerTrackModeScale
impl Copy for TrackPerTrackModeScale
impl StructuralPartialEq for TrackPerTrackModeScale
Auto Trait Implementations§
impl Freeze for TrackPerTrackModeScale
impl RefUnwindSafe for TrackPerTrackModeScale
impl Send for TrackPerTrackModeScale
impl Sync for TrackPerTrackModeScale
impl Unpin for TrackPerTrackModeScale
impl UnwindSafe for TrackPerTrackModeScale
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
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>
Converts
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>
Converts
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