Skip to content

dreamrec/LivePilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

265 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
██╗     ██╗██╗   ██╗███████╗██████╗ ██╗██╗      ██████╗ ████████╗
██║     ██║██║   ██║██╔════╝██╔══██╗██║██║     ██╔═══██╗╚══██╔══╝
██║     ██║██║   ██║█████╗  ██████╔╝██║██║     ██║   ██║   ██║
██║     ██║╚██╗ ██╔╝██╔══╝  ██╔═══╝ ██║██║     ██║   ██║   ██║
███████╗██║ ╚████╔╝ ███████╗██║     ██║███████╗╚██████╔╝   ██║
╚══════╝╚═╝  ╚═══╝  ╚══════╝╚═╝     ╚═╝╚══════╝ ╚═════╝    ╚═╝

CI npm version npm downloads License Latest Release

An agentic production system for Ableton Live 12.
294 tools. Device atlas. Spectral perception. Technique memory.


Note

LivePilot works with any MCP client — Claude Code, Claude Desktop, Cursor, VS Code, Windsurf. All tools execute on Ableton's main thread through the official Live Object Model API. Everything is reversible with undo.


Architecture

┌─────────────────────────────────────────────────────────────┐
│                                                             │
│   KNOWLEDGE            PERCEPTION           MEMORY          │
│   ───────────          ──────────           ──────          │
│                                                             │
│   280+ devices         8-band FFT           recall by       │
│   139 drum kits        RMS / peak           mood, genre,    │
│   350+ impulse         pitch tracking       texture         │
│   responses            key detection                        │
│                                                             │
│   ┌────────────┐      ┌────────────┐      ┌────────────┐   │
│   │   Device   │─────▶│    M4L     │─────▶│ Technique  │   │
│   │   Atlas    │      │  Analyzer  │      │   Store    │   │
│   └─────┬──────┘      └─────┬──────┘      └─────┬──────┘   │
│         └───────────────────┼───────────────────┘           │
│                             ▼                               │
│                    ┌─────────────────┐                      │
│                    │   294 MCP Tools  │                      │
│                    │   39 domains     │                      │
│                    └────────┬────────┘                      │
│                             │                               │
│             Remote Script ──┤── TCP 9878                    │
│             M4L Bridge ─────┤── UDP 9880 / OSC 9881         │
│                             │                               │
│                    ┌────────────────┐                       │
│                    │  Ableton Live  │                       │
│                    └────────────────┘                       │
└─────────────────────────────────────────────────────────────┘

The atlas gives the AI knowledge of every device in Ableton's library — real names, real URIs, real parameters.

The analyzer gives it ears — spectral data from the master bus via a Max for Live device.

The memory gives it history — a searchable library of production decisions that persists across sessions.

All three feed into 294 deterministic tools that execute on Ableton's main thread.



The Intelligence Layer

Most MCP servers are tool collections — they execute commands. LivePilot is an agentic production system — it understands what a song is becoming, diagnoses when a session is stuck, generates real creative options, learns from your decisions, and tracks its own impact.

This is the V2 intelligence layer: 12 engines that sit on top of the 294 tools and give the AI musical judgment, not just musical execution.

SongBrain — What the Song Is

SongBrain builds a real-time model of the current session: what the defining idea is (identity core), what elements must not be casually damaged (sacred elements), what each section is trying to do emotionally (section purposes), and where the energy arc is heading. It answers the question every producer asks: "What is this track?"

It detects when the song's identity is drifting — when recent edits are pulling the track away from what made it work. When identity confidence is high, the system makes bolder suggestions. When it's fragile, it protects what's there.

Taste Graph — What You Like

The Taste Graph learns your production preferences across sessions. Not just "prefers reverb" — it tracks which move families you keep vs. undo (mix moves? arrangement moves?), which devices you gravitate toward, how experimental you want suggestions to be (your novelty band), and which dimensions you actively avoid.

Every time you accept or reject a suggestion, the graph updates. Over time, it personalizes which creative options are offered and how they're ranked. Two producers using the same tools get different recommendations.

Semantic Moves — Musical Actions, Not Parameters

A semantic move is a high-level musical intent — "add contrast," "tighten the low end," "build tension toward the chorus" — that compiles into a specific sequence of tool calls. The system has 20 moves across 4 families (mix, arrangement, transition, sound design), each with an executable plan.

Moves carry risk levels, target dimensions, and protection thresholds. "Add a filter sweep build" targets energy and tension while protecting clarity. The AI doesn't just know what to do — it knows what it's risking.

Wonder Mode — Stuck-Rescue Workflow

When a session is stuck — too many undos, polishing the same loop, no structural progress — Wonder Mode activates. It's not "surprise me." It's a structured diagnosis-and-rescue workflow:

  1. Diagnose — Why is the session stuck? Repeated undos? Overpolished loop? Missing contrast? Identity unclear? The stuckness detector analyzes the action history and classifies the problem.

  2. Generate — Based on the diagnosis, Wonder searches for semantic moves that address the specific problem. It enforces real distinctness — each variant must differ by move family or execution approach. If only one real option exists, it says so honestly instead of relabeling the same idea three times.

  3. Preview — Each executable variant can be applied, captured, and undone using Ableton's undo system. You hear what each option would actually sound like before committing.

  4. Commit or Reject — Choose one, and the system records it into taste and session continuity. Reject all, and the creative thread stays open for another attempt. No fake outcomes are recorded.

Creative Engines

Six specialized engines handle different aspects of production intelligence:

Engine What it does
Mix Engine Critic-driven mix analysis. Identifies masking, headroom issues, stereo problems. Plans corrective moves with before/after evaluation.
Sound Design Engine Analyzes patches for static timbre, missing modulation, weak transients. Suggests parameter moves and evaluates the result.
Transition Engine Classifies transition types (drop, build, breakdown). Scores transition quality and plans improvements using archetypes.
Composition Engine Analyzes song structure, detects motifs, infers section purposes, scores emotional arcs. Plans arrangement moves.
Performance Engine Safety-constrained suggestions for live performance. Knows which moves are safe during playback and which risk audio dropouts.
Reference Engine Distills principles from reference tracks. Maps those principles to your current session as concrete, actionable moves.

Hook Hunter — Finding What Matters

The Hook Hunter identifies the most salient musical idea in a session — the element listeners would remember. It ranks candidates by rhythmic distinctiveness, melodic contour, and repetition. Then it tracks whether hooks are being developed, neglected, or undermined by arrangement choices.

When the hook is strong but underused, it flags it. When a transition fails to deliver the expected payoff, it diagnoses why.

Session Continuity — The Story of Your Session

Session Continuity tracks what happened, what changed, and what's still unresolved. It maintains creative threads (open questions like "the chorus needs more lift") and records turn resolutions (what you tried, whether you kept it, how it affected identity).

When you return to a project, the session story tells the AI: "Last time, you were working on making the bridge darker. You tried three approaches and kept the filter sweep. The chorus lift thread is still open."

Evaluation Loop — Verify Before Claiming Success

Every creative engine follows the same discipline: measure before, act, measure after, compare. The evaluation system captures session state snapshots, runs the change, captures again, and scores the difference. If the change made things worse — more masking, lost headroom, identity drift — the system flags it before you move on.

This closes the gap between "the AI did something" and "the AI did something that actually helped."



Tools

294 tools across 39 domains. Highlights below — full catalog here.


Core

Domain # What it covers
Transport 12 playback, tempo, time sig, loop, metronome, undo/redo, cue points, diagnostics
Tracks 17 create MIDI/audio/return, delete, duplicate, arm, mute, solo, color, freeze, flatten
Clips 11 create, delete, duplicate, fire, stop, loop, launch mode, warp mode, quantize
Notes 8 add/get/remove/modify MIDI notes, transpose, duplicate, per-note probability
Devices 15 load by name or URI, get/set parameters, batch edit, racks, chains, presets, plugin deep control
Scenes 12 create, delete, duplicate, fire, name, color, tempo, scene matrix
Browser 4 search library, browse tree, load items, filter by category
Mixing 11 volume, pan, sends, routing, meters, return tracks, master, full mix snapshot
Arrangement 19 timeline clips, arrangement notes, arrangement automation, recording, cue points

Perception — 30 tools [M4L]

The M4L Analyzer sits on the master track. UDP 9880 carries spectral data from Max to the server. OSC 9881 sends commands back.

Tip

All 207 core tools work without the analyzer — it adds 30 more and closes the feedback loop.

SPECTRAL ─────── 8-band frequency decomposition (sub → air)
                 true RMS / peak metering
                 Krumhansl-Schmuckler key detection

DEEP LOM ─────── hidden parameters beyond ControlSurface API
                 automation state per parameter
                 recursive device tree (6 levels into nested racks)
                 human-readable display values as shown in Live's UI

SIMPLER ──────── replace / load samples
                 get slice points, crop, reverse
                 warp to N beats, get audio file paths

WARP ─────────── get / add / move / remove markers
                 tempo manipulation at the sample level

Intelligence

Theory — 7 tools

Krumhansl-Schmuckler key detection with 7 mode profiles: major, minor, dorian, phrygian, lydian, mixolydian, locrian.

Roman numeral analysis via scale-degree chord matching on a 1/32 note quantization grid.

Voice leading checks — parallel fifths, parallel octaves, voice crossing, unresolved dominants.

Species counterpoint generation (1st and 2nd species). SATB harmonization with smooth voice leading. Diatonic transposition that preserves scale relationships.

analyze_harmony         suggest_next_chord      detect_theory_issues
identify_scale          harmonize_melody         generate_countermelody
transpose_smart
Harmony — 4 tools

Neo-Riemannian PRL transforms on the Tonnetz.

P  flips the third ─────── Cm ↔ C
L  shifts by semitone ──── C  ↔ Em
R  shifts by whole tone ── C  ↔ Am

All three are involutions — apply twice, return to origin.

BFS through PRL space finds the shortest voice-leading path between any two triads. Cm to E major? That's PLP — the hexatonic pole. Three steps, each moving one voice by a semitone. The Hitchcock chord change.

Chromatic mediants for film-score harmony: chords a major/minor third away sharing 0-1 common tones. Maximum color shift, minimal voice movement.

navigate_tonnetz        find_voice_leading_path
classify_progression    suggest_chromatic_mediants
Generative — 5 tools

Euclidean Rhythm — Bjorklund distributes N pulses across M steps. Bresenham's line algorithm applied to rhythm.

E(3,8)  = tresillo          ×··×··×·
E(5,8)  = cinquillo          ×·××·××·
E(7,16) = Brazilian necklace ×·×·×××·×·×·×××·

Layer multiple patterns at different pitches for polyrhythmic textures.

Tintinnabuli (Arvo Pärt) — for each melody note, find the nearest tone of a specified triad. Two voices, one rule, infinite music.

Phase Shifting (Steve Reich) — identical voices with accumulating timing drift. They start in unison, gradually separate, and eventually realign.

Additive Process (Philip Glass) — melody unfolds note by note. The structure is the composition.

generate_euclidean_rhythm    layer_euclidean_rhythms
generate_tintinnabuli        generate_phase_shift
generate_additive_process
Automation — 8 tools

16 curve types in 4 categories:

BASIC ──────────── linear · exponential · logarithmic · s_curve
                   sine · sawtooth · spike · square · steps

ORGANIC ─────────── perlin · brownian · spring

SHAPE ──────────── bezier · easing
                   (bounce, elastic, back, quad, cubic,
                    quart, quint, expo)

GENERATIVE ─────── euclidean · stochastic

15 built-in recipes:

filter_sweep_up     filter_sweep_down    dub_throw
tape_stop           build_rise           sidechain_pump
fade_in             fade_out             tremolo
auto_pan            stutter              breathing
washout             vinyl_crackle        stereo_narrow

Perception-action loop: analyze_for_automation reads the spectrum and device chain, suggests what to automate, and maps each suggestion to a recipe.

get_clip_automation      set_clip_automation       clear_clip_automation
apply_automation_shape   apply_automation_recipe   get_automation_recipes
generate_automation_curve                          analyze_for_automation
Memory — 8 tools

Persistent technique library across sessions.

Five types: beat_pattern · device_chain · mix_template · preference · browser_pin

Each stores:

  • Identity — name, tags, timestamps
  • Qualities — mood, genre, texture, production notes
  • Payload — raw MIDI, device params, tempo, URIs

Recall by text query matching mood, genre, texture — not just names.

memory_learn     memory_recall     memory_list       memory_get
memory_update    memory_delete     memory_favorite   memory_replay
MIDI I/O — 4 tools

Export session clips to standard .mid files. Import .mid into session clips — auto-creates the clip, tempo-aware timing.

Offline analysis without Ableton: note count, duration, tempo, pitch range, velocity stats, density curve, key estimate.

Piano roll extraction: 2D velocity matrix at configurable resolution (default 1/32 note).

export_clip_midi     import_midi_to_clip
analyze_midi_file    extract_piano_roll
Perception — 4 tools

Offline audio analysis — no M4L required.

analyze_loudness        Integrated LUFS, true peak, LRA, streaming compliance
analyze_spectrum_offline  Spectral centroid, rolloff, flatness, 5-band balance
compare_to_reference    Mix vs reference: loudness + spectral delta
read_audio_metadata     Format, duration, sample rate, tags

Agentic Intelligence — 83 tools

The V2 intelligence layer. These tools don't just execute commands — they analyze, diagnose, plan, evaluate, and learn.

Domain # What it does
Agent OS 8 session kernel, action ledger, capability state, routing, turn budget
Composition 9 section analysis, motif detection, emotional arc, form planning, section transforms
Evaluation 1 before/after evaluation with structured scoring
Mix Engine 6 critic-driven mix analysis, issue detection, move planning, masking reports
Sound Design 5 patch analysis, modulation planning, timbre scoring
Transition Engine 5 transition classification, scoring, archetype-based planning
Reference Engine 5 reference profiling, principle distillation, gap analysis, move mapping
Translation Engine 3 cross-domain translation, issue detection
Performance Engine 5 safety-constrained suggestions, safe move lists, scene handoff planning
Song Brain 4 identity inference, sacred element detection, drift monitoring, section purposes
Hook Hunter 9 hook detection, salience scoring, development strategies, neglect detection, phrase impact
Stuckness Detector 3 momentum analysis, rescue classification, structured rescue workflows
Wonder Mode 3 diagnosis-driven variant generation, taste-aware ranking, session discard
Session Continuity 7 creative threads, turn resolution, taste vs identity ranking, session story
Creative Constraints 5 constraint activation, reference-inspired variants, constrained generation
Preview Studio 5 variant creation, preview rendering, comparison, commit, discard

View all 294 tools →



Install

Easiest: Claude Desktop Extension (1 click)

Download livepilot.mcpb and double-click it. Claude Desktop installs everything automatically. Then:

  1. Open Ableton Live 12
  2. Preferences → Link, Tempo & MIDI → Control Surface → LivePilot
  3. Start chatting

Tip

The Desktop Extension auto-installs the Remote Script and M4L Analyzer on first launch.

Quick: One Command Setup

npx livepilot --setup

This runs the full setup wizard: checks Python, installs the Remote Script, creates the Python environment, copies the M4L Analyzer, and tests the Ableton connection.

Manual: Step by Step

1. Remote Script
npx livepilot --install

Restart Ableton → Preferences → Link, Tempo & MIDI → Control Surface → LivePilot

2. MCP Client

Claude Code:

claude mcp add LivePilot -- npx livepilot
claude plugin add github:dreamrec/LivePilot/plugin

Codex App:

npx livepilot --install-codex-plugin

Claude Desktop (macOS)~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "LivePilot": { "command": "npx", "args": ["livepilot"] }
  }
}

Claude Desktop (Windows):

npm install -g livepilot
livepilot --install

%APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "LivePilot": { "command": "livepilot" }
  }
}

Cursor.cursor/mcp.json:

{
  "mcpServers": {
    "LivePilot": { "command": "npx", "args": ["livepilot"] }
  }
}

VS Code.vscode/mcp.json:

{
  "servers": {
    "LivePilot": { "command": "npx", "args": ["livepilot"] }
  }
}
3. M4L Analyzer (optional)

Drag LivePilot_Analyzer.amxd onto the master track for real-time spectral analysis. The --setup wizard and Desktop Extension do this automatically.

Unlocks 29 additional tools: spectral analysis, key detection, sample manipulation, deep device introspection, plugin parameter mapping.

Important

All core tools work without the analyzer. It adds perception, not dependency.

4. Verify

npx livepilot --status


Plugin

Codex App

npx livepilot --install-codex-plugin

Installs the bundled plugin into ~/plugins/livepilot and registers it in ~/.agents/plugins/marketplace.json.

Claude Code

claude plugin add github:dreamrec/LivePilot/plugin
Command What
/session Full session overview with diagnostics
/beat Guided beat creation
/mix Mixing assistant
/sounddesign Sound design workflow
/memory Technique library management

Producer Agent — autonomous multi-step production. Consults memory for style context, searches the atlas for instruments, creates tracks, programs MIDI, chains effects, reads the spectrum to verify.

Core Skill — operational discipline connecting all three layers. Consult atlas before loading. Read analyzer after mixing. Check memory before creative decisions. Verify every mutation.



CLI

npx livepilot              # Start MCP server (stdio)
npx livepilot --install    # Install Remote Script
npx livepilot --uninstall  # Remove Remote Script
npx livepilot --install-codex-plugin   # Install bundled Codex plugin
npx livepilot --uninstall-codex-plugin # Remove bundled Codex plugin
npx livepilot --status     # Check Ableton connection
npx livepilot --doctor     # Full diagnostic check
npx livepilot --version    # Show version


Compatibility

  • Ableton Live 12 — all editions. Suite required for Max for Live and stock instruments (Drift, Meld, Wavetable).
  • Python 3.9+
  • Node.js 18+
  • macOS / Windows


Development

git clone https://github.com/dreamrec/LivePilot.git
cd LivePilot
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
.venv/bin/pytest tests/ -v

See CONTRIBUTING.md for architecture details, code guidelines, and how to add tools.



Community



MIT — Pilot Studio

Sister projects: TDPilot (TouchDesigner) · ComfyPilot (ComfyUI)

About

AI production system for Ableton Live 12 — 293 tools, 39 domains. Understands song identity, learns your taste, diagnoses when you're stuck, and executes on the main thread.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors