home music blog tools about research selected projects
2026-11-05 Blog
← back to blog

Building a generative composition tool for Ableton Live

 

An update and some ideas on a new experimental composition project I’m looking into.

I recently installed an MCP server for Ableton Live, which essentially allows an AI model, through an application like Codex, to control parts of the software. (Explore the MCP server I used here). MCP stands for Model Context Protocol. The server offers ‘tools’ that the model can use to carry out particular actions — for example, setting the tempo or adding MIDI notes to a clip. (A full list of available tools for the current MCP server is down the bottom of this post.) Which actions are possible depends on the tools provided by the server.

So I could ask Codex to “make an experimental glitch track in Ableton Live using sine waves, white noise and clicks. I want it to be around four minutes long”, and the model can work out a plan for a piece, then use the available tools to carry it out. This might happen through a series of tool calls, checking the results as it goes, or through a script that coordinates a bigger set of actions. In Live, I would then see tracks and clips created, sounds loaded, tempo changed, notes inputted, etc., in realtime.

What I did last night, though, was spend some time expanding the toolkit with some more tools.

This is really exciting and interesting to me, as it’s a step towards a very deep sense of generative work: building a generative composition engine which could, if prompted and set up in a certain way, create some really interesting and complex pieces of music in Live, (and, super importantly) meaning that I could then go in and adjust everything. If it uses a simple kick drum instrument, I can rebuild that instrument but keep the same MIDI notes, and retain or adjust the effects and automation around it.

So what I’ve set out to do is design the front-end system for providing a ‘prompt’. This would technically be text, structured data, or probably some combination of these, gathered through the manipulation of various parameters. These could be arranged across a timeline to give the piece structural shape, alongside other instructions such as tempo and maybe key.

Some other ideas I had were that I could restrict the tool to only use sounds from specific folders for each ‘voice’. I could give it a collection of sounds to work with. This points to the idea that the tool would mostly be working at the stage of composition I think of as ‘arranging materials’. It wouldn’t be doing too much processing or polishing. It could be doing some generating of materials; but, as I said, I could provide these in a folder and restrict it to those.

I could get it to generate x number of ‘versions’ of an idea, which could become the basis of an album. But I’m more interested in setting up ‘projects’, where the tool uses the same settings for various parameters, like which folders it is being restricted to, but then has different settings for others, and different timeline trajectories.

This would more properly result in an album made using the same restricted set of materials. What I am then doing, essentially, is getting the tool to create various structural variations on the same set of parameters and materials.

I could get it to produce eight pieces, either in the same Live Set or separate ones, which I then go in and mould some more to turn them into a cohesive record. If it’s using the same materials, there will already be some common ground in how the pieces sound. So a single ‘Project’ could have various ‘Pieces’ under it. A project would be an album, and pieces would be individual works on that album.

I think the tool would not be a super general tool. Rather, it would be more of a case of creating the tool specifically for a particular type of sound and work. In other words, I don’t want the tool to be able to create experimental works, or 80s disco, or rock, or classical… I want it to be pretty specialised at creating a particular type of experimental work, through the way it’s set up and organised and restricted.

What’s interesting is that the tool is essentially an uber-generative-art tool. Alongside any randomness I explicitly program into it, variation can come from the AI model’s process of generating a response and deciding how to carry out the task.

To illustrate this simply: if two people prompted ChatGPT with the same question, they wouldn’t necessarily get the same response. Even with the same prompt and context, responses can vary, depending on the model and how it’s configured. There is a fuzziness to the response mechanism. In this case, that fuzziness could play a role in how the musical materials are arranged.

So, it’s worth thinking about how to really implement these things. My understanding is that the flow would look something like this:

  1. Set a bunch of parameters and timeline graphs.
  2. Convert these into a prompt and structured instructions.
  3. Hand these to the AI model.
  4. The model figures out how to turn the instructions into an actionable workflow using the tools available through the MCP server.
  5. Codex carries out the model’s tool calls, individually or coordinated through a script, with results fed back so the model can adjust as needed.
  6. The piece takes shape in Ableton Live, and the resulting Live Set can be saved.
  7. I go in and tweak the project by replacing sounds, editing parts, etc.

That’s the system I’m imagining. The next things I need to think about are:

  1. What to include as parameters in the interface.
  2. What tools need to be provided to the model through the server that aren’t currently available.

Both questions come back to something I’ve been thinking about for a while: how to model the thinking that goes on during composition. Which decisions can I describe through parameters and timeline shapes? Which ones would I want the model to make? And which ones do I want to leave for myself when I go back into the piece?

This is all a really fun experiment. I think one of the biggest things I’ll be thinking about is the experience of working with the system: I suspect certain approaches to a tool like this would result in a lack of enthusiasm in creating the pieces. In other words, you could definitely build this tool in a way that sucks the life and joy out of the creative process! That’s obviously something to avoid. So a big question I’ll have is how to retain that joy and accomplishment I get when I work deeply with a piece, or any system that creates musical results.

Thanks for reading 🙂


Here is a list of available tools in the MCP server currently:

 

Area Tool What it does
Session get_session_info Read information about the current Live session.
Session get_remote_script_info Check the Live connection script’s version and supported capabilities.
Session get_session_snapshot Capture a structured snapshot of session state.
Session get_session_controls Read transport, loop, time signature, cue points and available session controls.
Session configure_session Set tempo, time signature, loop region, metronome, swing, groove and launch quantisation.
Tracks get_track_info Read information about a selected track.
Tracks create_midi_track Create a MIDI track.
Tracks create_audio_track Create an audio track.
Tracks set_track_name Rename a track.
Tracks edit_track Duplicate a regular track or delete a regular or return track, with a name check.
Tracks create_return_track Create a return track for shared processing.
Clips create_clip Create a MIDI clip in Session View.
Clips create_audio_clip Import an audio file into a Session View clip slot.
Clips set_clip_name Rename a Session clip.
Clips delete_clip Delete a Session clip.
Clips fire_clip Launch a Session clip.
Clips stop_clip Stop a Session clip.
Clips get_clip_settings Read loop, marker, launch, legato, mute and colour settings.
Clips set_clip_settings Change supported clip settings.
Clips duplicate_session_clip Copy a clip and its envelopes into an empty slot on the same track.
MIDI get_clip_notes Read the notes in a MIDI clip.
MIDI add_notes_to_clip Add notes to a MIDI clip.
MIDI clear_notes_from_clip Remove all notes from a MIDI clip.
MIDI get_midi_notes_extended Read note IDs, timing, velocity, probability, velocity variation and release velocity.
MIDI add_midi_notes_extended Add notes with extended expressive properties.
MIDI modify_midi_notes Edit individual notes by ID while preserving their associated expression events.
MIDI remove_midi_notes Remove selected notes by ID.
MIDI transform_midi_notes Transform or humanise existing notes while preserving their IDs and expression events.
MIDI generate_rhythm Generate seeded Euclidean and polymetric note patterns with rotation, ratchets, swing and variation; write them using the MIDI tools.
MIDI capture_recent_midi Capture a recent played MIDI performance when Live reports that capture is available.
Scenes get_scenes Read scene names, settings and occupied clip slots.
Scenes create_scene Create a Session View scene.
Scenes set_scene_settings Change a scene’s name, colour, tempo and time signature settings.
Scenes fire_scene Request a scene launch.
Scenes delete_scene Delete a scene after checking its name.
Browser get_browser_tree Inspect the hierarchy of Live’s browser categories.
Browser get_browser_items_at_path List browser items at a selected path.
Browser load_instrument_or_effect Load an instrument or effect onto a track using its browser URI.
Browser load_drum_kit Load a Drum Rack and a selected kit.
Devices get_device_parameters Read a device’s exposed parameter names, current values and ranges.
Devices set_device_parameter Change an exposed device parameter.
Devices get_device_tree Inspect device chains, including devices nested inside racks.
Devices get_nested_device_parameters Read exposed parameters and ranges for a top-level or nested device.
Devices set_device_parameters_batch Change up to 256 top-level or nested device parameters, with validation and readback.
Devices move_track_device Move or reorder a top-level device and report its resulting position.
Devices delete_track_device Delete a top-level device after checking its name.
Mixer get_track_mixer Read volume, pan, sends and supported switches for tracks, returns or the master.
Mixer set_track_mixer Change volume, pan, sends and supported track switches.
Mixer set_chain_mixer Change a rack chain’s volume, pan, activation and supported sends.
Routing get_track_routing Read current input/output routing and available routing choices.
Routing set_track_routing Select an available input or output route.
Automation write_clip_automation Write persistent Session clip automation for a top-level device parameter.
Automation get_clip_automation Read a Session clip’s device automation at selected times.
Automation clear_clip_automation Clear a selected device parameter’s Session clip automation.
Automation write_target_automation Write persistent Session clip automation for supported nested-device or mixer targets, including sends.
Automation read_target_automation Read automation for a supported nested-device or mixer target at selected times.
Automation clear_target_automation Clear a selected nested-device or mixer target’s Session clip automation.
Arrangement get_arrangement_clips List a track’s Arrangement clips.
Arrangement duplicate_to_arrangement Copy a Session clip into the Arrangement timeline.
Arrangement commit_arrangement Copy up to 256 Session clips and their envelopes into Arrangement in one request.
Arrangement set_arrangement_clip_name Rename an Arrangement clip.
Arrangement delete_arrangement_clip Delete an Arrangement clip after checking its name and start position.
Arrangement create_locator Create a named cue point in the Arrangement.
Arrangement set_arrangement_time Move the Arrangement playhead.
Arrangement switch_to_arrangement_view Open Arrangement View.
Arrangement restore_arrangement_playback Return tracks to Arrangement playback and optionally re-enable overridden automation.
Audio get_audio_clip_info Read audio clip gain, pitch, timing and warp information.
Audio configure_audio_clip Change supported gain, pitch, warp, marker and loop settings.
Audio get_warp_markers Read an audio clip’s warp markers.
Audio add_audio_warp_marker Add a warp marker with a beat position and source-audio time, when supported.
Audio move_audio_warp_marker Move an editable warp marker to a new beat position.
Audio remove_audio_warp_marker Remove an editable warp marker.
Audio synthesize_audio Generate a stereo WAV from sine, noise, chirp and click events for subsequent import into Live.
Transport set_tempo Set the session tempo.
Transport start_playback Start playback.
Transport stop_playback Stop playback.
Transport stop_all_session_clips Stop all Session clips immediately or with launch quantisation.
Monitoring get_track_meters Read normalised input/output meters; this is not audio capture or LUFS measurement.
History session_history Undo or redo Live’s most recent global operation, which can include manual edits.
Optional dataset set_dataset_consent Record an explicit user opt-in or opt-out for the upstream training dataset.
Optional dataset submit_intent Log creative intent when dataset recording is enabled.
Optional dataset rate_last_action Record a rating for a recorded action or result.
Optional dataset prefer_candidate Record a preference between two candidate actions or auditions.
Optional dataset reject_last_action Mark the most recent recorded action as rejected.
Optional dataset record_audition Log a sample, preset or browser audition and its preference information.
← back to blog