Record a take
score.recordTake a performance from the user into a score: pads they tap, or their microphone, while a range of the score plays in a loop under them. click adds a click on each beat; count_in_beats plays that many clicks before the take starts. A chat app that displays this server's views shows it in the chat: a pad for each pitch in pads, or a record button, and a slider that slows or speeds what they hear while they play (the score's tempo is not changed); anywhere else the url in the result opens the same in a browser. Returns at once a url and a job_id; the take arrives through job.get once they send it: a new score_id and the region_id of a new region on the part over the loop's range, where it sits in beats, seconds and frames, and the delay the device took off each position. Taps come back as that region's notes, each at the exact beat it was played on, nothing moved to a grid: a tap on a later pass of the loop lands that many loop lengths on, one in the count-in before the loop; those are stored outside the region, silent until it is widened, and listed. pads names the pitches that get a pad; velocity is what a tap is stored with where the device measures none (most phones), length_beats each note's length; pads need all three. A microphone take comes back as an audio region and its media_id: the recording as made, its first sample on the beat that was heard; recorded over a speaker it holds the loop too, and the result gives where cross-correlation finds the loop in it beside the device's own placing. One take a session; a session waits 24 hours. Limits of the platform: a loop up to 120 s at the speed played, 2,000 taps, 64 passes, 64 pads, a microphone take up to 600 s, 4 sessions waiting at once, speed 0.25 to 2.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"score_id": "<score_id>",
"part_id": "<part_id>",
"input": "<input>"
},
"name": "score.record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pads | No | Pads, required: the pitches that get a pad, in the order shown, as in notes (score.get lists which pitch plays what on a drum kit or a sliced sampler) | |
| click | No | true plays a click on each beat under them | |
| input | Yes | What they perform with | |
| part_id | Yes | The part the take goes on; its instrument is what the pads play | |
| score_id | Yes | The score to play under them | |
| velocity | No | Pads, required: 1 to 127, the strength a tap is stored with where the device measures none (most phones do not) | |
| from_beats | No | Start of the loop. Default 0 | |
| until_beats | No | End of the loop. Default the score's end; required in a score with no regions | |
| length_beats | No | Pads, required: the length each tapped note is stored with (a tap gives its moment, not how long it lasts) | |
| count_in_beats | No | Clicks played before the take starts, on the beats of the meter leading into the loop (six a bar in 6/8). Default 0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The same pads or record button as a page in a browser, for this take only; it needs no sign-in | |
| hint | Yes | ||
| loop | Yes | ||
| pads | No | Pads: the pads shown, in order | |
| input | Yes | ||
| expiry | Yes | ||
| job_id | Yes | job.get gives the take once they send it | |
| status | Yes | ||
| upload | No | Microphone: the staged upload the view sends the recording to | |
| warnings | Yes | ||
| expires_at | Yes | When the session stops taking a take | |
| native_view | Yes | For apps, nothing for you to act on: an app with its own built-in version of this view (this component, this version) shows that in place of the web view |