Song JSON v1
Let an AI write the song. Then edit it like any project: Song JSON is a plain format ChatGPT, Claude or any model can write — tracks of notes, chord loops, drum patterns, sections and mix — that the SoundGen Studio imports as editable tracks.
How to use it
- Copy the instructions (or download the file) and paste them into ChatGPT, Claude, Gemini or any chat AI.
- Add what you want: "a 90 BPM lo-fi track in F minor, 32 bars, with a mellow Rhodes and a vinyl texture".
- Paste the AI's answer into the Studio: Export ▾ → Song JSON (from an AI)… (or drop the .json on the timeline).
- Check the preview — fix or ask the AI about anything it lists — and import.
- Edit it like any project: every note, chord, drum hit, level and effect is a normal track.
Importing never costs credits. Small mistakes — a code fence around the JSON, trailing commas, a comment, a note name like "H4" — don't stop the import; the preview lists each one with where it is in the file. To revise a song with an AI, use Export ▾ → Song JSON (for an AI) in the Studio, hand the file back with the instructions, and import the new version.
Instructions for your AI
One document with everything an AI needs: the format, every field, the instrument, drum, effect and chord names SoundGen accepts, how timing works, four complete examples and the mistakes to avoid. Paste it, or upload the file, before you ask for a song.
Or a short prompt, for a quick sketch:
Write a SoundGen Song JSON v1 file for: <describe the song: genre, mood, tempo, instruments, length>
Reply with only the JSON (one object, no commentary). I will import it into the SoundGen Studio and edit it there.
SoundGen Song JSON v1 — rules
- Output ONE JSON object, no comments: {"format":"soundgen-song","version":1,"title":…,"bpm":…,"key":"A minor","timeSignature":"4/4","sections":[…],"tracks":[…],"master":{…}}.
- sections (optional): [{"name":"Intro","bars":4},{"name":"Verse","bars":8},…] in order; they become markers.
- Track types: "instrument" (notes), "chords" (a chord loop), "drums" (step patterns), "audio" (a part to generate later).
- instrument: piano, epiano, organ, keys, bass, guitar, pluck, strings, brass, flute, bell, pad, lead, accordion. Drums: "kit":"acoustic" or "techno".
- Notes: {"pitch":"C4","start":0,"duration":1,"velocity":0.8}. C4 = middle C. start and duration are in beats (quarter notes) from the start of the part; durations may also be "1/8", "1/16", "1/4.".
- Chords: "chords":["Am","F","C","G"] = one chord per bar ("C G" splits a bar); "style": block | pulse | stabs | arp | broken | strum | oompah | root-bass | octave-bass | walking-bass. The loop repeats to fill.
- Drums: "pattern":{"kick":"x---x---x---x---","snare":"----x-------x---","hat":"x-x-x-x-x-x-x-x-"}: 16 steps per 4/4 bar, x = hit, X = accent, g = ghost, - = rest. Drum names: kick, snare, rim, clap, hat, openHat, pedalHat, ride, crash, lowTom, midTom, highTom, shaker, tambourine, cowbell, conga, bongo.
- Arrange with named "parts" and "clips": "parts":{"verse":{"bars":4,"notes":[…]}}, "clips":[{"part":"verse","at":"Verse"},{"part":"verse","bar":17,"repeat":2}]. "at" places a clip in every section with that name; a clip's "bars" repeats its part to fill. Without clips, a track's own notes play once from bar 1, and a pattern or chord loop fills the song.
- Mix: "volume" in dB (-6), "pan" -1…1, "effects":[{"type":"reverb","mix":0.3,"decay":2.5},{"type":"delay","time":"1/8.","feedback":0.3,"mix":0.2},{"type":"eq","lowCut":100,"high":2},{"type":"compressor","threshold":-18,"ratio":3},"chorus","distortion","saturation","filter","phaser","limiter"]. "master":{"volume":-1,"effects":[…]}.
- Audio you cannot write as notes (vocals, textures): {"type":"audio","name":"Vocal","generate":{"prompt":"…","seconds":30},"bar":9} — the user generates it in the Studio at the normal price.
- Keep every note inside its part; keep melodies in a singable range; give every track a name.
Schema: https://soundgen.ai/schemas/soundgen-song-v1.jsonField reference
| Field | Type | Values | Default | Notes |
|---|---|---|---|---|
| format | string | "soundgen-song" | Always this value. | |
| version | number | 1 | Always 1. | |
| title | string | "Untitled song" | Up to 120 characters; becomes the project name. | |
| artist | string | Optional. | ||
| genre | string | Optional, e.g. "lo-fi hip hop". | ||
| description | string | Optional; kept in the project notes. | ||
| bpm | number | 20–400 | 120 | Tempo in quarter-note beats per minute. |
| key | string | Tonic + mode: "A minor", "F# major", "Bb major", "D dorian". | ||
| timeSignature | string | "4/4", "3/4", "6/8", "7/8", "12/8" … | "4/4" | A bar is numerator × 4/denominator beats: 4/4 = 4 beats, 3/4 = 3, 6/8 = 3, 7/8 = 3.5. |
| bars | number | Song length in bars (max 1024). Default: the sections' total, else the last clip. | ||
| sections | array | The form, in order (max 128). Each becomes a marker; clips can be placed "at" a section. | ||
| sections[].name | string | Required. Repeats are fine ("Verse", "Chorus", "Verse", "Chorus"). | ||
| sections[].bars | number | Required. Length in bars. | ||
| sections[].bar | number | Optional start bar (1 = first); default: right after the previous section. | ||
| tracks | array | Required, 1–32 tracks. | ||
| tracks[].name | string | Shown on the track header. | ||
| tracks[].type | string | "instrument", "chords", "drums", "audio" | instrument = notes you write; chords = a chord loop played in a style; drums = step patterns; audio = a part to generate later. | |
| tracks[].instrument | string | see Instruments | "keys" | instrument and chords tracks. A description also works ("warm analog bass"). |
| tracks[].kit | string | "acoustic", "techno" | "acoustic" | drums tracks. "techno" is the drum-machine kit (808/909-style). |
| tracks[].volume | number (dB) | -60 … +6 | -1.9 | In decibels: 0 = full, -6 = half as loud. Not 0–1. |
| tracks[].pan | number | -1 … 1 | 0 | -1 hard left, 1 hard right. Not a percentage. |
| tracks[].mute | boolean | false | ||
| tracks[].solo | boolean | false | ||
| tracks[].color | string | Hex like "#60A5FA"; default: the next track colour. | ||
| tracks[].effects | array | Up to 16, in signal order. See Effects. | ||
| tracks[].comment | string | Free text kept on the track. | ||
| tracks[].notes | array | instrument (and drums) tracks: notes played once from "bar" when the track has no clips. | ||
| tracks[].pattern | object | drums tracks: a step pattern; with no clips it repeats to the end of the song. | ||
| tracks[].chords | array | string | chords tracks: a chord loop; with no clips it repeats to the end of the song. | ||
| tracks[].style | string | see Chord styles | "block" (bass: "root-bass") | chords tracks: how the chords are played. |
| tracks[].register | string | "low", "mid", "high" | "mid" (bass: "low") | chords tracks: where the voicings sit. |
| tracks[].velocity | number | 0–1 | 0.66 | chords tracks: how hard the chords are played. |
| tracks[].bar | number | 1 | Where the track-level notes/pattern/chords (or an audio part) start. | |
| tracks[].bars | number | How long the track-level content plays (patterns and chord loops repeat to fill it). | ||
| tracks[].transpose | integer | -48 … 48 | Semitones, for the track-level notes or chords. | |
| tracks[].parts | object | Named parts: { "verse": { "bars": 4, "notes": [ … ] } } (max 64). Placed by clips. | ||
| tracks[].parts.<name>.bars | number | Length of the part. Default: rounded up to whole bars from its last note. | ||
| tracks[].parts.<name>.notes / pattern / chords / style / register | The part's content, as on a track. | |||
| tracks[].clips | array | Where parts play (max 256 a track). | ||
| tracks[].clips[].part | string | A name from this track's "parts". | ||
| tracks[].clips[].bar | number | "bar:beat" | Start: 1 = first bar, "5:3" = bar 5 beat 3. Default: right after the previous clip. | ||
| tracks[].clips[].at | string | string[] | A section name: one clip in EVERY section with that name, as long as the section. "Chorus 2" = only the second Chorus. | ||
| tracks[].clips[].bars | number | How long the clip plays; the part repeats to fill it. | ||
| tracks[].clips[].repeat | integer | Or: play the part this many times back to back. | ||
| tracks[].clips[].transpose | integer | -48 … 48 | Semitones (not drums). | |
| tracks[].clips[].name | string | Clip name; default: the part name. | ||
| tracks[].clips[].notes / pattern / chords / style | A one-off clip can carry its own content instead of "part". | |||
| tracks[].clips[].url / sound / generation / seconds / offset | audio tracks only — see Audio. | |||
| notes[].pitch | string | integer | A note name ("C4" = middle C = 60, "F#3", "Bb2") or MIDI number 0–127. In drums tracks: a drum name ("kick"). An array plays several at once. | ||
| notes[].start | number (beats) | 0 | Quarter-note beats from the START OF THE PART (or clip), not the song. 0 = its first beat. | |
| notes[].duration | number (beats) | note value | 1 (drums: 0.25) | Beats, or "1/16", "1/8", "1/4", "1/2", "1/1"; "1/8." dotted; "1/8t" triplet. | |
| notes[].velocity | number | 0–1 | 0.8 | 0.3 soft, 0.8 normal, 1 accent. |
| notes[].chord | string | Instead of pitch: a chord symbol, voiced for you ("Am7"). | ||
| pattern.<drum> | string | One step per character: x hit, X accent, g ghost, - rest. Spaces are ignored (use them between bars). | ||
| pattern.steps | integer | 16 in 4/4 (4 per beat) | Steps per bar (max 64). 12 in 3/4 and 6/8. | |
| tracks[].generate | object | audio tracks: { "prompt": "…", "seconds": 30, "kind": "music" | "sfx", "instrumental": true } (or "bars" instead of seconds). The user generates it later; importing never charges. | ||
| tracks[].generate.prompt | string | Required: what to generate, described as sound (genre, instruments, mood) — no artist names. Up to 500 characters. | ||
| tracks[].generate.seconds | number | 1–300 | 30 | Length; or "bars" instead. |
| tracks[].generate.bars | number | Length in bars at the song's tempo. | ||
| tracks[].generate.kind | string | "music", "sfx" | "music" | sfx = a sound effect. |
| tracks[].generate.instrumental | boolean | true | false for a part with vocals. | |
| tracks[].sound / generation / url | string | audio tracks: one of the user's own SoundGen sounds or generations by id, or a SoundGen storage link (what an export writes). Never another website. | ||
| master | object | { "volume": -1, "effects": [ … ], "ceiling": -1, "loudness": -14 } | ||
| master.volume | number (dB) | -60 … +12 | Master fader. | |
| master.effects | array | Same effects as tracks; e.g. glue then limiter. | ||
| master.ceiling | number (dBTP) | -6 … 0 | -1 | Master limiter ceiling. |
| master.loudness | number (LUFS) | -30 … -5 | A target for mastering, kept in the project notes. | |
| notes (top level) | string | string[] | Free text. Exports list here what the file leaves out — keep it when you revise an export. |
Effects
- reverb — mix 0–1, decay (s), size 0–1, predelay (ms), damping 0–1, style room|hall|plate|spring, lowCut/highCut (Hz). Types "hall", "plate", "room", "spring" also work.
- delay — time: a note value synced to the tempo ("1/8", "1/8.", "1/4t") or "350ms"; feedback 0–0.95; mix 0–1; pingPong true|false.
- eq — lowCut (Hz), low (dB shelf, at lowFreq=100), mid (dB bell, at midFreq=1000, q), high (dB shelf, at highFreq=10000), highCut (Hz).
- compressor — threshold (dB), ratio (4 or "4:1"), attack (ms), release (ms), makeup (dB), knee (dB).
- glue — A bus compressor (master or drums): same knobs as compressor.
- distortion — drive 0–1, tone 0–1, output 0–1, style soft|hard|fuzz|foldback. "overdrive" and "fuzz" also work.
- saturation — drive 0–1, mix 0–1, style tape|tube. "tape" and "tube" also work.
- chorus — rate (Hz), depth 0–1, feedback 0–0.9, mix 0–1.
- phaser — rate (Hz), depth 0–1, feedback 0–0.9, mix 0–1.
- flanger — rate (Hz), depth 0–1, feedback 0–0.95, mix 0–1.
- filter — cutoff (Hz), resonance, mode lowpass|highpass|bandpass|notch. "lowpass"/"highpass" as the type also work.
- limiter — ceiling (dB), threshold (dB), release (ms).
- bitcrusher — bits 1–16, rate (Hz). "lofi" also works.
- tremolo — rate (Hz), depth 0–1.
Common mistakes
- Output only the JSON object — no explanation, no comments, no trailing commas. (A code fence around it is fine.)
- volume is in dB (negative numbers like -6), not 0–1. pan is -1…1, not a percentage.
- Note start counts from the start of its PART (or clip), not the song. A part that is 4 bars long in 4/4 holds starts 0–15.99.
- Keep every note inside its part: a 4-bar part in 4/4 is beats 0–16, so its last note must START before 16 (start + duration ≤ 16). Give each part an explicit "bars".
- There is no sidechain, vocoder-on-a-voice or plugin effect to write here: use only the effects listed. Ducking and sidechains are set up in the Studio afterwards.
- Use B or Bb, never H. Every pitch needs an octave: "C4", not "C". Middle C is C4.
- Drum strings use only x, X, g and - (one character per step, 16 per 4/4 bar). Use the drum names listed below.
- Use a "chords" track for harmony instead of writing every chord note by hand.
- Place repeated material with parts + clips ("at": "Chorus"), not by copying notes.
- Only use instrument names, effect types and chord styles from the lists below.
- Vocals and sounds that are not notes: an "audio" track with "generate". Do not invent sound ids or URLs.
- When revising an exported file, keep its "notes" list and only change what was asked.
Limits: 32 tracks, 1024 bars, 8,192 notes a clip, 2 MB. The full lists of instruments, drum names and chord spellings are in the instructions.
Examples
Night Drive — Synthwave with sections, parts and effects
{
"format": "soundgen-song",
"version": 1,
"title": "Night Drive",
"genre": "synthwave",
"bpm": 100,
"key": "A minor",
"timeSignature": "4/4",
"sections": [
{
"name": "Intro",
"bars": 4
},
{
"name": "Verse",
"bars": 8
},
{
"name": "Chorus",
"bars": 8
},
{
"name": "Outro",
"bars": 4
}
],
"tracks": [
{
"name": "Drums",
"type": "drums",
"kit": "techno",
"volume": -4,
"parts": {
"groove": {
"pattern": {
"kick": "x---x---x---x---",
"snare": "----x-------x---",
"hat": "--x---x---x---x-"
}
},
"drive": {
"pattern": {
"kick": "x---x---x---x---",
"clap": "----X-------X---",
"hat": "x-x-x-x-x-x-x-x-",
"openHat": "--------------x-"
}
}
},
"clips": [
{
"part": "groove",
"at": "Verse"
},
{
"part": "drive",
"at": "Chorus"
}
]
},
{
"name": "Bass",
"type": "chords",
"instrument": "bass",
"style": "octave-bass",
"volume": -6,
"chords": [
"Am",
"F",
"C",
"G"
],
"clips": [
{
"at": [
"Verse",
"Chorus"
]
}
]
},
{
"name": "Pad",
"type": "chords",
"instrument": "pad",
"style": "block",
"volume": -12,
"chords": [
"Am",
"F",
"C",
"G"
],
"effects": [
{
"type": "reverb",
"style": "hall",
"mix": 0.35,
"decay": 4
}
]
},
{
"name": "Lead",
"type": "instrument",
"instrument": "lead",
"volume": -8,
"pan": 0.2,
"effects": [
{
"type": "delay",
"time": "1/8.",
"feedback": 0.35,
"mix": 0.25
}
],
"parts": {
"hook": {
"bars": 4,
"notes": [
{
"pitch": "E5",
"start": 0,
"duration": 1.5
},
{
"pitch": "D5",
"start": 1.5,
"duration": 0.5
},
{
"pitch": "C5",
"start": 2,
"duration": 2
},
{
"pitch": "C5",
"start": 4,
"duration": 1
},
{
"pitch": "D5",
"start": 5,
"duration": 1
},
{
"pitch": "E5",
"start": 6,
"duration": 2
},
{
"pitch": "G5",
"start": 8,
"duration": 1.5,
"velocity": 0.9
},
{
"pitch": "E5",
"start": 9.5,
"duration": 0.5
},
{
"pitch": "D5",
"start": 10,
"duration": 2
},
{
"pitch": "C5",
"start": 12,
"duration": 1
},
{
"pitch": "B4",
"start": 13,
"duration": 1
},
{
"pitch": "A4",
"start": 14,
"duration": 2
}
]
}
},
"clips": [
{
"part": "hook",
"at": "Chorus",
"repeat": 2
}
]
}
],
"master": {
"volume": -1,
"effects": [
{
"type": "glue",
"threshold": -18,
"ratio": 2
},
{
"type": "limiter",
"ceiling": -1
}
]
}
}Sunday Waltz — A 3/4 waltz: chord style + melody
{
"format": "soundgen-song",
"version": 1,
"title": "Sunday Waltz",
"bpm": 132,
"key": "F major",
"timeSignature": "3/4",
"sections": [
{
"name": "A",
"bars": 8
},
{
"name": "B",
"bars": 8
}
],
"tracks": [
{
"name": "Accompaniment",
"type": "chords",
"instrument": "piano",
"style": "oompah",
"chords": [
"F",
"F",
"C7",
"C7",
"C7",
"C7",
"F",
"F",
"Bb",
"Bb",
"F",
"F",
"G7",
"C7",
"F",
"F"
],
"volume": -8
},
{
"name": "Melody",
"type": "instrument",
"instrument": "flute",
"volume": -4,
"notes": [
{
"pitch": "A4",
"start": 0,
"duration": 2
},
{
"pitch": "C5",
"start": 2,
"duration": 1
},
{
"pitch": "F5",
"start": 3,
"duration": 3
},
{
"pitch": "E5",
"start": 6,
"duration": 2
},
{
"pitch": "D5",
"start": 8,
"duration": 1
},
{
"pitch": "C5",
"start": 9,
"duration": 3
},
{
"pitch": "G4",
"start": 12,
"duration": 2
},
{
"pitch": "A4",
"start": 14,
"duration": 1
},
{
"pitch": "Bb4",
"start": 15,
"duration": 3
},
{
"pitch": "A4",
"start": 18,
"duration": 3
},
{
"pitch": "F4",
"start": 21,
"duration": 3
}
],
"effects": [
{
"type": "reverb",
"style": "room",
"mix": 0.2
}
]
}
]
}Rainy Window — Lo-fi loop with a part to generate
{
"format": "soundgen-song",
"version": 1,
"title": "Rainy Window",
"genre": "lo-fi hip hop",
"bpm": 82,
"key": "D minor",
"bars": 16,
"tracks": [
{
"name": "Keys",
"type": "chords",
"instrument": "epiano",
"style": "strum",
"chords": [
"Dm9",
"Gm7",
"Cmaj7",
"A7"
],
"volume": -9,
"effects": [
{
"type": "eq",
"lowCut": 120,
"high": -3
},
{
"type": "bitcrusher",
"bits": 12
}
]
},
{
"name": "Beat",
"type": "drums",
"volume": -5,
"pattern": {
"kick": "x-----x---x-----",
"snare": "----x-------x---",
"hat": "x-xgx-x-x-xgx-x-"
}
},
{
"name": "Vinyl texture",
"type": "audio",
"volume": -18,
"generate": {
"prompt": "vinyl crackle and soft rain ambience, no music",
"seconds": 45,
"kind": "sfx"
}
}
]
}Parking Lot Anthem — Rock: verse/chorus parts, a fill, strummed guitar
{
"format": "soundgen-song",
"version": 1,
"title": "Parking Lot Anthem",
"genre": "garage rock",
"bpm": 148,
"key": "E major",
"timeSignature": "4/4",
"sections": [
{
"name": "Verse",
"bars": 8
},
{
"name": "Chorus",
"bars": 8
},
{
"name": "Verse",
"bars": 8
},
{
"name": "Chorus",
"bars": 8
}
],
"tracks": [
{
"name": "Drums",
"type": "drums",
"kit": "acoustic",
"volume": -3,
"parts": {
"verse": {
"pattern": {
"kick": "x-----x-x-------",
"snare": "----x-------x---",
"hat": "x-x-x-x-x-x-x-x-"
}
},
"chorus": {
"pattern": {
"kick": "x-x---x-x-x---x-",
"snare": "----x-------x---",
"ride": "x-x-x-x-x-x-x-x-"
}
},
"fill": {
"bars": 1,
"pattern": {
"snare": "----x-x-xxxxXXXX",
"highTom": "--x-------------",
"crash": "---------------x"
}
}
},
"clips": [
{
"part": "verse",
"bar": 1,
"bars": 7
},
{
"part": "fill",
"bar": 8
},
{
"part": "chorus",
"at": "Chorus"
},
{
"part": "verse",
"bar": 17,
"bars": 7
},
{
"part": "fill",
"bar": 24
}
]
},
{
"name": "Rhythm Guitar",
"type": "chords",
"instrument": "guitar",
"style": "strum",
"volume": -7,
"pan": -0.4,
"chords": [
"E",
"E",
"A",
"B"
],
"effects": [
{
"type": "distortion",
"drive": 0.6,
"tone": 0.6
}
]
},
{
"name": "Bass",
"type": "chords",
"instrument": "bass",
"style": "root-fifth-bass",
"volume": -6,
"chords": [
"E",
"E",
"A",
"B"
]
},
{
"name": "Lead Guitar",
"type": "instrument",
"instrument": "guitar",
"volume": -8,
"pan": 0.4,
"effects": [
{
"type": "distortion",
"drive": 0.7
},
{
"type": "delay",
"time": "1/4",
"feedback": 0.25,
"mix": 0.2
}
],
"parts": {
"riff": {
"bars": 2,
"notes": [
{
"pitch": "B4",
"start": 0,
"duration": 0.5
},
{
"pitch": "G#4",
"start": 0.5,
"duration": 0.5
},
{
"pitch": "E4",
"start": 1,
"duration": 1
},
{
"pitch": "F#4",
"start": 2.5,
"duration": 0.5
},
{
"pitch": "G#4",
"start": 3,
"duration": 1
},
{
"pitch": "B4",
"start": 4,
"duration": 0.5,
"velocity": 0.9
},
{
"pitch": "C#5",
"start": 4.5,
"duration": 0.5
},
{
"pitch": "B4",
"start": 5,
"duration": 1
},
{
"pitch": "A4",
"start": 6,
"duration": 1
},
{
"pitch": "G#4",
"start": 7,
"duration": 1
}
]
}
},
"clips": [
{
"part": "riff",
"at": "Chorus",
"bars": 8
}
]
}
],
"master": {
"effects": [
{
"type": "glue",
"threshold": -16,
"ratio": 2
},
{
"type": "limiter",
"ceiling": -1
}
]
}
}For developers and agents
POST /song-json/validate checks a song, POST /song-json/import creates a project from one, and GET /projects/{id}/song-json exports one — the same as the MCP tools validate_song_json, import_song_json and export_song_json. The in-app assistant imports a pasted song too. Schema: soundgen.ai/schemas/soundgen-song-v1.json.