Skip to main content
Glama

create_midi_track

Add a MIDI track to your Ableton Live session for composing melodies, chords, and drum patterns. Specify the track position to organize your musical arrangement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexNo

Implementation Reference

  • The main handler function for the MCP tool 'create_midi_track'. It connects to the Ableton remote script and sends the create_midi_track command with the specified index (default -1). Returns a success message with the new track name or error.
    @mcp.tool() def create_midi_track(ctx: Context, index: int = -1) -> str: try: ableton = get_ableton_connection() result = ableton.send_command("create_midi_track", {"index": index}) return f"Created new MIDI track: {result.get('name', 'unknown')}" except Exception as e: logger.error(f"Error creating MIDI track: {str(e)}") return f"Error creating MIDI track: {str(e)}"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Milesy1/MCP-Ableton-API'

If you have feedback or need assistance with the MCP directory API, please join our Discord server