Skip to main content
Glama

render_time_selection

Render a specific time range from a REAPER project to an audio file for playback or export.

Instructions

Render a time range to an audio file using REAPER's render pipeline.

  • output_path: absolute path including extension (e.g. '/tmp/mix.wav'). REAPER uses the current render format; set a .wav extension for PCM output.

  • start_time / end_time: seconds

  • sample_rate: 0 = use project rate

  • channels: 1=mono, 2=stereo Returns output_path and file_size_bytes so you can verify the file was written. After rendering, attach the file to this conversation so the audio can be heard.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_pathYes
start_timeYes
end_timeYes
sample_rateNo
channelsNo

Implementation Reference

  • The MCP tool handler function for `render_time_selection`, decorated with `@mcp.tool()` and utilizing `adapter.render_time_selection`.
    @mcp.tool()
    def render_time_selection(
        output_path: str,
        start_time: float,
        end_time: float,
        sample_rate: int = 0,
        channels: int = 2,
    ) -> dict[str, Any]:
        """
        Render a time range to an audio file using REAPER's render pipeline.
        - output_path: absolute path including extension (e.g. '/tmp/mix.wav').
          REAPER uses the current render format; set a .wav extension for PCM output.
        - start_time / end_time: seconds
        - sample_rate: 0 = use project rate
        - channels: 1=mono, 2=stereo
        Returns output_path and file_size_bytes so you can verify the file was written.
        After rendering, attach the file to this conversation so the audio can be heard.
        """
        try:
            return _wrap(
                adapter.render_time_selection(
                    output_path=output_path,
                    start_time=start_time,
                    end_time=end_time,
  • The adapter method that forwards the `render_time_selection` tool request to the REAPER client via `_client.call`.
    def render_time_selection(
        self,
        output_path: str,
        start_time: float,
        end_time: float,
        sample_rate: int = 0,
        channels: int = 2,
    ) -> dict[str, Any]:
        return self._client.call(
            "render_time_selection",
            output_path=output_path,
            start_time=start_time,
            end_time=end_time,
            sample_rate=sample_rate,
            channels=channels,
        )

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/danielkinahan/ReaMCP'

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