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
| Name | Required | Description | Default |
|---|---|---|---|
| index | No |
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 - MCP_Server/server.py:251-259 (handler)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})