Repository navigation
Releases
pt_api v1.6.3 — Sync Point and fade reading fixes
Fixes
- Correct timeline bounds for the verified audio Sync Point profile, preserving source offsets and the native sync anchor.
- Read compact Equal Power post-splice crossfades with exact sample boundaries.
- Preserve unused fade catalog definitions without treating them as timeline placements.
Reliability
- Preserve public method signatures and result formats.
- Keep editing safeguards strict: the newly supported reader profiles do not enable unverified relink, trim or crossfade writes.
- 689 local regression tests pass, including native timing comparisons and byte-identical read/save/reload checks. Private native fixtures remain optional in CI.
- Update the README, architecture, binary format specification, changelog and handoff; synchronize package and module versions to 1.6.3.
Support remains limited to documented binary profiles; this release does not add audio rendering or universal PTX editing.
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.
pt_api v1.6.1 — Exact frame rates and timecode fixes
Exact frame rates and timecode fixes
Thank you to KatzZero (@katzzero) for identifying the ambiguous frame-rate field and contributing the exact-rate research and proposed 19-rate table. This release adapts that contribution to the current codebase, with additional corrections and regression coverage.
Fixes and improvements
- Exact session frame rates: read the complete little-endian UInt32 at payload offset
+40in0x204d, rather than its ambiguous family byte. Correctly distinguish 24 from 48 fps and 23.976 from 47.952 fps. - 19 rate enums: extend timecode conversion to the documented non-drop and drop-frame variants of 23.976, 24, 25, 29.97, 30, 47.952, 48, 50, 59.94, 60, 100, 119.88 and 120 fps.
- High-rate drop-frame: skip two, four or eight frame numbers at nominal rates 30, 60 and 120 respectively, except every tenth minute. Correct both conversion directions and reject nonexistent labels.
- Consistent timeline validation:
move_clip()andsplit_clip()use the engine's nominal frame rate and drop-frame rules, accepting the last valid frame number at fractional rates. - Exact rounding: rational arithmetic avoids one-sample floating-point rounding errors at long positions.
- Safe metadata handling: preserve unknown fields and complete unknown enums; accept variable-length payloads when the exact-rate field is present, reject truncated payloads and never guess from the family byte.
Compatibility and regression coverage
- Public method signatures and
HH:MM:SS:FFoutput remain unchanged, including for drop-frame rates. - Duration conversion remains distinct from absolute drop-frame position conversion.
- Existing creation/import template profiles are not broadened. This does not add a method for changing a session's frame rate.
- 655 tests pass locally with the private reference corpus, including 17 new tests, independent rational oracles, sequential drop-frame label checks and byte-identical no-op saves on 18 native references and three Pro Tools-resaved outputs.
- The three final API-generated outputs (48 ND, 119.88 DF and 120 DF) were validated by the maintainer in Pro Tools. Their native resaves preserve the expected placements, markers and audio, and each passes two byte-identical API save cycles. This does not claim exhaustive manual verification of every session variant at all 19 rates.
- A separate fixture-free local run passes 514 tests with 141 explicit skips. This is not a claim that the remote CI matrix has already run.
Related: issue #1, PR #2. The contribution is adapted locally rather than merged wholesale.
Draft publication checklist
This release must remain a draft until:
- The corrected code, with source and package versions already updated together to
1.6.1, is committed and pushed tomaster. - CI checks pass and the
v1.6.1tag points to the intended corrected commit, not an earlier1.6.0commit.
Pro Tools validation is complete. Remove this remaining publication checklist before publishing.
pt_api v1.6.0 — Expanded editing and automation
Thank you
A heartfelt thank you to JF Viguie (@oudileoudi) for his generous contributions, fixes and shared format research. His work helped expand pt_api and identify important edge cases. The contributions were reviewed, adapted to supported native profiles and validated through regression tests and Pro Tools checks.
We also thank Damien Zammit and Robin Gareus, creators of ptformat, for the foundational format and decryption work that served as an initial reference and inspiration.
New capabilities
- Routing: inspect principal bus outputs and reassign mono Audio tracks between supported mono/stereo buses, with identity, code and Pan-state checks.
- Track Volume: read, replace or merge verified mono/stereo envelopes, with one Volume lane per track rather than per channel playlist.
- Pan: read/write static mono/stereo Pan and replace supported mono or selected stereo-channel automation envelopes.
- Audio editing: delete supported timeline placements, trim compact virtual clips in place and retain selected absolute sample ranges as named fragments.
- Native audio import: append a full native mono 24-bit / 48 kHz WAV to an existing compatible session using an explicit parent prototype.
- Markers: delete supported legacy point markers, add UTF-8 comments and read comments through the opt-in reader.
- AAF-derived playlists: read verified anonymous or mixed named/anonymous mono playlists and explicitly materialize missing names from corroborated Audio identities.
- Format coverage: 25 fps non-drop timecode conversion, verified long fade-out reading and compact virtual-clip reading.
Fixes and reliability
- Protect main-playlist counters from being mistaken for block headers, including the 90-playlist edge case.
- Keep automation associated with the correct Audio track in mixed mono/stereo sessions.
- Safely edit independent static Clip Gain points in supported mixed dictionaries, preserving neighboring envelopes and isolating shared points.
- Update the legacy marker-ruler population flag, allowing direct Import Session Data of API-created markers without first resaving the source in Pro Tools.
- Allow supported Pan curves on other tracks when reading or editing a static target, without flattening those curves.
- Strengthen complete prevalidation, reference/pointer preservation and refusal of ambiguous or unsupported layouts.
Validation and documentation
- 638 tests pass with the local reference corpus. Private native fixtures are optional; missing fixtures are explicitly skipped, not reported as native validation.
- Supported writing profiles were checked through native comparisons and Pro Tools Ultimate 2024.3.1 opening/playback/saving/reopening where applicable. Native resaves are covered by exact API cycles.
- A Windows/Linux CI workflow for Python 3.8, 3.11 and 3.13 includes regression tests and package checks. This announces the configured workflow, not an already-completed remote matrix run.
- The README has been rebuilt around release highlights, a complete public-capability table and explicit limits. Technical specifications, architecture and handoff are updated.
Scope and compatibility
This remains a profile-based, template-driven API, not a universal PTX editor. Reading a session does not imply every editing operation is supported. Existing historical methods retain their own contracts; new methods do not silently broaden them.
Track creation and general populated-track deletion, AAF/ZIP/CSV processing, MXF editing and unverified modern marker/media layouts remain outside this release. PCM24 append-import and float32 session building are separate profiles with their own metadata, frame-rate and field-width requirements. Unknown structures and overflows are rejected rather than guessed.
Python 3.8+; no third-party runtime dependencies. The current source distribution is LGPL-2.1-or-later; see LICENSE, COPYING and NOTICE.md. Attribution and this release do not certify that the separate provenance review or copyright complaint is resolved.
pt_api is an unofficial reverse-engineering interoperability project, without official Avid PTX-format documentation or Avid affiliation. Keep backups and validate edited sessions before production use.
pt_api v1.5.2
Abilty to delete empty tracks and read markers from different marker rulers
pt_api v1.5.1
v.1.5.1 - Track visibility safeguards were too strict.
pt_api v1.5.0
pt_api v1.4.2
1.4.2 - more clip relink engine edge cases
pt_api v1.4.1
Still figuring out session builder edge cases.
pt_api v1.4.0
better clip group management