Generate a drum loop (audio + MIDI)
doseedo_generate_loopA DRUM LOOP from a generator — doseedo_generators lists them (house, deep_house, tech_house, afro_house, jackin_house… the list grows without a release). The groove is WRITTEN for the seed (kick, clap, hats, shaker, percussion voices, ghost notes, fills at the phrase ends, 16th swing) and PLAYED through the generator's kit of recorded one-shots (drawn by the seed, the kick tuned to key): the same generator + seed + bars + bpm is the same loop, another seed another groove and another kit. Returns the loop as audio (48 kHz WAV, exactly bars long, its tails wrapped round the loop point so it repeats seamlessly), its MIDI (midi_url, GM drums) and, for a short loop, the notes (notes[] — edit them and play them back with doseedo_render_midi {instrument:"electronic", drum_genre:"<the generator's genre>", notes}, or put them on a session track with set_midi_notes). MIDI only, free and instant: doseedo_generators {generator, bars, bpm, seed}. Wrong tool for drums you wrote (doseedo_render_midi) or a described sound (doseedo_generate_sound). Async: job_id → doseedo_wait_task (a few seconds) → files[0] (pre-signed: curl -OJ , no auth header, valid 24 h). Cancel: a render that has not reached the GPU yet is stopped and its credits refunded; one already rendering finishes on the GPU (its credits are spent), the job ends as canceled and the output is discarded.
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": {
"generator": "<generator>"
},
"name": "doseedo_generate_loop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Tempo, 40–240. Default: the generator's own (house 124, deep 120, tech 127…). | |
| key | No | The track's key, e.g. "F minor" — the kick is drawn near its root or fifth and tuned the rest of the way. | |
| bars | No | Length in bars of 4/4, 1–64. Default: the generator's (8). | |
| name | No | Optional: a name for this job's files, e.g. "rainy-loop-3". Every file it returns downloads as <name>_<part>.<ext> (rainy-loop-3_Celesta.wav, rainy-loop-3_rough-mix.wav; one take: rainy-loop-3.wav), so the user can find them. Give each job its own name (a second take: "rainy-loop-3b"). Default: doseedo-<last 6 characters of the job id>. | |
| seed | No | The groove and the kit: the same seed is the same loop; omit for a new one each call (the result names it). | |
| fills | No | false = no fills at the phrase ends (a loop that sits under a verse). Default true. | |
| swing | No | 16th swing: 0.5 straight … 0.66 triplet. Default: the generator's. | |
| generator | Yes | REQUIRED. A generator id from doseedo_generators ("deep_house", "tech_house"…) or genre words that name one ("afro house"). An unknown one is refused with the closest ids before anything is spent. | |
| percussion | No | How many percussion voices (0–4). Default: the generator draws it. | |
| idempotency_key | No | Optional. Any unique string for THIS request (e.g. a UUID). Re-sending the same call with the same key after a timeout returns the same job instead of starting a second one. |