Skip to main content
Glama

set_device_parameter

Adjust device parameters in Ableton Live by specifying track, device, and parameter indices with new values to modify audio effects and instrument settings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_indexYes
device_indexYes
parameter_indexYes
valueYes

Implementation Reference

  • MCP handler function for the 'set_device_parameter' tool. Connects to Ableton and sends the command with provided indices and value, returns success message with details or error.
    @mcp.tool()
    def set_device_parameter(ctx: Context, track_index: int, device_index: int, parameter_index: int, value: float) -> str:
        try:
            ableton = get_ableton_connection()
            result = ableton.send_command("set_device_parameter", {
                "track_index": track_index,
                "device_index": device_index,
                "parameter_index": parameter_index,
                "value": value
            })
            return f"Set device '{result.get('device_name')}' parameter '{result.get('parameter_name')}' to {result.get('parameter_value')} on track '{result.get('track_name')}'"
        except Exception as e:
            logger.error(f"Error setting device parameter: {str(e)}")
            return f"Error setting device parameter: {str(e)}"
  • Lists 'set_device_parameter' as a modifying command type in AbletonConnection.send_command, which applies special handling like extra timeout and delays.
        "set_tempo", "fire_clip", "stop_clip", "set_device_parameter",
        "start_playback", "stop_playback", "load_instrument_or_effect",
        "load_browser_item"
    ]

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