ablx.directory

clip-twins

v0.1.0

Ableton Live Extension: mark identical MIDI clips as the same and near-identical ones as versions.

Music Production Workshopmanifest author: Ishai—No ratings yet

Unverified listing. This repo is new or has little community activity and the developer has not claimed it. Extensions run code inside Live — read the source, check the author, and only install things you trust.

README · rendered from GitHubView source

Clip Twins

An Ableton Live Extension that finds MIDI clips with the same content, marks them as the same (name and/or color), and marks near-copies as numbered versions.

Right-click a MIDI clip, MIDI track or clip slot → Match MIDI Clips…

Install

  1. Download clip-twins.ablx (or pick a version from the releases page).
  2. In Live, open Settings → Extensions → Install Extension and choose the file.

Requires Live 12 Suite beta 12.4.5 or later. Extensions are not available in Live Standard, Intro or Lite.

What it does

  1. Reads every MIDI clip in the Set (Session, Arrangement and take lanes).
  2. Groups clips that are strictly identical: same notes, positions, lengths, velocities, probability, mute state and loop length. Clip name, color and where the loop sits in the clip don't count. Empty clips are skipped.
  3. Groups near-copies as versions of the same thing. The slider sets how alike two clips must be (default 80%). A 2-bar loop and a 4-bar clip that repeats it with a fill count as versions.
  4. Shows a preview, then applies your naming and color choices in one undo step.

Options (remembered between runs):

  • Names — keep the group's most common existing name (falls back to track name + letter), always track name + letter, your own prefix + letter, or don't rename. Versions get v2 or (2); the first version can stay untagged.
  • Colors — one color per group, one color per group with a shade per version, or don't recolor. Optionally gray out clips that match nothing.

Development

You need Node.js 24.16 or later, the Extensions SDK download from Ableton's beta program, and Developer Mode turned on in Live (Settings → Extensions).

  1. Copy the SDK and CLI .tgz files into vendor/ (see vendor/README.md).

  2. Create .env with the path to Live's extension host, e.g.

    EXTENSION_HOST_PATH=/Applications/Ableton Live 12 Beta.app/Contents/.../ExtensionHost/ExtensionHostNodeModule.node
    

    (The SDK's project scaffolder finds this path for you; copy it from any scaffolded project.)

  3. npm install

  4. npm start to load it into Live, or npm run package for an installable dist/clip-twins.ablx.

Errors and a one-line summary of each run go to Live's ExtensionHost.txt log.

Without Live: npm test runs the matching engine and the whole extension against a simulated Set; npm run preview builds build/interface.html, which opens in any browser with sample data.

Releasing

Releases are built on your own machine, since the SDK can't be published, and uploaded with the GitHub CLI (gh auth login once).

  1. Set the same new version in manifest.json and package.json, and commit.
  2. Run npm run release.

The script checks that the versions agree, the working tree is clean and the tag is new, then runs the tests, builds dist/clip-twins.ablx, tags the commit, pushes the tag, and publishes a GitHub release with the file attached.

Layout

src/core/        matching engine, no Live dependency
  fingerprint.ts   strict identity
  similarity.ts    how alike two patterns are
  plan.ts          grouping, names, colors
src/extension.ts scan the Set, show the dialog, apply
src/ui/dialog.ts dialog logic (live preview uses the same plan.ts)
ui/interface.html
scripts/release.mjs
test/

License

MIT. The released clip-twins.ablx also bundles parts of Ableton's Extensions SDK, which remain under Ableton's own license. The SDK itself is not included in this repository.

Rate this extension

One rating per account; you can change it any time.

No ratings yet — be the first

Comments

Sign in to join the discussion.Sign in

No comments yet.