🎹 Synth Music Generator
Original synth tracks from a JSON score you can edit
About this tool
Synth Music Generator turns a short JSON score into an original electronic track. The score holds the tempo, the number of bars and every layer: bassline, hook, synth pulse, pads and drums (kick, snare, hi-hat, perc) taken from the Synth Instruments library. Each layer has a pattern plus a startIn/stopIn window, so you build an arrangement: two bars of riff, then the kick drops, the hook enters in bar nine. Change the tempo, mute a layer, rewrite the riff and render a stereo WAV or MP3 with peak normalisation and a fade out. Nothing is sampled: it is all synthesised from scratch.
API
POST /api/tools/synth-music-generator/run (multipart/form-data) → JSON with
outputs[].url, a zip link and a config_url.
Every run also hands you the config JSON (button above). It is the request body - POST it straight back to replay the exact generation:
curl -X POST -H 'Content-Type: application/json' \\ --data @genbox-config-synth-music-generator.json \\ /api/tools/synth-music-generator/run
For AI agents · API specs
Technical specs
| Category | music |
|---|---|
| Slug | synth-music-generator |
| Run endpoint | POST /api/tools/synth-music-generator/run |
| Content type | multipart/form-data (with file uploads) or application/json |
| Response | JSON: job, notes, outputs[].url, zip, config_url |
| Rate limit | API: 1 request / minute / IP. Live preview and image renders have their own separate limits, plus a short global cooldown between renders (storm protection). Over a limit you get HTTP 429 + a Retry-After header (local requests are unlimited) |
| Machine-readable spec | GET /api/tools/synth-music-generator |
| OpenAPI 3.1 (Swagger) | this tool (JSON) · all tools |
Request body
Every parameter accepted by the run endpoint, in request-body order.
Fields are optional unless marked required. The same schema is published as
OpenAPI 3.1.
Upload files with multipart/form-data; a JSON body replays a saved config.
| Parameter | Type | Required | Default / allowed values | Description |
|---|---|---|---|---|
preset |
select | no | sustain-and-sweep · neon-drive · sneak-peak · acid-lab · steel-march · night-shift · glass-horizon · four-on-floor · empty |
The preset loads into the JSON box below, and you can edit it freely. |
score_json |
textarea | no | |
Empty means the preset is used. A layer takes 'pattern' (one bar) plus 'startIn'/'stopIn' (bar numbers from 1), so it can be switched on and off anywhere. Tokens: A1 note, - rest, A1~ legato, A1+++ hold the note for extra steps (it can run across bars). Filter automation works for the master and for a single layer: "filter": {"type": "lowpass", "q": 1.1, "points": [[1, 400], [8, 9000]]} - cutoff glides between bars like a groovebox master filter. Types: bass, lead, pulse, pad and drums: kick, snare, hat, perc (with 'instrument'). |
tempo_bpm |
number | no | 0 |
Read from the score when the preset loads. Set 0 to keep whatever the score says, or type your own tempo. |
bars |
number | no | 0 |
Read from the score when the preset loads. 0 keeps the score length. |
format |
select | no | wav · mp3 |
|
filename |
text | no | |
Leave empty to use the title from the score. |
Call it from an agent
GET /api/tools/synth-music-generator- machine-readable spec of this tool (inputs, category, API block).GET /api/tools- list of every tool plus the categories.POST /api/tools/synth-music-generator/run- run it. Acceptsmultipart/form-data(with files) or a rawapplication/jsonbody. Returns JSON withoutputs[].url,zipandconfig_url.- The
config_urlJSON is the request body - POST it back to replay the same generation.
# agent example curl -s https://genbox.eu/api/tools/synth-music-generator/run \\ -H 'Content-Type: application/json' \\ --data @genbox-config-synth-music-generator.json
Rate limits
- Max 1 request per minute per IP on the run endpoint.
- Over the limit you get HTTP 429 with
retry_after(seconds) - wait that long and retry. - Higher limits and API keys are coming soon: an API key will lift the per-IP throttle. Not available yet.