Skip to main content
Glama

duplicate_clip_region

Copy and transpose MIDI notes within a specified region to a new location in Ableton Live. Select pitch range and adjust semitone transposition for precise editing.

Instructions

Duplicates the notes in the specified region to the destination_time. Only notes of the specified pitch are duplicated if pitch is not -1. If the transposition_amount is not 0, the notes in the region will be transposed by the transposition_amount of semitones. Raises an error on audio clips..

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clip_idYes
destination_timeYes
pitchYes
region_endYes
region_startYes
transposition_amountYes

Implementation Reference

  • The handler function for the 'duplicate_clip_region' tool. It retrieves the clip using getClipById and calls the clip.duplicateRegion method with the provided parameters, then returns a success result.
    async duplicateRegion({ clip_id, region_start, region_end, destination_time, pitch, transposition_amount }: { clip_id: string, region_start: number, region_end: number, destination_time: number, pitch: number, transposition_amount: number }) { const clip = getClipById(clip_id) await clip.duplicateRegion( region_start, region_end, destination_time, pitch, transposition_amount ) return Result.ok() }
  • The @tool decorator that registers the 'duplicate_clip_region' tool, including its name, description, and Zod input schema for parameters.
    @tool({ name: 'duplicate_clip_region', description: `Duplicates the notes in the specified region to the destination_time. Only notes of the specified pitch are duplicated if pitch is not -1. If the transposition_amount is not 0, the notes in the region will be transposed by the transposition_amount of semitones. Raises an error on audio clips..`, paramsSchema: { clip_id: z.string(), region_start: z.number(), region_end: z.number(), destination_time: z.number(), pitch: z.number(), transposition_amount: z.number(), } })
  • The Zod schema defining the input parameters for the 'duplicate_clip_region' tool.
    paramsSchema: { clip_id: z.string(), region_start: z.number(), region_end: z.number(), destination_time: z.number(), pitch: z.number(), transposition_amount: z.number(), }

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/xiaolaa2/ableton-copilot-mcp'

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