Skip to content

ableton-tools 1.1.0

Latest

Choose a tag to compare

@madisonrickert madisonrickert released this 07 Oct 00:46
· 3 commits to main since this release

ableton-tools 1.1.0 (engine 0.3.0) makes every .als command correct on Ableton Live 12 sets, adds session-building commands, and ships an experimental device-chain transplant and new analysis tools.

Fixes

  • Live 12 tempo. als inspect reported tempo: null, and set-tempo / warp-to-grid failed. Live 12 uses MainTrack (Live 11 used MasterTrack) and adds a LomId inside <Tempo>.
  • als import-stems could produce a set Live refuses to open ("Unexpected value for int node"). It wrote stem names into each clip's ScaleInformation/Name.
  • --commit no longer auto-restores almost every real set. The ref check treated Live's built-in and library device presets (the default template's Reverb/Delay) as missing project files. Refs are now checked by RelativePathType.
  • warp-to-grid now sets IsWarped. The old pattern never matched Live's formatting.
  • --master-track / track names now resolve after Live renames a track to "<index>-name".
  • import-stems no longer duplicates the master's Session clip into every clone (--keep-session keeps it).
  • Clones of automated tracks no longer drive the source track's parameters. Automation pointers are now remapped.
  • move-clip / snap preserve clip length unless --dur-s is given.
  • JSON output is strict. Undefined values are null, never NaN.
  • Copying a track no longer redirects automation that points outside it. Previously, a pointer could be renumbered when its number happened to match a local id (for example a warp marker) inside the copy.
  • Clip lookup ignores frozen renders and take-lane copies, so a clip name no longer looks ambiguous on a frozen or comped track.
  • Internal engine errors are structured. They exit with code 4, kind: "internal" and a hint, instead of a Python traceback; nothing is written.
  • Install works on Intel Macs. numba/llvmlite are constrained only on x86_64 macOS. A missing uv now prints a one-line hint.

New

  • Lossless editing. All .als access goes through an expat byte-span index, and edits are byte splices: a no-op round-trip is byte-identical. It indexes an 8.5 MB set in ~0.2 s.
  • Safer commits.
    • Refuses while Ableton Live is running (--force overrides) or when the file changed since it was read.
    • Validates before writing.
    • Restores the backup only if the edit itself broke a project file reference; files already missing are reported, not blocking.
    • Every dry-run includes a validation report.
  • als validate (read-only) reports structural errors and a typed file-ref report, and warns about rack routing that points at a device that isn't there.
  • Atomic writes. Sets are written to a temp file and renamed into place, so a crash or full disk never leaves a half-written .als. A restore copies the backup back byte for byte.
  • Copied tracks start clean. add-track gives a bare track: default volume, pan and sends, unmuted, no frozen audio or take lanes. Stem clones keep the master's volume, pan and sends, but drop its frozen audio, take lanes, mute, solo and arm state.
  • als inspect now reports groups, output routing, mute, device counts, the main track, Session vs Arrangement clips, the Time position, and each clip's warp-map BPM.
  • Session building:
    • als set-tempo;
    • als mute;
    • als add-track (a bare track);
    • als group (real group folders, with members routed to the group bus);
    • als sync-to-master (snap every warped stem to a moved or re-warped master and report warp-map drift).
  • als import-stems additions:
    • --tolerance-ms for same-timeline files with padding or a different sample rate (start lag is measured);
    • --to session --unwarped for un-synced takes;
    • --skip-below / --mute-below for silent stems.
  • Analysis:
    • ableton levels (dBFS, silence, duplicates of a reference);
    • ableton locate (where a fragment occurs in a reference);
    • ableton warp-check (whether warp markers sit on the beats and every warped clip shares the master's map).
  • A new als-build skill. The other skills, engine/CLAUDE.md and references/als-format.md (with a Live 12 section) are updated.

Experimental

  • als transplant-devices copies a device chain between sets, plugin state included.

    • Rack-safe; ids are fixed.
    • The chain's own routing (rack sidechains, drum-pad sends to return chains) is remapped to the copied devices.
    • Sidechains to other tracks are reset unless you pass --map-track.
    • Automation is optional (--with-automation).
    • --mode replace drops the target's automation of the devices it replaces.
    • Project samples are copied, only after the commit checks pass. An identical file already in Samples/Imported is reused; a different file with the same name is kept, and the copy is named <name> (2).<ext>.

    Verified on 2,108 real chains from 155 Live 11/12 sets (100% validate, every rack self-route resolves). Still check the result in Live.

  • warp-check, tempo, drift and warp-to-grid remain experimental.

Behaviour changes

  • move-clip without --dur-s keeps the clip's length (--dur-s and --bpm are now optional).
  • import-stems drops the clones' duplicate Session clip by default.
  • als inspect JSON gains fields. Existing keys are unchanged; MainTrack and PreHearTrack are no longer listed in tracks (see main).
  • --commit refuses while Live is running unless --force is given.
  • Error payloads may include a machine-readable kind.