ClaudeCodeMod

All shelves / Marketplaces

krfantasy/alsdiff

krfantasy/alsdiff · 0 stars · 8 plugins

Marketplace Project-specific tools for Ableton Live Set development and diffing

Install

In Claude Code
/plugin marketplace add krfantasy/alsdiff

Run inside Claude Code, then install plugins from it. Check the repo's README before you run it.

Open the repo

Plugins 8

After adding the marketplace, install one with /plugin install <name>@alsdiff-tools.

  1. 1xml-element-extractorExtract XML elements from Ableton Live Set files using Python/plugin install xml-element-extractor@alsdiff-toolsv1.0.0utilities
  2. 2ableton-test-generatorGenerate Ableton Live project files (.als) for testing using Ableton MCP tools/plugin install ableton-test-generator@alsdiff-toolsv2.0.0utilities
  3. 3security-data-leak-scannerScan codebases for potential personal data leaks and sensitive information/plugin install security-data-leak-scanner@alsdiff-toolsv1.0.0security
  4. 4ocaml-lspLSP integration for OCaml via ocamllsp/plugin install ocaml-lsp@alsdiff-toolsv0.1.0development
  5. 5ocaml-code-indentAutomatically format OCaml files with ocp-indent after edits/plugin install ocaml-code-indent@alsdiff-toolsv0.1.0development
  6. 6ableton-saveSave Ableton Live projects via natural language or slash command using AppleScript automation/plugin install ableton-save@alsdiff-toolsv0.2.0utilities
  7. 7architect-analystDeep architectural analysis and solution design agent for complex problems/plugin install architect-analyst@alsdiff-toolsv0.1.0development
  8. 8generate-changelogGenerate changelogs from git commit history following Keep a Changelog format/plugin install generate-changelog@alsdiff-toolsv0.1.0utilities

Files

README.md

alsdiff

Build status GitHub Release License

alsdiff is a suite of tools for Ableton Live Set (.als) files — semantic diff, interactive TUI, and routing flowcharts — that makes version control meaningful for music producers.

The Problem

Ableton Live Set files (.als) are gzip-compressed XML. Because standard git diff treats them as binary blobs, using version control to track changes in music projects is nearly impossible.

While existing workarounds allow decompressing .als files to .xml for diffing, the raw output is overwhelmingly verbose. A typical 20-track project can result in a 200,000-line XML file, making generic text diffs unreadable.

alsdiff solves this problem. It decompresses .als files and parses the XML to perform a semantic diff:

  • Identity-based matching: Tracks, clips, and devices are matched by their internal IDs, not by position. Renaming or reordering doesn't create false diffs.
  • Structured hierarchy: Changes are organized by Live's structure (LiveSet > Tracks > Devices > Parameters).
  • Human-readable output: Instead of XML tag changes, you see "Freq: 2500.0 -> 3200.0" or "Notes (3 Added, 1 Removed)".
  • Noise filtering: Internal metadata changes (like timestamps or cache data) are ignored by default.

The output of alsdiff looks like this:

* LiveSet: Thick Air v6 [Name: Demo v5 -> Demo v6, Creator: Ableton Live 12.2.6 -> Ableton Live 12.3.6]
  * Version [Minor: 12.0_12203 -> 12.0_12300, Revision: 54fbddc6d0dc7047766a6a04b12063b5f6fe4b68 -> 3ba2aa8bc4e1ef55b1b55f468470aed387684e63]
  * Main Track
    * MainTrack (#0): Main
      * Automations
        + Automation (id=2, target=Parameter: StereoWidth)
      * Devices
        * StereoGain (#6): StereoGain
          * Parameters
            * On [Value: false -> true]
        * Eq8 (#8): Eq8
          * Parameters
            * Bands.0/ParameterA/IsOn [Value: true -> false]
            * Bands.1/ParameterA/Freq [Value: 202.06 -> 274.49]
            * Bands.1/ParameterA/Gain [Value: 0.00 -> -2.62]
            * Bands.1/ParameterA/Q [Value: 0.71 -> 6.53]
        * Limiter (#1): Limiter
          * Parameters
            * Mode [Value: 2.00 -> 0.00]
  + MidiTrack (#129): 7-Cello Section [Name: 7-Cello Section]
    + Clips
      + MidiClip (#0):  [Name: , Start Time: 96.00, End Time: 120.00]
        + Loop [Start Time: 0.00, End Time: 172.00, On: true]
        + TimeSignature [Numerator: 4, Denominator: 4]
        + Notes
          + Note E2 (40) [Time: 0.00, Duration: 8.00, Velocity: 100.00, Note: 40, Off Velocity: 64.00]
          + Note E2 (40) [Time: 32.00, Duration: 8.00, Velocity: 100.00, Note: 40, Off Velocity: 64.00]
          + Note G#2 (44) [Time: 12.00, Duration: 8.00, Velocity: 100.00, Note: 44, Off Velocity: 64.00]
          + Note G#2 (44) [Time: 44.00, Duration: 8.00, Velocity: 100.00, Note: 44, Off Velocity: 64.00]
          + Note A2 (45) [Time: 8.03, Duration: 4.00, Velocity: 100.00, Note: 45, Off Velocity: 64.00]
          + Note A2 (45) [Time: 54.00, Duration: 6.00, Velocity: 100.00, Note: 45, Off Velocity: 64.00]
          + Note B2 (47) [Time: 24.00, Duration: 6.00, Velocity: 100.00, Note: 47, Off Velocity: 64.00]
          + Note E3 (52) [Time: 61.00, Duration: 3.00, Velocity: 100.00, Note: 52, Off Velocity: 64.00]
...

Installation

Install from pre-built binaries

Download from GitHub Releases. Each release includes three binaries: alsdiff, alsdiff-tui, and alsflow.

chmod +x ./alsdiff ./alsdiff-tui ./alsflow
mv alsdiff alsdiff-tui alsflow ~/.local/bin  # or any directory in your PATH

Note: The Windows build is currently untested as I don't have access to a Windows machine. Feedback welcome!

Git Integration

A helper script is provided at ./scripts/setup-git.sh. Simply download it to your git repository root and run ./setup-git.sh. This script will automatically configure git to use alsdiff for .als files and optionally install a prepare-commit-msg hook for auto-generating commit messages.

The script provides:

  • Automatic .gitattributes configuration for .als files
  • Git diff driver setup using alsdiff --git
  • Optional prepare-commit-msg hook that auto-generates commit message summaries using alsdiff --mode stats
  • Support for all git operations (add, modify, delete, rename, copy)
  • Root-only execution guard with clear guidance if run from a subdirectory

Alternatively, you can perform the setup manually.

  1. Add to .gitattributes in your repository:
cd /path/to/live_projects/
echo "*.als diff=alsdiff" >> .gitattributes
  1. Configure git:
git config --global diff.alsdiff.command "alsdiff --git"

Extra flags may be appended (e.g. alsdiff --preset full --git), but note that passing --preset or --config disables .alsdiff.json auto-discovery.

  1. Now git diff will use alsdiff to compare .als files:
git diff HEAD~1 -- your-project.als

Added, deleted, and renamed/copied .als files are supported: git reports them via /dev/null and the 9-argument rename invocation, which alsdiff renders as all-tracks-added/removed and a diff --git header.

Prepare-Commit-Msg Hook

When enabled, the hook automatically prepends change statistics to your commit messages:

$ git commit

MyProject.als:
  Tracks: 1 Added, 3 Modified
  Devices: 2 Added, 5 Removed
  Clips: 4 Added, 2 Modified

# Please enter the commit message...

If the hook runs multiple times for the same commit message (for example during amend/reuse flows), it refreshes the generated stats block instead of duplicating it.

Build from source
Click to expand
Prerequisites
  • opam: OCaml package manager
Setup (first time only)
# Initialize opam if not done before
opam init

# Create a local switch with the correct OCaml version
opam switch create . --deps-only --with-test

# Activate the environment
eval $(opam env)
Build
# Install dependencies (if not using local switch)
opam install . --deps-only

# Build
dune build

# Run tests (optional)
dune runtest

# Install alsdiff, alsdiff-tui, and alsflow to ~/.local/bin
dune install --prefix ~/.local/
Run without installing
dune exec alsdiff -- file1.als file2.als
Custom build via GitHub Action
Click to expand

You can build custom binaries from any branch or commit using the provided GitHub Actions workflow, removing the need for a local OCaml environment.

How to use
  1. Fork this repository
  2. Go to the Action tab in your fork
  3. Select "Custom Build" workflow
  4. Click "Run workflow"
  5. Choose options:
    • Branch: Any branch (e.g., master, develop)
    • Commit SHA (optional): Specific commit to build
  6. Click "Run workflow"
Output

The workflow builds binaries for Ubuntu, Windows, and macOS (Intel & Apple Silicon). It automatically creates a GitHub Release tagged {branch}-{commit-sha} containing the compiled assets.

Download

After the workflow completes, find the release at the bottom of the Releases page named like:

Build master-ca82745

Download the appropriate file for your system:

alsdiff-ubuntu-x86_64-master-ca82745.zip
alsdiff-macos-arm64-master-ca82745.zip
alsdiff-macos-x86_64-master-ca82745.zip
alsdiff-windows-x86_64-master-ca82745.zip

Configuration

alsdiff uses a flexible configuration system to control output detail levels. You can use built-in presets, custom JSON configuration files, or individual command-line options.

Configuration Priority

When multiple configuration sources are provided, alsdiff resolves conflicts using this priority order (highest wins):

  1. Individual CLI flags (e.g., --time-format, --note-name-style) — per-field overrides
  2. --preset — named workflow preset
  3. --config — explicit configuration file
  4. Auto-discovered .alsdiff.json — found in project directory, git root, or home directory
  5. Built-in default — fallback preset
Quick Start with Presets

The easiest way to get started is using one of the built-in presets:

Preset What it feels like When to use it
quiet Minimal output Quick checks, very large sets
compact Balanced summary (recommended) Daily use
inline Detailed, but dense When you want detail without big blocks
full Very detailed Deep review / “what exactly changed?”
mixing Emphasizes mixer/devices/automation Mixing / sound design changes
composer Emphasizes clips/notes MIDI writing / arrangement changes
verbose Includes unchanged items (can get huge) Debugging / auditing
alsdiff v1.als v2.als --preset quiet      # Minimal output
alsdiff v1.als v2.als --preset compact    # Balanced overview
alsdiff v1.als v2.als --preset full       # All details for changed items
alsdiff v1.als v2.als --preset inline     # Compact single-line format
alsdiff v1.als v2.als --preset verbose    # Everything including unchanged
alsdiff v1.als v2.als --preset mixing     # Stem mixing focus
alsdiff v1.als v2.als --preset composer   # MIDI composition focus

Output Modes

alsdiff offers two output modes for different use cases:

Tree Mode (default)

Hierarchical tree view showing the structure of your Live set with changes organized by Live's hierarchy (LiveSet > Tracks > Devices > Parameters).

alsdiff v1.als v2.als
alsdiff v1.als v2.als --mode tree
Stats Mode

Flat summary statistics showing change counts by domain type. Perfect for quick overviews and automated commit messages.

alsdiff v1.als v2.als --mode stats

Example output:

Tracks: 2 Added, 1 Removed, 5 Modified
Devices: 3 Added, 2 Modified
Clips: 4 Added, 1 Removed
Notes: 12 Added, 5 Removed
Automation: 7 Modified

Stats mode is fully compatible with --config and --preset flags for customizing which types are tracked:

alsdiff v1.als v2.als --mode stats --preset compact
alsdiff v1.als v2.als --mode stats --config myconfig.json

Note: Stats mode is incompatible with display customization flags (--prefix-*, --note-name-style, --max-collection-items), which are designed for tree mode.

Preset output comparison

quiet - Shows only top-level structure:

* LiveSet
  * Tracks (1 Modified)

compact - Shows structure with change counts:

* LiveSet
  * Tracks
    * MidiTrack: "Lead Synth"
      * Clips (1 Modified)
      * DeviceChain (1 Added, 1 Modified)

full - Expands all details:

* LiveSet
  * Tracks
    * MidiTrack: "Lead Synth"
      * DeviceChain
        + Compressor2
        * Eq8
          * Bands
            * Band.4
              * Freq: 2500.0 -> 3200.0
              * Gain: 0.0 -> 2.5
Command-Line Options
Configuration Selection
  • --mode MODE - Output mode: tree (default) or stats
  • --preset PRESET - Use built-in preset (compact, full, inline, mixing, composer, quiet, verbose)
  • --config FILE - Load custom configuration from JSON file
Display Customization
  • --prefix-added PREFIX - Custom prefix for added items (default: "+")
  • --prefix-removed PREFIX - Custom prefix for removed items (default: "-")
  • --prefix-modified PREFIX - Custom prefix for modified items (default: "*")
  • --prefix-unchanged PREFIX - Custom prefix for unchanged items (default: "=")
  • --note-name-style STYLE - MIDI note display: Sharp or Flat (default: Sharp)
  • --max-collection-items N - Limit items shown in collections
  • --time-format FORMAT - Time display format: QuarterNotes (raw floats, default), BeatTime (bars:beats:sixteenths), or RealTime (mm:ss.ms)
Git Integration
  • --git - Enable git diff driver mode (expects 7 positional arguments from git, 9 for renames/copies)
Utility Commands
  • --dump-preset PRESET - Output preset as JSON to stdout
  • --dump-schema - Output JSON schema to stdout
  • --validate-config FILE - Validate config file against schema
Advanced configurations
Click to expand
Configuration File Format

Configuration files use JSON format with the following structure:

{
  "$schema": "https://raw.githubusercontent.com/krfantasy/alsdiff/master/docs/config.schema.json",
  "added": ["Summary"],
  "removed": ["Summary"],
  "modified": ["Summary"],
  "unchanged": ["Ignore"],
  "type_overrides": [
    {
      "domain_type": ["DTTrack"],
      "override": {
        "added": ["Inline"],
        "removed": ["Summary"],
        "modified": ["Compact"]
      }
    }
  ],
  "max_collection_items": 20,
  "prefix_added": "+",
  "prefix_removed": "-",
  "prefix_modified": "*",
  "prefix_unchanged": "=",
  "note_name_style": ["Sharp"],
  "indent_width": 2
}
Configuration Options Reference
Option Type Default Description
added detail_level varies Detail level for added items (one of: Ignore, Summary, Compact, Inline, Full)
removed detail_level varies Detail level for removed items
modified detail_level varies Detail level for modified items
unchanged detail_level varies Detail level for unchanged items
type_overrides array [] Per-type detail level overrides (see below)
max_collection_items integer/null varies Maximum items to show in collections (0 = none, omitted = unlimited)
prefix_added string "+" Prefix symbol for added items
prefix_removed string "-" Prefix symbol for removed items
prefix_modified string "*" Prefix symbol for modified items
prefix_unchanged string "=" Prefix symbol for unchanged items
note_name_style note_style ["Sharp"] MIDI note display style: ["Sharp"] (C#, D#) or ["Flat"] (Db, Eb)
indent_width integer 2 Number of spaces per indentation level

JSON Format Notes:

  • Detail levels and enums use JSON array format: ["Full"], ["Sharp"]
  • max_collection_items can be null for unlimited, or omitted to use preset default
  • Preset defaults vary: quiet uses 0, compact uses 20, full uses 100, verbose uses null
Detail Levels

The configuration system uses five detail levels to control how items are displayed:

Level Description
Ignore Completely hide the item
Summary Show name + change symbol + counts (e.g., "Notes (3 Added, 1 Removed)")
Compact Show name + change symbol (same as Summary for elements/collections)
Inline Show name + change symbol + all fields on single line
Full Show name + change symbol + all fields/sub-views (multiline)
Understanding the View Model

alsdiff represents Live sets using a hierarchical view model with three types of views:

Type Description Ableton Live Examples
Field A single value with old/new values Track volume, pan position, note pitch, loop length
Item A named entity that contains child views A track, a clip, a device, a mixer
Collection A list of items (possibly with counts) Tracks list, Notes list, Devices list, Locators
Auto-Discovery

When no --config or --preset is specified, alsdiff automatically searches for .alsdiff.json configuration files in the following order:

  1. Directory of the second (new) .als file
  2. Git repository root (if in a git repo)
  3. User's home directory (~/.alsdiff.json)
  4. Falls back to quiet preset

This allows project-specific or user-specific defaults without manual configuration. In git diff driver mode, the repo-root .alsdiff.json is used only when no --preset/--config is passed to the driver command.

Type-Based Overrides

You can customize display behavior for specific types of elements using type_overrides:

Available Domain Types
Type Description
DTLiveset Root level of the Live set
DTTrack MIDI/Audio/Group tracks
DTDevice Plugin, Group, and Max for Live devices
DTClip Audio and MIDI clips
DTAutomation Automation envelopes
DTMixer Track mixer settings
DTRouting Input/output routing
DTLocator Scene markers
DTParam Device parameters
DTNote MIDI notes
DTEvent Automation events
DTSend Track sends
DTPreset Device presets
DTMacro Macros
DTSnapshot Device snapshots
DTLoop Clip loop settings
DTSignature Time signatures
DTSampleRef Audio sample references
DTVersion File version
DTOther Any other elements
Override Format
"type_overrides": [
  {
    "domain_type": ["DTTrack"],
    "override": {
      "added": ["Inline"],
      "removed": ["Summary"],
      "modified": ["Compact"],
      "unchanged": ["Ignore"]
    }
  },
  {
    "domain_type": ["DTNote", "DTEvent"],
    "override": {
      "added": ["Summary"],
      "removed": ["Summary"],
      "modified": ["Summary"]
    }
  }
]

Helper Tools

alsdiff-tui

Interactive terminal UI for exploring diffs with keyboard-driven navigation, search, and filtering.

alsdiff-tui v1.als v2.als    # diff two files
alsdiff-tui                   # browser mode: pick files interactively
alsflow

Generates track routing flowcharts from .als files in Mermaid or DOT format.

alsflow project.als --format mermaid    # output Mermaid diagram
alsflow project.als --format dot        # output DOT graph

Current Status

alsdiff is designed for Ableton Live 12+. Due to changes in the XML schema, it may not function correctly with older versions. There are currently no plans to implement backward compatibility.

Click to expand
  • Tracks
    • MIDI track & Audio track
    • Group track
    • Return track
    • Main track
    • Take lanes & Comping
  • Devices
    • Built+in devices
    • Plugin devices (VST/VST3/AU)
    • Max for Live devices
    • Rack devices, Branches, Macros and Snapshots
    • Presets
    • Sidechain support
  • Clips
    • MIDI Clip
      • MIDI Note (pitch, velocity, time, duration, off velocity)
      • Loop
      • MPE
      • Scale
    • Audio Clip
      • External audio file changes
      • Loop
      • Fade
      • Warp markers & settings
  • Automation
    • Basic
    • Curve
  • Global settings
    • Tempo
    • Time signature
    • Scale
  • Utils
    • Mixer
    • Send
    • Routing (MIDI in, Audio out, etc.)
  • Session View
  • Groove Pool

Known Limitations

Values represented differently than in the Ableton Live GUI

alsdiff outputs the raw internal values stored in the .als file, which often differ from the visual representation in Ableton Live (e.g., an internal value of 0.75 might appear as 75% or -2.5 dB in the GUI). Since the formatting logic is internal to the Ableton Live application and not stored in the project file, it is not possible to infer exactly how a value is displayed in the GUI solely from the .als data.

Plugin state is opaque binary data

VST2, VST3, and Audio Unit plugins store their internal state as opaque binary blobs. Each plugin serializes its state in its own proprietary format — there is no standard structure, header, or parameter layout. alsdiff can detect that a plugin's state changed but cannot interpret individual parameter changes within the blob. Metadata such as plugin name and preset name is available from the surrounding XML elements, but the actual parameter values are not extractable without plugin-specific reverse engineering.

License

It's public domain, see THE-LICENSE.txt for details.

Links

Facts

Kind
Marketplace
Repo
krfantasy/alsdiff
Group
Uncategorized
Stars
0
Marketplace name
alsdiff-tools
Owner
Jay Xu
Language
OCaml
Created
2026-10-10
Last push
2026-10-19
Plugins
8

Next on this shelf

  1. 2040aglabo/deckrdaglabo/deckrd0
  2. 2042EarthmanWeb/serena-workflow-engineEarthmanWeb/serena-workflow-engine0
  3. 2043him0/him0-claude-marketplacehim0/him0-claude-marketplace0
  4. 2044jschulte/claude-pluginsjschulte/claude-plugins0
  5. 2045nbarthel/claudynbarthel/claudy0
  6. 2046Nothflare/feature-treeNothflare/feature-tree0