set_tempo
Adjust the playback speed of your Ableton Live session by setting a specific tempo value in beats per minute (BPM).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tempo | Yes |
Implementation Reference
- MCP_Server/server.py:340-348 (handler)The handler function for the 'set_tempo' MCP tool. It retrieves the Ableton connection, sends the 'set_tempo' command with the specified tempo, and returns a confirmation message or error.@mcp.tool() def set_tempo(ctx: Context, tempo: float) -> str: try: ableton = get_ableton_connection() ableton.send_command("set_tempo", {"tempo": tempo}) return f"Set tempo to {tempo} BPM" except Exception as e: logger.error(f"Error setting tempo: {str(e)}") return f"Error setting tempo: {str(e)}"
- MCP_Server/server.py:104-110 (helper)Helper logic in send_command method that identifies 'set_tempo' as a modifying command, applying extra delays and timeout for reliable execution.is_modifying_command = command_type in [ "create_midi_track", "create_audio_track", "set_track_name", "create_clip", "add_notes_to_clip", "set_clip_name", "set_tempo", "fire_clip", "stop_clip", "set_device_parameter", "start_playback", "stop_playback", "load_instrument_or_effect", "load_browser_item" ]