Ableton Studio MCP

v2.6.1
io.github.cedrati/ableton-studio-mcp Checked 2 days ago Published 7 days ago

Compose, arrange, design sounds, mix, master and analyse music in Ableton Live 11 & 12 with AI.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_session_info

Overview of the Live set: tempo, time signature, track and return counts, main track, transport state, song length and loop.

get_remote_script_info

Version and command list of the AbletonStudioMCP control surface running in Live, compared with this server. Use it when tools say Live is too old or not responding (`ableton-studio-mcp doctor` checks the whole setup).

get_session_snapshot

Everything in the set at once: every track with its mixer, devices, Session and Arrangement clips, plus scenes, returns, the main track and locators. Handy to compare the set before and after a series of edits. Parameters: - include_notes: Include the MIDI notes of every clip (default true) - include_params: Include every device parameter value (default true)

ParameterTypeDescription
include_notesboolean
include_paramsboolean

set_tempo

Change the song tempo. Parameters: - tempo: Beats per minute (Live accepts 20–999)

ParameterTypeDescription
tempo *number

start_playback

Start the transport (plays from the playhead).

stop_playback

Stop the transport.

back_to_arrangement

Press Live's "Back to Arrangement": once a track has played a Session clip, it ignores its Arrangement clips (greyed out) until this is done, even after the transport stops. Session clips still playing stop. Use it before playing or listening to the Arrangement after auditioning scenes; listen_to_arrangement does it by default.

switch_to_arrangement_view

Bring Live's Arrangement view to the front.

set_arrangement_time

Move the playhead. Parameters: - time: Song position in beats (0 = start; in 4/4, bar N starts at 4 × (N − 1))

ParameterTypeDescription
time *number

create_locator

Put a named locator in the Arrangement. A locator already at that beat is renamed rather than removed. Playback must be stopped. Parameters: - name: Label shown in Live ("Intro", "Drop", "Break"...) - time: Song position in beats

ParameterTypeDescription
name *string
time *number

delete_locator

Remove a locator, found by position (exact) or by name. When several locators share the name nothing is removed and their positions are listed. Playback must be stopped. Parameters: - name: Label of the locator - time: Its song position in beats (wins over name)

ParameterTypeDescription
namestring
time

get_scenes

List the Session scenes with their index, name and tempo.

create_scene

Add an empty scene. Parameters: - index: Where to insert it (-1 = after the last scene)

ParameterTypeDescription
indexinteger

delete_scene

Remove a scene together with every clip in its row. Ask the user first. Parameters: - scene_index: The scene to remove

ParameterTypeDescription
scene_index *integer

duplicate_scene

Copy a scene and its clips; the copy goes right below it. Parameters: - scene_index: The scene to copy

ParameterTypeDescription
scene_index *integer

fire_scene

Launch every clip in a scene's row. Parameters: - scene_index: The scene to launch

ParameterTypeDescription
scene_index *integer

set_scene_name

Rename a scene. Parameters: - scene_index: The scene to rename - name: Its new name

ParameterTypeDescription
name *string
scene_index *integer

undo

Undo the last change(s) in Live, like Cmd/Ctrl+Z. Each tool call that changed the set is one step; tools that make many changes at once (drum patterns, progressions, arrangements, MIDI imports…) are one step too, as is everything between start_undo_group and end_undo_group. It is Live's own Undo: if the user edited the set meanwhile, their change comes first. Parameters: - steps: How many steps to undo (1–50)

ParameterTypeDescription
stepsinteger

redo

Redo what undo just took back (as long as nothing else changed since). Parameters: - steps: How many steps to redo (1–50)

ParameterTypeDescription
stepsinteger

start_undo_group

Start grouping: every change until end_undo_group becomes a single undo step, so a whole request ("8 bars of techno with a bassline") can be taken back at once. Always call end_undo_group afterwards; a group left open is closed automatically after two minutes. Parameters: - name: What the group is for (shown in Live's log)

ParameterTypeDescription
namestring

end_undo_group

Close the undo group opened with start_undo_group.

get_track_info

One track in detail: name, mixer state, clip slots and device chain. Works for return tracks and the main track too. Parameters: - track_index: The track (for "return", its position among returns; ignored for "master") - track_type: "track" (default), "return" or "master"

ParameterTypeDescription
track_index *integer
track_typestring

create_midi_track

Add a MIDI track (for instruments and drum racks). Parameters: - index: Where to insert it (-1 = after the last track)

ParameterTypeDescription
indexinteger

create_audio_track

Add an audio track (for samples, stems, recordings). Parameters: - index: Where to insert it (-1 = after the last track)

ParameterTypeDescription
indexinteger

set_track_name

Rename a track. Parameters: - track_index: The track to rename - name: Its new name

ParameterTypeDescription
name *string
track_index *integer

delete_track

Remove a track and everything on it. Ask the user first. Tracks after it move up one index. Parameters: - track_index: The track to remove

ParameterTypeDescription
track_index *integer

duplicate_track

Copy a track with its clips and devices; the copy goes right after it. Parameters: - track_index: The track to copy

ParameterTypeDescription
track_index *integer

set_track_volume

Move a track's fader. Parameters: - track_index: The track (ignored for "master") - volume: Fader position 0.0–1.0 (0.85 is 0 dB, 0.0 is silence) - track_type: "track" (default), "return" or "master"

ParameterTypeDescription
track_index *integer
volume *number
track_typestring

set_track_panning

Pan a track. Parameters: - track_index: The track (ignored for "master") - panning: -1.0 hard left, 0.0 centre, 1.0 hard right - track_type: "track" (default), "return" or "master"

ParameterTypeDescription
panning *number
track_index *integer
track_typestring

set_track_send

Set how much of a track goes to a return track. Parameters: - track_index: The sending track - send_index: Which send (0 = A, the first return track) - value: Send amount 0.0–1.0 - track_type: "track" (default) or "return"

ParameterTypeDescription
send_index *integer
track_index *integer
value *number
track_typestring

set_track_mute

Mute or unmute a track. Parameters: - track_index: The track - mute: true mutes, false unmutes - track_type: "track" (default) or "return"

ParameterTypeDescription
mute *boolean
track_index *integer
track_typestring

set_track_solo

Solo or unsolo a track. Parameters: - track_index: The track - solo: true solos, false unsolos - track_type: "track" (default) or "return"

ParameterTypeDescription
solo *boolean
track_index *integer
track_typestring

set_track_arm

Arm a track for recording, or disarm it. Parameters: - track_index: The track - arm: true arms, false disarms

ParameterTypeDescription
arm *boolean
track_index *integer

create_clip

Make an empty MIDI clip in a Session slot (the slot must be empty). Parameters: - track_index: A MIDI track - clip_index: The Session slot (scene row) - length: Clip length in beats (default 4 = one bar in 4/4)

ParameterTypeDescription
clip_index *integer
track_index *integer
lengthnumber

create_audio_clip

Put an audio file into an empty Session slot of an audio track (Live 12.0.5 or newer). Parameters: - track_index: An audio track - clip_index: The Session slot (must be empty) - path: Absolute path of the file (.wav, .aif, .mp3...)

ParameterTypeDescription
clip_index *integer
path *string
track_index *integer

set_clip_name

Rename a Session clip. Parameters: - track_index: The track - clip_index: The Session slot - name: Its new name

ParameterTypeDescription
clip_index *integer
name *string
track_index *integer

set_arrangement_clip_name

Rename a clip in the Arrangement. Parameters: - track_index: The track - clip_index: Position of the clip in get_arrangement_clips (ordered by start time) - name: Its new name

ParameterTypeDescription
clip_index *integer
name *string
track_index *integer

delete_clip

Empty a Session slot (create_clip refuses occupied slots). Parameters: - track_index: The track - clip_index: The Session slot to empty

ParameterTypeDescription
clip_index *integer
track_index *integer

delete_arrangement_clip

Remove a clip from the Arrangement. Later clips on the track move down one index. Parameters: - track_index: The track - clip_index: Position of the clip in get_arrangement_clips

ParameterTypeDescription
clip_index *integer
track_index *integer

fire_clip

Launch a Session clip. Parameters: - track_index: The track - clip_index: The Session slot

ParameterTypeDescription
clip_index *integer
track_index *integer

stop_clip

Stop a playing Session clip. Parameters: - track_index: The track - clip_index: The Session slot

ParameterTypeDescription
clip_index *integer
track_index *integer

get_clip_notes

All the MIDI notes of a clip: pitch, start_time, duration, velocity, mute (plus probability and velocity deviation when Live has them). Times are in beats from the clip start. For an Arrangement clip the reply also has arrangement_start / arrangement_end and start_marker: without looping, a note sounds at arrangement_start + (start_time − start_marker). Parameters: - track_index: The track - clip_index: Session slot, or position in get_arrangement_clips - location: "session" (default) or "arrangement"

ParameterTypeDescription
clip_index *integer
track_index *integer
locationstring

add_notes_to_clip

Add notes to a clip; existing notes stay. To replace notes, clear the clip (clear_notes_from_clip) or a range (remove_notes) first. Parameters: - track_index: The track - clip_index: Session slot, or position in get_arrangement_clips - notes: [{"pitch": 60, "start_time": 0.0, "duration": 1.0, "velocity": 100, "mute": false}, ...] with start_time in beats from the clip start - location: "session" (default) or "arrangement"

ParameterTypeDescription
clip_index *integer
notes *array
track_index *integer
locationstring

clear_notes_from_clip

Remove every note from a clip. Together with get_clip_notes and add_notes_to_clip this gives read → edit → write: read the notes, change the list, clear the clip, add the new list. For part of a clip use remove_notes. Parameters: - track_index: The track - clip_index: Session slot, or position in get_arrangement_clips - location: "session" (default) or "arrangement"

ParameterTypeDescription
clip_index *integer
track_index *integer
locationstring

remove_notes

Remove only the notes starting inside a time window and a pitch range, to rewrite one bar, or one drum lane, then add the new notes. Parameters: - track_index: The track - clip_index: Session slot, or position in get_arrangement_clips - from_time: Window start, in beats from the clip start - time_span: Window length in beats (default: until the clip end) - from_pitch: Lowest pitch of the range (0–127) - pitch_span: How many pitches from from_pitch (128 = all, 1 = just that note) - location: "session" (default) or "arrangement"

ParameterTypeDescription
clip_index *integer
track_index *integer
from_pitchinteger
from_timenumber
locationstring
pitch_spaninteger
time_span

get_arrangement_clips

The clips a track has in the Arrangement, in time order, with their position, length and type. Their order is the clip_index other tools use. Parameters: - track_index: The track

ParameterTypeDescription
track_index *integer

duplicate_to_arrangement

Copy a Session clip into the Arrangement, on the same track. Repeat the call for every place the clip should play, then switch_to_arrangement_view to look at the result. Parameters: - track_index: The track holding the Session clip - clip_index: Its Session slot - destination_time: Song position in beats where the copy starts

ParameterTypeDescription
clip_index *integer
destination_time *number
track_index *integer

get_clip_loop

A clip's loop switch, loop brace and start/end markers, and what actually plays. Beats, except seconds for an unwarped audio clip ("units" says which). Arrangement clips also report their place in the song. Parameters: - track_index: The track - clip_index: Session slot, or position in get_arrangement_clips - location: "session" (default) or "arrangement"

ParameterTypeDescription
clip_index *integer
track_index *integer
locationstring

set_clip_loop

Change a clip's loop and markers; anything left out stays as it is. With looping on, playback starts at start_marker and then repeats the brace (loop_start → loop_end); e.g. keep only the first bar of a 4-bar loop with loop_start=0, loop_length=4. With looping off Live plays loop_start → loop_end once, so markers given for such a clip are written to the brace. The writes are ordered so the start never passes the end; the reply shows what Live applied and lists any value it "adjusted". Switching warping off and on again resets an audio clip's warp markers.…

ParameterTypeDescription
clip_index *integer
track_index *integer
end_marker
locationstring
loop_end
loop_length
loop_start
looping
start_marker

get_clip_warp

An audio clip's warp state: warping, warp mode (and the modes on offer), warp markers (beat_time ↔ sample_time in seconds), transposition, gain, clip length and file duration. Parameters: - track_index: The track - clip_index: Session slot, or position in get_arrangement_clips - location: "session" (default) or "arrangement"

ParameterTypeDescription
clip_index *integer
track_index *integer
locationstring

set_clip_warp

Change an audio clip's warp settings; anything left out stays as it is. Give a loop's own tempo as original_bpm (sample names often carry it, "..._131_...") and it follows the song tempo: warping goes on and the warp markers are rebuilt for that tempo. Parameters: - track_index: An audio track - clip_index: Session slot, or position in get_arrangement_clips - location: "session" (default) or "arrangement" - warping: Warp on or off - warp_mode: "beats" (drums), "tones" (monophonic), "texture", "re_pitch" (vinyl-like), "complex" / "complex_pro" (fu…

ParameterTypeDescription
clip_index *integer
track_index *integer
gain
locationstring
original_bpm
pitch_coarse
pitch_fine
warp_mode
warping

edit_warp_markers

Edit the warp markers of a warped audio clip (Live 11+), in this order: remove, then move, then add. get_clip_warp shows the current ones. Parameters: - track_index: An audio track - clip_index: Session slot, or position in get_arrangement_clips - location: "session" (default) or "arrangement" - add: [{"beat_time": 8.0, "sample_time": 3.66}] pins a moment of the file (seconds) to a beat - move: [{"beat_time": 8.0, "beat_time_distance": 0.25}] shifts that marker by some beats - remove: [8.0, 16.0] beat times of markers to delete

ParameterTypeDescription
clip_index *integer
track_index *integer
add
locationstring
move
remove

set_clip_automation

Draw an automation envelope inside a Session clip; it plays whenever the clip plays. (Live's API does not allow writing envelopes in Arrangement clips or the Arrangement's automation lanes.) Target a device parameter (device_index + parameter_index, see get_device_parameters) or a mixer control (mixer_parameter). Parameters: - track_index: The track holding the clip and the parameter - clip_index: The Session slot - points: [{"time": 0, "value": 0.2}, {"time": 16, "value": 0.9}]: time in beats from the clip start, value in the parameter's own range (…

ParameterTypeDescription
clip_index *integer
points *array
track_index *integer
clear_firstboolean
device_indexinteger
interpolationstring
locationstring
mixer_parameterstring
parameter_indexinteger
resolutionnumber

get_clip_automation

Read a clip's envelope for one parameter, sampled every `resolution` beats; has_envelope=false when that parameter isn't automated in the clip. Parameters: - track_index, clip_index, location: as for set_clip_automation - device_index, parameter_index, mixer_parameter: as for set_clip_automation - resolution: Sampling step in beats (default 1)

ParameterTypeDescription
clip_index *integer
track_index *integer
device_indexinteger
locationstring
mixer_parameterstring
parameter_indexinteger
resolutionnumber

get_device_parameters

Every parameter of a device with its index, value, range and the value as Live displays it (dB, Hz, %, mode names). Big devices (Operator, Wavetable, Roar...) have dozens or hundreds of parameters: narrow the reply with `names` or `query`, or ask for `brief`. Parameters: - track_index: The track (return index for "return", ignored for "master") - device_index: Position of the device in the chain - track_type: "track" (default), "return" or "master" - names: Only these parameters: exact names or parts of names, as set_device_parameters accepts them ([…

ParameterTypeDescription
device_index *integer
track_index *integer
briefboolean
namesarray
querystring
track_typestring

set_device_parameter

Change one device parameter. Look up indexes and ranges with get_device_parameters; the reply shows the old and new values as Live displays them. Parameters: - track_index: The track (return index for "return", ignored for "master") - device_index: Position of the device in the chain - parameter_index: The parameter's index - value: New value, in the parameter's own range - track_type: "track" (default), "return" or "master"

ParameterTypeDescription
device_index *integer
parameter_index *integer
track_index *integer
value *number
track_typestring

delete_device

Remove a device from a track, a return track or the main track (one undo step). The reply lists the chain left, whose indexes have moved. Parameters: - track_index: The track (return index for "return", ignored for "master") - device_index: Position of the device in the chain (see get_track_info) - track_type: "track" (default), "return" or "master"

ParameterTypeDescription
device_index *integer
track_index *integer
track_typestring

move_device

Move a device to another position in the same chain, e.g. a limiter to the very end of the main track (Live 11+). Order matters: a compressor before or after a saturator, an EQ before a reverb... Parameters: - track_index: The track (return index for "return", ignored for "master") - device_index: The device's current position - new_index: Where it should end up (0 = first; last = number of devices − 1) - track_type: "track" (default), "return" or "master"

ParameterTypeDescription
device_index *integer
new_index *integer
track_index *integer
track_typestring

device_inventory

Everything loaded in the set (every device on every track, return track and the main track, racks with their chains) with what each one is and what it is for (native devices from the Live 12 manual, Max for Live devices, known plug-in families such as Arturia emulations), plus, with installed_plugins=true, the VST/VST3/AU plug-ins installed, by vendor. Parameters: - installed_plugins: Also list the installed plug-ins

ParameterTypeDescription
installed_pluginsboolean

device_knowledge

What a device does: a native Live device (from the Live 12 manual: kind, category, purpose, key parameters, electronic/techno uses, sidechain, tip), a bundled Max for Live device, or a known plug-in (e.g. "Acid V", "Comp FET-76", "Cthulhu"). Without `name`, the catalogue of native devices, optionally filtered by kind (instrument, audio_effect, midi_effect, max_for_live). Also says what Live 12's MIDI Tools are and that the API can't drive them. Parameters: - name: Device or plug-in name - kind: Filter for the catalogue

ParameterTypeDescription
kindstring
namestring

get_device_info

One device's identity (Live's real device name even when a preset renamed it, kind, latency) and its specific API: sidechain routing and options (Compressor), plug-in presets, Simpler sample/slicing state, rack chains and variations. Parameters: - track_index / device_index: The device - track_type: "track", "return" or "master"

ParameterTypeDescription
device_index *integer
track_index *integer
track_typestring

set_device_sidechain

Feed a Compressor's sidechain from another track (e.g. duck the bass or pads with the kick) and switch its sidechain on. `source` is the name of the track as Live lists it (see get_device_info: sidechain.available_types), `channel` e.g. "Post FX" / "Pre FX". Live's API exposes sidechain routing on the Compressor; other devices with a sidechain (Gate, Glue, Auto Filter...) are routed in the interface. Parameters: - track_index / device_index: The Compressor - source: Sidechain source track name (exact, or a unique part of it) - channel: Source tap (opti…

ParameterTypeDescription
device_index *integer
source *string
track_index *integer
channelstring
enableboolean
track_typestring

plugin_presets

A VST/AU plug-in's preset list (as the plug-in exposes it to Live), or select one by index or name (exact, else first containing the text). Parameters: - track_index / device_index: The plug-in - preset_index / preset_name: Preset to load (omit both to list) - track_type: "track", "return" or "master"

ParameterTypeDescription
device_index *integer
track_index *integer
preset_indexinteger
preset_namestring
track_typestring

simpler_sample

Load a sample into a Simpler and set it up: playback mode (classic, one_shot, slicing), slicing by transient / beat / region / manual with sensitivity, beat division or region count (e.g. chop a break into 16 slices playable from a Drum Rack-like MIDI layout), voices, warp the sample as N beats, crop, reverse. Parameters: - track_index / device_index: The Simpler - file_path: Absolute path of an audio file to load (optional) - playback_mode: classic | one_shot | slicing - slicing_style: transient | beat | region | manual - slicing_sensitivity: 0-1…

ParameterTypeDescription
device_index *integer
track_index *integer
cropboolean
file_pathstring
playback_modestring
reverseboolean
slicing_beat_divisioninteger
slicing_region_countinteger
slicing_sensitivitynumber
slicing_stylestring
voicesinteger
warp_as_beatsinteger

chop_sample

Chop a sample and play the chops: loads it in a Simpler on the track (adds one if needed), slices it, warps it to the song from the tempo in its name ("..._127_..."), transposes it to the song's key from the key in its name ("Fmin", "D#m"), and writes a chop pattern in an empty Session slot. mode: "slices" (16 slices, played in 16ths) or "micro" (64 grains of a few tens of ms, played in 32nds, gate-short: micro-sampling). style: "hook" (the same grain at the same place every bar, off-beat accents, ghost hits with a chance; the most groovy), "rearrange" (th…

ParameterTypeDescription
file_path *string
track_index *integer
barsinteger
clip_indexinteger
densitynumber
keystring
modestring
seedinteger
slicesinteger
stylestring
warp_as_beatsinteger

rack_variation

A rack's macro variations (Live 11+): list them with the current macro values, recall one, store the current macros as a new variation, or randomize the macros (great for happy accidents, then store the result). Parameters: - track_index / device_index: The rack - action: list | recall | store | randomize - index: Variation to recall - track_type: "track", "return" or "master"

ParameterTypeDescription
device_index *integer
track_index *integer
actionstring
indexinteger
track_typestring

set_drum_choke

Put Drum Rack pads in a choke group so they cut each other. The classic: closed and open hi-hat together (e.g. notes [42, 46], group 1). Group 0 removes the choke. Parameters: - track_index: Track with the Drum Rack - notes: Pad MIDI notes (see get_drum_map) - group: Choke group 1-16, or 0 for none

ParameterTypeDescription
notes *array
track_index *integer
groupinteger

get_browser_tree

The folders of Live's browser, as an indented outline with the path of each folder (use the paths with get_browser_items_at_path). Parameters: - category_type: "all", or one root: instruments, sounds, drums, audio_effects, midi_effects, plugins, user_library, packs, samples, max_for_live, current_project

ParameterTypeDescription
category_typestring

get_browser_items_at_path

What a browser folder contains, with each item's URI and whether it can be loaded (load it with load_instrument_or_effect). Parameters: - path: "root/folder/subfolder", e.g. "drums/Drum Rack" or "plugins/Arturia". Roots: instruments, sounds, drums, audio_effects, midi_effects, plugins, user_library, packs, samples, max_for_live, current_project

ParameterTypeDescription
path *string

load_instrument_or_effect

Load a browser item (instrument, effect, preset, plug-in, User Library file) onto a track, by its URI. Effects can also go on a return track (track_type="return", track_index 0 = A) or on the main track (track_type="master"). Find URIs with get_browser_items_at_path. Parameters: - track_index: The track (return index for "return", ignored for "master") - uri: The item's URI, e.g. "query:Synths#Operator" - track_type: "track" (default), "return" or "master"

ParameterTypeDescription
track_index *integer
uri *string
track_typestring

load_drum_kit

Load a Drum Rack, then the first loadable kit found in a browser folder. Parameters: - track_index: A MIDI track - rack_uri: URI of the Drum Rack to load first - kit_path: Browser folder holding the kits, e.g. "drums/Drum Hits"

ParameterTypeDescription
kit_path *string
rack_uri *string
track_index *integer

get_track_routing

Read a track's input/output routing and monitoring, with the options Live offers for each (names as shown in Live's I/O section, in Live's language). Parameters: - track_index: Index of the track (return index for "return", ignored for "master") - track_type: "track" (default), "return" or "master" (these two only have an output)

ParameterTypeDescription
track_index *integer
track_typestring

set_track_routing

Set a track's input/output routing and monitoring. Arguments left out are untouched. Names are matched against the options get_track_routing lists: exact (case-insensitive) first, else a unique substring. Examples: - Layer one MIDI part on several instruments: on each extra MIDI track, input_type="<name of the source MIDI track>", monitoring="in". - Record the main output (resampling): on an audio track, input_type="Resampling" (French Live: "Rééchantillonnage"). - Send a track to a return or another track: output_type="<track name>". Parameters…

ParameterTypeDescription
track_index *integer
input_channelstring
input_typestring
monitoringstring
output_channelstring
output_typestring
track_typestring

record_arrangement

Record the armed tracks into the Arrangement between two song positions (in beats): moves the playhead, turns Arrangement Record on, plays, and stops at end_time. Arm tracks first (set_track_arm). Parameters: - start_time: Song position to start at (beats) - end_time: Song position to stop at (beats) - wait: Block until the recording ends (default) or return at once (then poll get_recording_status) - max_wait_seconds: Safety limit when waiting; recording is stopped past it

ParameterTypeDescription
end_time *number
start_time *number
max_wait_secondsnumber
waitboolean

get_recording_status

State of the current or last record_arrangement run (finished, reason, stop position), plus Arrangement Record, transport and armed tracks.

stop_arrangement_recording

Stop a running record_arrangement now (turns Arrangement Record off and stops playback).

get_audio_clip_file

Path of the audio file behind an audio clip (for example a take just recorded with record_arrangement), with its length and sample rate. Parameters: - track_index: The track holding the clip - clip_index: Arrangement clip index (get_arrangement_clips) or Session slot - location: "arrangement" (default) or "session"

ParameterTypeDescription
clip_index *integer
track_index *integer
locationstring

analyze_audio_file

Measure a WAV or AIFF file: peak and RMS levels (dBFS), clipping, crest factor, loudness over time (one value per segment), leading/trailing silence, stereo correlation and a coarse spectral balance (low < 250 Hz, mid, high > 4 kHz), with warnings. Use it to check a mix or a recorded take. Parameters: - file_path: Absolute path of the audio file - segment_seconds: Length of each loudness segment (default 1 s)

ParameterTypeDescription
file_path *string
segment_secondsnumber

get_track_meters

Live's output meters right now for every track, return track and the main track (0.0-1.0 on Live's meter scale, as in the mixer). Meaningful while the song plays; listen_to_arrangement samples them for you.

analyze_mix

Mastering-engineer report on a WAV/AIFF mix: loudness per ITU-R BS.1770 / EBU R128 (integrated, short-term and momentary max, loudness range), true peak (4x oversampled), PLR, crest factor, long-term 1/3-octave spectrum with tilt and per-region deviation from a balanced -4.5 dB/oct reference (mud, harshness, sibilance, air, sub), narrow resonances (with note names), stereo correlation and width overall and per band (low-end mono), DC. Returns findings ranked problème / attention / ok with concrete fixes against the delivery target, plus a spectrogram image (lo…

ParameterTypeDescription
file_path *string
spectrogramboolean
targetstring

listen_to_arrangement

"Listen" to the song like a mastering engineer: record the main output between two song positions (beats) onto a temporary resampling audio track, sample every track's meter during the take, then analyze it. Tracks left playing Session clips are first sent back to the Arrangement, and the report flags any track whose meter disagrees with its Arrangement clips (silent where it has clips, playing where it has none), so a measurement of the wrong material doesn't go unnoticed. report="mix" (default) returns the full analyze_mix report (LUFS, true peak, PLR, t…

ParameterTypeDescription
end_time *number
start_time *number
back_to_arrangementboolean
keep_audioboolean
keep_trackboolean
max_wait_secondsnumber
reportstring
segment_secondsnumber
targetstring

import_midi_file

Import the notes of a Standard MIDI File (.mid) into a clip. Without track_index, only describes the file (tracks, note counts, channels, length) so you can pick midi_track / channel first. Session: an empty slot gets a new clip as long as the notes (rounded up to a 4-beat bar) or clip_length; an existing clip receives the notes (after clearing it when replace=True). Arrangement: the clip must exist (index from get_arrangement_clips). Times are in beats; the file's tempo is ignored. Parameters: - file_path: Absolute path of the .mid file - track_i…

ParameterTypeDescription
file_path *string
channelinteger
clip_indexinteger
clip_lengthnumber
locationstring
midi_trackinteger
replaceboolean
track_indexinteger
transposeinteger

music_scales

Scales and modes knowledge. Without arguments, lists all ~50 scales (church modes, harmonic/melodic minor families, pentatonics, blues, bebop, symmetric, Japanese, gamelan, flamenco...) with their character and typical styles; `query` filters (e.g. "flamenco", "jazz", "sombre"). With `root` and `scale`, details one scale: notes spelled in the key, degrees, characteristic note, character, styles, diatonic seventh chords with roman numerals and functions, the other modes with the same notes, and Live 12's scale name (for set_song_scale). Parameters: - qu…

ParameterTypeDescription
querystring
rootstring
scalestring

music_styles

Style sheets for composing or re-arranging: without `style`, the list; with it, what makes the style: tempo, metre, scales/modes, harmonic language, typical progressions (roman numerals for write_progression), rhythm/groove and swing amount, bass, melody, arrangement, accompaniment patterns, and which Live devices/tools help. Styles: baroque, classical_romantic, jazz, bossa_nova, blues, gospel_neo_soul, funk, pop, rock, house, techno, trance, drum_and_bass, hip_hop_boom_bap, lofi, trap, rnb, reggae, reggaeton, afrobeat, flamenco, film_epic, ambient, synthwave…

ParameterTypeDescription
stylestring

music_chord_ideas

Reharmonisation ideas for a chord (tritone substitution, ii-V preparation, relative chords, extensions, borrowed chords in the key), with the reason for each, plus the chord's notes. Parameters: - chord: Chord symbol, e.g. "G7", "Fmaj7", "Am", "Bø", "Ebmaj7/G" - key_root: Key tonic, to suggest borrowed chords (optional)

ParameterTypeDescription
chord *string
key_rootstring

analyze_clip_music

Musical analysis of a MIDI clip: key and mode candidates (with coverage and outside notes; relative modes are told apart by the harmony, e.g. a V7 pointing to its tonic), chords per segment with roman numerals, out-of-scale notes, range, rhythm (density, offbeat share, polyphony) and melodic motion of the top line. Also reports Live's song scale. Parameters: - track_index / clip_index: The clip (Session slot or Arrangement index) - location: "session" (default) or "arrangement" - segment_beats: Chord detection window (2 = two chords per bar by default,…

ParameterTypeDescription
clip_index *integer
track_index *integer
key_rootstring
key_scalestring
locationstring
segment_beatsnumber
vocabularystring

transform_clip

Re-arrange a MIDI clip with a chain of music-theory operations, applied in order. Writes the result back into the clip, or into an empty Session slot `target_clip_index` (keeps the original: safer for trying ideas). Each operation is {"op": name, ...arguments}: - transpose: semitones - transpose_diatonic: steps, root, scale (moves along the scale) - change_mode: root, from_scale, to_scale[, to_root] (C major -> C dorian...) - snap_to_scale: root, scale[, direction nearest|up|down] - invert: axis ("C4" or 60)[, root, scale for a diatonic mirror] - retro…

ParameterTypeDescription
clip_index *integer
operations *array
track_index *integer
locationstring
target_clip_indexinteger

write_progression

Write a chord progression into an empty Session slot (clip created to fit) or an existing clip, voiced with smooth voice leading and played with an accompaniment pattern. Give `numerals` (roman numerals in the key: "ii7", "V7", "Imaj7", "bVII", "iv", "V/V", "N6", "viiø7"...) or a `style` (its typical progression number `progression_index`, its scale and pattern are used unless given). Patterns: block, pulse, pulse8, offbeat, arp8, arp16, alberti, bossa, waltz, ballad, stabs. Parameters: - track_index / clip_index: Target MIDI track and Session slot…

ParameterTypeDescription
clip_index *integer
root *string
track_index *integer
bassboolean
beats_per_chordnumber
highstring
lowstring
numeralsarray
patternstring
progression_indexinteger
repeatinteger
scalestring
stylestring
voicesinteger

get_song_scale

Live 12's song scale: root, scale name, intervals and the Scale Mode switch (which highlights the scale in the piano roll and drives devices set to "Use Current Scale", e.g. the Scale, Arpeggiator and Chord devices).

set_song_scale

Set Live 12's song scale so the piano roll shows it and scale-aware devices follow it. `scale` accepts this server's names (dorian, hijaz, harmonic minor...) and maps them to Live's name when Live has the scale. Parameters: - root: Tonic ("C", "Eb", "F#") - scale: Scale name - scale_mode: Turn Live's Scale Mode on/off

ParameterTypeDescription
rootstring
scalestring
scale_modeboolean

drum_patterns

Drum pattern library for electronic music. Without arguments, lists the styles (techno_four, techno_rolling, techno_hypnotic, minimal_techno, dub_techno, hard_techno, acid_techno, detroit_techno, house_classic, deep_house, tech_house, afro_house, uk_garage, breakbeat, electro, drum_and_bass, dubstep, trap, ebm). With `style`, its grids per role, tempo, swing, production notes and the available fills. With `euclid_hits`, returns a Euclidean rhythm grid, e.g. 3/8 = tresillo. Grid language (one string per role, 16 steps = one bar of 16ths): x hit · X accent…

ParameterTypeDescription
euclid_hitsinteger
euclid_rotateinteger
euclid_stepsinteger
stylestring

get_drum_map

The Drum Rack on a track: every filled pad (MIDI note, name, devices) and the role each one plays (kick, clap, closed_hat, open_hat, rim, ride, perc...), read from the pad names, as used by write_drum_pattern. Parameters: - track_index: Track holding the Drum Rack

ParameterTypeDescription
track_index *integer

write_drum_pattern

Program drums into a Session slot (clip created to fit) on a track with a Drum Rack. Roles are mapped to the kit's pads by their names (a similar free pad stands in for a missing role; missing ones are reported); without a Drum Rack, General MIDI notes are used. Start from a library `style` and/or give `layers`: {role: grid} or {role: {"euclid": [hits, steps, rotate]}}; layers override or extend the style. Roles: kick, clap, snare, rim, closed_hat, open_hat, pedal_hat, ride, crash, tom_low, tom_mid, tom_high, perc, shaker, tambourine, conga, bongo, clave,…

ParameterTypeDescription
clip_index *integer
track_index *integer
barsinteger
fillstring
fill_everyinteger
humanizenumber
layersobject
replaceboolean
seedinteger
steps_per_barinteger
stylestring
swing_pctnumber
variationnumber

quasiperiodic_rhythm

Write a quasi-periodic rhythm into a Session slot: a pattern that seems to loop but never repeats exactly, with hits spread as evenly as possible (the infinite relatives of Euclidean rhythms) and dynamics that never repeat either. Structured humanization rather than random variation. Hits fall where {n * theta + phase} < density (n = step). With the default density (= theta) the pattern is a Sturmian word: gaps of only two sizes. Each hit's velocity follows {n * theta + phase} between velocity_low and velocity_high. With `accent_role`, a second voice (e.g. rim…

ParameterTypeDescription
clip_index *integer
track_index *integer
accent_near_periodinteger
accent_rolestring
barsinteger
densitynumber
length_stepsinteger
phasenumber
replaceboolean
rolestring
rotationstring
steps_per_barinteger
velocity_highinteger
velocity_lowinteger

get_groove_pool

Live's Groove Pool: the grooves loaded in the set (name, base, timing, random, velocity and quantization amounts) and the global Groove amount. Grooves live in the browser under Packs (e.g. get_browser_items_at_path("packs/Core Library/Grooves")) and in the User Library; apply one with set_clip_groove. A groove only acts when the global amount is above 0 (set_groove_params global_amount).

set_clip_groove

Apply a Groove Pool groove to a clip (Live's own swing/groove engine, non-destructive), or remove it with groove_index omitted. Parameters: - track_index / clip_index: The clip - groove_index: Index from get_groove_pool (omit to remove the groove) - location: "session" (default) or "arrangement"

ParameterTypeDescription
clip_index *integer
track_index *integer
groove_indexinteger
locationstring

set_groove_params

Adjust a groove in the Groove Pool (amounts in %, as in Live) and/or the global Groove amount (0-1.3, i.e. 0-130 %). Parameters: - groove_index: Groove to change (from get_groove_pool) - timing_amount / random_amount / velocity_amount / quantization_amount: New amounts - global_amount: Global Groove amount

ParameterTypeDescription
global_amountnumber
groove_indexinteger
quantization_amountnumber
random_amountnumber
timing_amountnumber
velocity_amountnumber

arrangement_templates

Arrangement templates for electronic music and the automation curve shapes. Without `template`: the list (techno_dj, techno_64, minimal, house) and the shapes. With it: its sections (name, bars, energy 0-1, roles that play, production tip). Parameters: - template: Template name (optional)

ParameterTypeDescription
templatestring

write_clip_evolution

Make a Session clip evolve over many bars: optionally extend it to `bars` (a MIDI loop is tiled, e.g. 4 -> 64 bars), then write one automation envelope per lane with a musical curve. Copied to the Arrangement (e.g. by build_arrangement), the envelopes become the track's automation there. Each lane: {"mixer_parameter": "volume" | "panning" | "send:N"} or {"device_index": d, "parameter_index": p}, plus "start", "end" (in the parameter's units, see get_device_parameters: min/max/display), "shape" (linear, exp, log, s_curve, swell, sine, triangle, steps, random_wa…

ParameterTypeDescription
clip_index *integer
lanes *array
track_index *integer
barsinteger
resolutionnumber

automation_gesture

Draw a producer's automation move in a Session clip, aimed at the right parameter automatically: - delay_throw: the delay send jumps up on the last beat(s) of each phrase - reverb_swell: the reverb send rises and falls back over the clip - filter_rise / filter_fall: the track's filter opens (build-up) or closes - drop_cut: silence on the last beat(s), the breath before a drop - stutter: volume gated in 16ths on the last beat(s) - fade_in / fade_out: volume from / to silence The send gestures find the return named like a delay (delay, echo) or a reverb…

ParameterTypeDescription
clip_index *integer
gesture *string
track_index *integer
lownumber
peaknumber
phrase_barsinteger
protectstring
restnumber
tail_beatsnumber
targetstring

build_arrangement

Build the Arrangement from Session clips, section by section, like a producer laying out a track: each section plays the clips of the tracks whose role is active there, tiled to fill it, with a named locator at its start. Clip envelopes (see write_clip_evolution) come along as track automation, so a filter build or a reverb swell plays in the Arrangement. Use a `template` (techno_dj, techno_64, minimal, house; see arrangement_templates) or your own `sections`: [{"name", "bars", "roles": [...]} or {"name", "bars", "play": {"track_index": slot}}]. Track role…

ParameterTypeDescription
clearboolean
default_slotinteger
dry_runboolean
locatorsboolean
section_slotsobject
sectionsarray
start_barinteger
templatestring
track_rolesobject

arrangement_overview

A map of the Arrangement: for every track, one character per block of `block_bars` bars ('#' = a clip plays, '.' = silent), so the structure, the entries and exits of each element and the phrasing are visible at a glance. Parameters: - block_bars: Bars per character (default 8)

ParameterTypeDescription
block_barsinteger

find_presets

Search the presets of Live's native instruments, effects and racks: the Core Library, installed packs and the User Library (several thousand files). Every word of the query must appear in the preset's name, device, category or library. Read one with read_preset. Parameters: - query: Words to look for, e.g. "dark bass", "plate", "909" - device: Only this device's presets, e.g. "Drift", "Operator", "Wavetable", "Reverb" - kind: instrument, audio_effect, midi_effect, rack, drum_rack - library: "Core Library", "User Library", or part of a pack name - limit…

ParameterTypeDescription
devicestring
kindstring
librarystring
limitinteger
querystring

read_preset

What a native device or rack preset does, read from its file: the device, the parameters that make the sound (compared with the device's default preset, in the device's own units: Hz, seconds, dB, percent or 0–1), samples used, and for racks the named macros and every chain with its devices. Use it to learn from factory sounds before designing new ones. Parameters: - preset: A preset name ("Star Dust Strings") or the path of a .adv / .adg file - detail: "changes" (default: what differs from the default device) or "full"

ParameterTypeDescription
preset *string
detailstring

load_preset

Load a native device or rack preset onto a track by its name or file path (find names with find_presets). Effects can go on a return track or the main track. Parameters: - track_index: The track (return index for "return", ignored for "master") - preset: Preset name ("Star Dust Strings") or .adv / .adg path - track_type: "track" (default), "return" or "master"

ParameterTypeDescription
preset *string
track_index *integer
track_typestring

set_device_parameters

Set several parameters of a device at once, by name, with musical values: "800 Hz", "2.5 kHz", "5 ms", "1.2 s", "-6 dB", "30 %", "+7 st", a named setting ("Bell", "Alg. 11", "Sine") or a number in the parameter's own range. Names come from get_device_parameters ("LP Freq", "Attack"); a unique part of a name is enough. Every value is checked before anything changes, and the reply shows each parameter as Live displays it. Parameters: - track_index: The track (return index for "return", ignored for "master") - device_index: The device's position in the chain…

ParameterTypeDescription
device_index *integer
track_index *integer
values *object
track_typestring

save_sound

Save the current settings of a native device as a named sound, to load it again later on any track with load_sound. (Live's API can't write real presets; to keep one as a Live preset too, click the device's Save Preset button in Live.) Racks aren't supported yet: save the devices inside them. Parameters: - track_index / device_index: The device to save - name: The sound's name ("Rolling Sub", "Dub Chord Stab") - description: What it is for, how it sounds - overwrite: Replace a sound saved earlier under the same name - track_type: "track" (default), "re…

ParameterTypeDescription
device_index *integer
name *string
track_index *integer
descriptionstring
overwriteboolean
track_typestring

list_sounds

The sounds saved with save_sound, optionally filtered. Parameters: - query: Words to look for in the name, device or description - device: Only sounds for this device ("Drift", "Operator")

ParameterTypeDescription
devicestring
querystring

load_sound

Put a sound saved with save_sound on a track: loads its device, then restores every parameter. One undo takes it all back. Parameters: - track_index: The track (return index for "return", ignored for "master") - name: The sound's name (see list_sounds) - track_type: "track" (default), "return" or "master"

ParameterTypeDescription
name *string
track_index *integer
track_typestring

sound_recipes

Starting points for classic electronic sounds on Live's native synths (sub bass, acid bass, reese, dub chord stab, pluck, warm pad, supersaw, FM bell): device, parameter values, how to play it, what to listen for. Without a name, lists them. Parameters: - name: A recipe ("acid_bass") to see in full

ParameterTypeDescription
namestring

design_sound

Build a sound from a recipe on a MIDI track: loads the recipe's synth and sets its parameters, then applies your tweaks (musical values, as for set_device_parameters). One undo step. Then audition_sound it, adjust with set_device_parameters, and save_sound when it's right. Parameters: - track_index: A MIDI track (the synth is added to its chain) - recipe: A recipe name (see sound_recipes) - tweaks: Extra values on top of the recipe, e.g. {"LP Freq": "500 Hz"}

ParameterTypeDescription
recipe *string
track_index *integer
tweaks

audition_sound

Listen to a track's sound: plays a short test phrase on it (a bass line, chords or an arpeggio) in an empty stretch after the end of the song, records and analyses it like listen_to_arrangement (loudness, spectrum, spectrogram), then removes everything it added. Use the report to adjust the sound with set_device_parameters, and audition again. Parameters: - track_index: The MIDI track to audition - role: "bass", "chords" or "melody": picks the phrase and its register - root: MIDI note of the phrase's root (default C1 for bass, C3 chords, C4 melody) - b…

ParameterTypeDescription
track_index *integer
barsinteger
reportstring
rolestring
root