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 AsMut<TrackPerTrackModeScale> for TrackPerTrackModeScale
impl AsMut<TrackPerTrackModeScale> for TrackPerTrackModeScale
Source§fn as_mut(&mut self) -> &mut TrackPerTrackModeScale
fn as_mut(&mut self) -> &mut TrackPerTrackModeScale
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<TrackPerTrackModeScale> for TrackPerTrackModeScale
impl AsRef<TrackPerTrackModeScale> for TrackPerTrackModeScale
Source§fn as_ref(&self) -> &TrackPerTrackModeScale
fn as_ref(&self) -> &TrackPerTrackModeScale
Converts this type into a shared reference of the (usually inferred) input type.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrackPerTrackModeScale
Source§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
impl Eq for TrackPerTrackModeScale
Source§impl Hash for TrackPerTrackModeScale
impl Hash for TrackPerTrackModeScale
Source§impl Ord for TrackPerTrackModeScale
impl Ord for TrackPerTrackModeScale
Source§fn cmp(&self, other: &TrackPerTrackModeScale) -> Ordering
fn cmp(&self, other: &TrackPerTrackModeScale) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TrackPerTrackModeScale
impl PartialEq for TrackPerTrackModeScale
Source§impl PartialOrd for TrackPerTrackModeScale
impl PartialOrd for TrackPerTrackModeScale
Source§impl Serialize for TrackPerTrackModeScale
impl Serialize 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 UnsafeUnpin 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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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