Build Your First Ableton Live Extension: A MIDI Clip Command

Published Oct 28, 2026 · guide

Go from the free Ableton Extensions SDK to a working right-click command that edits MIDI notes in Live 12 Suite: setup, manifest, code, testing, packaging.

The smallest useful Ableton Live Extension is a single command. You right-click a MIDI clip, pick your command from the context menu, and the notes change. You can get there in an afternoon if your setup is right, and most of the work is in the setup.

Below is the path from a clean machine to that working command. The example raises every note in a clip by an octave. It is boring on purpose, because it touches every part of the SDK you will reuse later.

What you need before writing any code

Extensions only run in specific Live builds, so check this first. If Live can't load your extension, nothing else matters.

RequirementDetails
Live editionLive 12 Suite. Standard, Intro and Lite don't run extensions.
Live versionBeta 12.4.5 or later, through the Ableton beta program
Node.jsv24 LTS or later
Operating systemmacOS or Windows
SDKFree public beta, released June 2, 2026, with docs at ableton.github.io/extensions-sdk

If you haven't installed the beta yet, our walkthrough on getting Live 12.4.5 beta running with extensions covers that part.

Also check that your idea is a good fit. Extensions work on project data: tracks, clips, MIDI notes, devices, parameters and tempo. They don't process real-time audio or MIDI, build native devices or act as control surfaces. Those jobs still belong to Max for Live. A command that rewrites the notes in a clip is a good fit. A live arpeggiator is not. For more on that split, see Extensions SDK vs Max for Live.

Scaffold the project with extensions-cli

The SDK is a JavaScript/TypeScript toolkit. It ships a JavaScript API, a CLI called extensions-cli, a project scaffolder, example projects and a TypeDoc API reference. The CLI does three jobs:

Get the exact install command and subcommand syntax from the official docs. The SDK is still in beta, so flags may change. Scaffold a project, then open it and look around before changing anything. The generated files show the correct import paths and project layout. Copying those is much safer than guessing.

The two pieces that matter: manifest.json and activate()

An extension is a package with two essential parts: a manifest.json and a bundled entry file.

The manifest

The manifest has five fields:

Keep whatever entry and minimumApiVersion values the scaffolder generates unless the docs tell you otherwise. A wrong entry path is an easy way to end up with an extension that installs but never shows up.

The entry file

The entry file exports a function called activate(). Inside it you do three things, in this order:

  1. Call initialize().
  2. Register one or more commands with commands.registerCommand.
  3. Attach each command to a context-menu scope with ui.registerContextMenuAction(scope, title, commandId).

Scopes are the kinds of objects you can right-click, such as "MidiClip", "ClipSlot" and "AudioTrack". The full list is in the TypeDoc reference.

One thing about the runtime affects how you design commands. An extension runs once each time it is invoked, then stops. There is no background process. Every command should do its whole job in one go: read the data, change it, finish. If you need to keep settings between runs, each extension gets its own storage directory for config and credentials.

Write the command: octave up on a MIDI clip

When a user runs your command, it receives a handle. You turn that handle into a real object with context.getObjectFromHandle(handle, MidiClip). From there, MidiClip.notes is an array of note objects. Each note has fields such as pitch, startTime, duration, velocity, muted and probability. Times are in beats.

Here is a sketch of the whole extension. The API names come from the SDK. The parts marked in comments are ones to confirm against your scaffold and the reference, not invent.

// Copy the real import line from your scaffolded project.
import { initialize, commands, ui, MidiClip } from '<sdk package from your scaffold>';

export function activate() {
  initialize(); // check the docs for its arguments and return value

  // 'context' is the SDK object that gives you access to Live.
  // Get it the same way the scaffolded example does.

  commands.registerCommand('octave-up', async (handle) => {
    const clip = context.getObjectFromHandle(handle, MidiClip);

    const raised = clip.notes.map((note) => ({
      ...note,
      pitch: Math.min(note.pitch + 12, 127),
    }));

    // Confirm the write-back pattern in the TypeDoc reference.
    clip.notes = raised;
  });

  ui.registerContextMenuAction('MidiClip', 'Octave Up', 'octave-up');
}

The command ID ('octave-up') is what links the command to the menu entry. It has to match exactly in both calls. The title ('Octave Up') is the text that appears when you right-click a MIDI clip.

The Math.min clamp stops notes from going above MIDI's top pitch, 127. Every other field passes through untouched, so velocity, probability and muting survive the edit. Copying the whole note object and changing only the field you need is a good habit to carry into later tools.

Easy variations to try next

Extensions run on Node.js with the full Node APIs, including fs and networking. A command can read a file or call a web service as part of its one-shot run.

Run it in Live and test properly

Use the CLI's run command to load your extension into Live's extension host. Then, in a Live 12 Suite beta session:

  1. Make a MIDI clip with a few notes. Include one very high note, so you can check the clamp.
  2. Right-click the clip. Octave Up should appear in the context menu.
  3. Click it and open the clip to check the result.

If the entry is missing from the menu, check the scope string and the command ID before anything else. If the menu entry appears but nothing changes, the problem is usually how the notes are written back. Compare your code with the SDK's bundled examples. Also try an empty clip and a clip with muted notes, so your command handles edge cases without throwing errors.

Ableton says that because the SDK uses standard web technology, AI coding assistants handle it well. That makes iteration faster, even if you don't write much code yourself. Still, check anything a model suggests against the TypeDoc reference. An assistant can confidently invent methods that don't exist.

Package as .ablx and share it

When the command works, use the CLI's package command to produce an .ablx archive. Users install it in Live under Settings → Extensions by adding the .ablx file. Some extensions need a Live restart after that. The full user-side process is in how to install an .ablx extension.

Before you share, bump version in the manifest and tell users what they need: Live 12 Suite, beta 12.4.5 or later. Ableton's Discord has a channel for extensions where you can get early feedback. When you're ready to reach more people, you can publish it here, where users can download, rate and comment.

Study extensions that already touch MIDI

Reading working code is the fastest way past the gaps in any beta documentation. Several published extensions do things close to your first command:

Browse more in MIDI tools. After that, try a second command on a different scope, such as "ClipSlot", to see how the handle pattern carries over.

Browse all extensions → · Submit yours →