Skip to content

pt_api v1.6.0 — Expanded editing and automation

Choose a tag to compare

@sebedard-creator sebedard-creator released this 11 Oct 18:51
· 4 commits to master since this release
f566479

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.