create_send
Create an auxiliary send from a source track to a destination track in REAPER, with optional volume adjustment. Streamline routing for mixing and effects processing.
Instructions
Create an aux send from one track to another.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_track_index | Yes | ||
| dest_track_index | Yes | ||
| volume_db | No |
Implementation Reference
- src/reaper_mcp/mixing_tools.py:71-91 (handler)The core handler function for the 'create_send' tool. It takes source_track_index, dest_track_index, and optional volume_db, creates an audio send between two tracks using RPR.CreateTrackSend, and sets the volume with RPR.SetTrackSendInfo_Value.
def create_send( source_track_index: int, dest_track_index: int, volume_db: float = 0.0 ) -> dict: """Create an aux send from one track to another.""" try: project = get_project() src = project.tracks[source_track_index] dst = project.tracks[dest_track_index] send_idx = RPR.CreateTrackSend(src.id, dst.id) if send_idx < 0: return {"success": False, "error": "Failed to create send"} RPR.SetTrackSendInfo_Value(src.id, 0, send_idx, "D_VOL", _db_to_linear(volume_db)) return { "success": True, "source_track_index": source_track_index, "dest_track_index": dest_track_index, "send_index": send_idx, "volume_db": volume_db, } except Exception as e: return {"success": False, "error": str(e)} - src/reaper_mcp/mixing_tools.py:70-71 (registration)The tool is registered via the @mcp.tool() decorator in the register_tools function inside mixing_tools.py.
@mcp.tool() def create_send( - src/reaper_mcp/mixing_tools.py:11-14 (helper)The _db_to_linear helper function converts decibel values to linear scale, used by create_send when setting the send volume.
def _db_to_linear(db: float) -> float: if db <= -150: return 0.0 return 10 ** (db / 20.0) - src/reaper_mcp/server.py:15-28 (registration)The mixing_tools module (which contains create_send) is imported and its register_tools is called in server.py to register all mixing tools with the MCP server.
from reaper_mcp.mixing_tools import register_tools as _reg_mixing from reaper_mcp.render_tools import register_tools as _reg_render from reaper_mcp.mastering_tools import register_tools as _reg_mastering from reaper_mcp.analysis_tools import register_tools as _reg_analysis _reg_project(mcp) _reg_track(mcp) _reg_midi(mcp) _reg_fx(mcp) _reg_audio(mcp) _reg_mixing(mcp) _reg_render(mcp) _reg_mastering(mcp) _reg_analysis(mcp)