pub struct MarkersFile {
pub header: [u8; 21],
pub datatype_version: u8,
pub flex_slots: Box<Array<SlotPlayback, 128>>,
pub recorder_slots: Box<Array<SlotPlayback, 8>>,
pub static_slots: Box<Array<SlotPlayback, 128>>,
pub checksum: u16,
}Expand description
The ‘markers’ file. Contains sample editor data for all slots in a project.
Fields§
§header: [u8; 21]§datatype_version: u8version of data file. used in OS upgrades for patching files (and checks performed on files during loading of a project).
§background / context
Got this error on the device when i messed up the default markers file
when i didn’t include the 4 (current value for 1.40B).
>>> 2025-04-24 22:06:00 ERROR Couldn't read from markers file ...
>>> '/test-set-bankcopy/PROJECT-BLANK/markers.work' ('INVALID FILESIZE')Additionally, Banks for projects created with 1.40X have a ‘version’ number of 23, while the LESSSELF/V1 project started with 1.25E has a version of 15.
So yep. These weird numbers are version numbers for the data types / structures / files.
flex_slots: Box<Array<SlotPlayback, 128>>audio editor slots for flex slots
recorder_slots: Box<Array<SlotPlayback, 8>>8x dedicated flex recording tracks
static_slots: Box<Array<SlotPlayback, 128>>audio editor slots for static slots
checksum: u16Trait Implementations§
Source§impl CalculateChecksum for MarkersFile
impl CalculateChecksum for MarkersFile
Source§impl CheckChecksum for MarkersFile
impl CheckChecksum for MarkersFile
Source§impl CheckHeader for MarkersFile
impl CheckHeader for MarkersFile
fn check_header(&self) -> bool
Source§impl CheckIntegrity for MarkersFile
impl CheckIntegrity for MarkersFile
Source§impl Clone for MarkersFile
impl Clone for MarkersFile
Source§fn clone(&self) -> MarkersFile
fn clone(&self) -> MarkersFile
Returns a copy 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 MarkersFile
impl Debug for MarkersFile
Source§impl Decode for MarkersFile
impl Decode for MarkersFile
Source§impl Default for MarkersFile
impl Default for MarkersFile
Source§impl<'de> Deserialize<'de> for MarkersFile
impl<'de> Deserialize<'de> for MarkersFile
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 IsDefault for MarkersFile
impl IsDefault for MarkersFile
fn is_default(&self) -> bool
Source§impl PartialEq for MarkersFile
impl PartialEq for MarkersFile
Source§impl Serialize for MarkersFile
impl Serialize for MarkersFile
Source§impl SwapBytes for MarkersFile
impl SwapBytes for MarkersFile
impl Eq for MarkersFile
impl StructuralPartialEq for MarkersFile
Auto Trait Implementations§
impl Freeze for MarkersFile
impl RefUnwindSafe for MarkersFile
impl Send for MarkersFile
impl Sync for MarkersFile
impl Unpin for MarkersFile
impl UnwindSafe for MarkersFile
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> 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