Media
Create seamless loops from an audio clip
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/audio-looper' \
-F 'file=@/path/to/audioFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/audio-looper' \
-F 'audioFile=/path/to/file.ext' \
-F 'loopStart=0' \
-F 'loopLength=2' \
-F 'repetitions=4' \
-F 'crossfade=0.1' \
-F 'tempoSync=false' \
-F 'pitchPreserve=true' \
-F 'mix=1' \
-F 'outputFormat=mp3'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/audio-looper| Name | Type | Required | Description |
|---|---|---|---|
| audioFile | fileupload required | Yes | — |
| loopStart | number | No | Starting point for the loop segment within the audio file. |
| loopLength | range | No | Duration of each loop repetition. Shorter values = faster rhythmic patterns. |
| repetitions | range | No | Number of times the loop segment repeats. Higher values = longer loop sequences. |
| crossfade | range |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-audio-looper": {
"name": "audio-looper",
"description": "Create seamless loops from an audio clip",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-looper",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "audio-looper",
"arguments": {
"audioFile": "https://example.com/file.ext",
"loopStart": 0,
"loopLength": 2,
"repetitions": 4,
"crossfade": 0.1,
"tempoSync": false,
"pitchPreserve": true,
"mix": 1,
"outputFormat": "mp3"
}
}
}| No |
| Smooth transition between loop repetitions. Helps eliminate audible seams. |
| tempoSync | checkbox | No | Attempt to match loop length to musical tempo. May affect audio quality. |
| pitchPreserve | checkbox | No | Maintain original pitch when adjusting tempo. When off, tempo changes affect pitch. |
| mix | range | No | Balance between dry (original) and wet (looped) signal. |
| outputFormat | select | No | — |
File result
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]