Repository navigation
Import projects saved on Tracker CE firmware (.mtp format 6) - #28
Merged
Merged
Conversation
Tracker CE writes patterns with two more bytes per step, a Volume and a Micro-move value, so its files are 16432 bytes for 16 tracks instead of 12336 and the importer refused them. The layout is now told from the file size, and each step value goes into a free effect lane, which is how the firmware treats them. Values that find no lane are counted and reported as an import warning. Export still writes format 5. Refs #25 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
Owner
Author
|
Tried on hardware on 2026-11-11: a project saved on a Tracker+ running CE 1.0.0 imports with this branch.
Found on the way, and not caused by this branch: in the sandboxed app, choosing |
4 tasks done
JarlLyng
marked this pull request as ready for review
November 11, 2026 21:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Patternaut could not import projects saved on Tracker CE firmware. Closes #25.
CE saves patterns in format 6. Each step there has two more bytes, a Volume and a Micro-move value, so
MTPImportersaw an unknown file size and threw.ProjectBundleReaderthen reports it as an import warning.MTPDocument.data()writes a v6 document back as v5, the only layout the exporter writes, so exported projects still load on stock firmware.The layout comes from CE's
strStepincore/source/mtSequencer.hand the sizes incore/include/patternFileValidation.h.How to test
cd PatternautCore && swift test: 161 tests. The newTrackerCEImportTestsbuilds v6 files the way CE writes them and checks:Not for 1.1.0, which is in review. This goes in the next version.
Checklist
cd PatternautCore && swift test)App/project.ymlor sources changed (core only, not needed)🤖 Generated with Claude Code