Skip to main content
Glama

create_midi_track

Add a MIDI track to your Ableton Live session at a specified position for composing and arranging music with virtual instruments.

Instructions

Create a new MIDI track in the Ableton session.

Parameters:

  • index: The index to insert the track at (-1 = end of list)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexNo

Implementation Reference

  • The actual implementation of the MIDI track creation logic, interacting with the Ableton Live object model via self._song.
    def _create_midi_track(self, index):
        """Create a new MIDI track at the specified index"""
        try:
            # Create the track
            self._song.create_midi_track(index)
            
            # Get the new track
  • The MCP tool handler function which proxies the command to the Ableton remote script via _run.
    def create_midi_track(ctx: Context, index: int = -1) -> str:
        """
        Create a new MIDI track in the Ableton session.
    
        Parameters:
        - index: The index to insert the track at (-1 = end of list)
        """
        try:
            result = _run("create_midi_track", {"index": index})

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/FreeRiverHouse/ableton-flow'

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