set_tempo
Adjust the tempo and time signature in REAPER projects to control playback speed and rhythmic structure for audio production.
Instructions
Set the project tempo (and optionally time signature).
bpm: beats per minute
time_sig_num / time_sig_denom: e.g. 3, 4 for 3/4 time
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | Yes | ||
| time_sig_num | No | ||
| time_sig_denom | No |
Implementation Reference
- src/reaper_mcp/server.py:618-637 (handler)The MCP tool registration and handler implementation for set_tempo, which calls the ReaperAdapter.set_tempo method.
def set_tempo( bpm: float, time_sig_num: int | None = None, time_sig_denom: int | None = None, ) -> dict[str, Any]: """ Set the project tempo (and optionally time signature). - bpm: beats per minute - time_sig_num / time_sig_denom: e.g. 3, 4 for 3/4 time """ try: return _wrap( adapter.set_tempo( bpm=bpm, time_sig_num=time_sig_num, time_sig_denom=time_sig_denom, ) ) except Exception as exc: return _err(exc) - The ReaperAdapter method set_tempo which communicates with the bridge client to execute the tempo change in REAPER.
def set_tempo( self, bpm: float, time_sig_num: int | None = None, time_sig_denom: int | None = None, ) -> dict[str, Any]: return self._client.call( "set_tempo", bpm=bpm, time_sig_num=time_sig_num, time_sig_denom=time_sig_denom, )