pub struct AudioTrackTrigs {
pub header: [u8; 4],
pub unknown_1: [u8; 4],
pub track_id: u8,
pub trig_masks: AudioTrackTrigMasks,
pub scale_per_track_mode: TrackPerTrackModeScale,
pub swing_amount: u8,
pub pattern_settings: TrackPatternSettings,
pub unknown_2: u8,
pub plocks: Trigs<AudioTrackParameterLocks>,
pub unknown_3: Trigs<u8>,
pub trig_offsets_repeats_conditions: Trigs<TrigRepeatsConditionsAndOffsets>,
}Expand description
Track trigs assigned on an Audio Track within a Pattern
No Copy trait on this type as the plocks field is the AudioTrackParameterLocks type,
which does not implement Copy
Fields§
§header: [u8; 4]Header data section
example data:
TRAC
54 52 41 43unknown_1: [u8; 4]Unknown data.
track_id: u8The zero indexed track number
trig_masks: AudioTrackTrigMasksTrig masks contain the Trig step locations for different trig types
scale_per_track_mode: TrackPerTrackModeScaleThe scale of this Audio Track in Per Track Pattern mode.
swing_amount: u8Amount of swing when a Swing Trig is active for the Track.
Maximum is 30 (80 on device), minimum is 0 (50 on device).
pattern_settings: TrackPatternSettingsPattern settings for this Audio Track
unknown_2: u8Unknown data.
plocks: Trigs<AudioTrackParameterLocks>Parameter-Lock data for all Trigs.
unknown_3: Trigs<u8>What the hell is this field?!?! It has to be something to do with trigs, but i have no idea what it could be.
trig_offsets_repeats_conditions: Trigs<TrigRepeatsConditionsAndOffsets>Trig Offsets, Trig Counts and Trig Conditions.
See the documentation for TrigRepeatsConditionsAndOffsets for a detailed explainer on
how this field works before attempting to use it!
Implementations§
Source§impl AudioTrackTrigs
impl AudioTrackTrigs
pub fn track_id(&self) -> Option<TrackId>
pub fn trigs(self) -> AudioTrackTrigMasks
pub fn trigs_ref(&self) -> &AudioTrackTrigMasks
pub fn trigs_mut(&mut self) -> &mut AudioTrackTrigMasks
pub fn swing_amount(&self) -> u8
pub fn trig_conditions(&self) -> Trigs<TrigCondition>
Trait Implementations§
Source§impl AsMut<AudioTrackTrigs> for AudioTrackTrigs
impl AsMut<AudioTrackTrigs> for AudioTrackTrigs
Source§fn as_mut(&mut self) -> &mut AudioTrackTrigs
fn as_mut(&mut self) -> &mut AudioTrackTrigs
Source§impl AsRef<AudioTrackTrigs> for AudioTrackTrigs
impl AsRef<AudioTrackTrigs> for AudioTrackTrigs
Source§fn as_ref(&self) -> &AudioTrackTrigs
fn as_ref(&self) -> &AudioTrackTrigs
Source§impl Clone for AudioTrackTrigs
impl Clone for AudioTrackTrigs
Source§fn clone(&self) -> AudioTrackTrigs
fn clone(&self) -> AudioTrackTrigs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AudioTrackTrigs
impl Debug for AudioTrackTrigs
Source§impl Default for AudioTrackTrigs
impl Default for AudioTrackTrigs
Source§impl<const N: usize> Defaults<Box<[AudioTrackTrigs; N]>> for AudioTrackTrigs
impl<const N: usize> Defaults<Box<[AudioTrackTrigs; N]>> for AudioTrackTrigs
Source§impl<const N: usize> Defaults<[AudioTrackTrigs; N]> for AudioTrackTrigs
impl<const N: usize> Defaults<[AudioTrackTrigs; N]> for AudioTrackTrigs
Source§impl<'de> Deserialize<'de> for AudioTrackTrigs
impl<'de> Deserialize<'de> for AudioTrackTrigs
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>,
impl Eq for AudioTrackTrigs
Source§impl HasHeaderField for AudioTrackTrigs
impl HasHeaderField for AudioTrackTrigs
Source§fn check_header(&self) -> Result<bool, OtToolsIoError>
fn check_header(&self) -> Result<bool, OtToolsIoError>
Source§impl Hash for AudioTrackTrigs
impl Hash for AudioTrackTrigs
Source§impl Ord for AudioTrackTrigs
impl Ord for AudioTrackTrigs
Source§fn cmp(&self, other: &AudioTrackTrigs) -> Ordering
fn cmp(&self, other: &AudioTrackTrigs) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AudioTrackTrigs
impl PartialEq for AudioTrackTrigs
Source§impl PartialOrd for AudioTrackTrigs
impl PartialOrd for AudioTrackTrigs
Source§impl Serialize for AudioTrackTrigs
impl Serialize for AudioTrackTrigs
impl StructuralPartialEq for AudioTrackTrigs
Auto Trait Implementations§
impl Freeze for AudioTrackTrigs
impl RefUnwindSafe for AudioTrackTrigs
impl Send for AudioTrackTrigs
impl Sync for AudioTrackTrigs
impl Unpin for AudioTrackTrigs
impl UnsafeUnpin for AudioTrackTrigs
impl UnwindSafe for AudioTrackTrigs
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<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
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>
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