Repository navigation
pt_api v1.6.2 — Chronological audio timeline fix
Chronological audio timeline fix
Fixes generated Pro Tools timelines appearing incomplete when source files are supplied in a non-chronological order.
Fixes
build_audio_session()now writes each playlist's audio events in stable chronological order by sample position, independently of filenames and caller-defined catalog order.- Manifest order, media catalogs, clip IDs, timestamps and durations remain unchanged. WAV files are copied without altering their audio or metadata.
- Overlapping clips retain their relative caller-defined priority. A conflicting input is rejected before mutation rather than silently changing the audible result.
- Output validation checks the physical event ID/timestamp sequence, catching disorder that the timeline reader's sorted results previously concealed.
Validation
- 664 regression tests pass locally with the private reference corpus, including nine new event-order tests.
- The complete 131-clip case was rebuilt through the corrected API and validated by the maintainer in Pro Tools. The native save preserves all placements through the expected timeline end and passes two byte-identical API save cycles.
- The 131 audio-data and format chunks remain unchanged after Pro Tools adds its own WAV metadata.
- Private native fixtures are excluded from the published package and skipped explicitly when absent.
No public signature changes, global save-time reordering or expansion of the separate PCM24 append-import profile.