Song JSON · ChatGPT
Write a song with ChatGPT. Open it as a project you can edit.
Have ChatGPT write a whole song — melody, chords, drums and sections — and open it in SoundGen's browser studio as editable tracks. Importing is free.
01
Give ChatGPT the instructions
Copy the instructions on this page and paste them into ChatGPT, or upload instructions.md. They teach it Song JSON: tracks of notes, chord loops, drum patterns, sections and the mix.
02
Ask for your song
Say what you want: "a 90 BPM lo-fi track in F minor, 32 bars, with a mellow Rhodes and soft drums". It answers with one JSON object.
03
Paste it into the Studio
In the Studio, Export ▾ → Song JSON (from an AI)…, paste the whole answer and press Preview. Check what it found, then import it as a new project.
The instructions for ChatGPT
One document with everything ChatGPT needs to write a song SoundGen can open: the format, every field, the instrument, drum, effect and chord names it accepts, how timing works, complete examples and the mistakes to avoid. Paste it, or upload the file, before you ask for the song.
The format, field by field, with examples: Song JSON.
Or a short prompt for a quick sketch — replace the line in angle brackets:
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.jsonTracks
Up to 32 named tracks, each an ordinary Studio track with its volume, pan and effects — nothing locked or flattened.
Melodies and bass lines
MIDI notes on a built-in voice: bass, piano, epiano, organ, accordion, keys, guitar, pluck, strings, brass, flute, bell, pad and lead. Change the voice, or edit any note in the piano roll.
Chords
A chord loop — one chord per bar, by name — played as real notes in a style: block, pulse, stabs, arp, broken, strum, oompah, root-bass, root-fifth-bass, walking-bass, approach-bass, octave-bass, offbeat-bass, rolling-bass, tumbao-bass and log-drum-bass.
Drums
Step patterns (x for a hit, X for an accent, g for a ghost note) played as MIDI on the acoustic or the techno kit, with a name for every piece from the kick drum to the congas and shaker.
Sections
Intro, Verse, Chorus and the rest become markers on the timeline, and a part can be placed in every section with a given name.
Mix
Levels in dB, pan, and effects on each track and the master, by name: reverb, delay, eq, compressor, glue, distortion, saturation, chorus, phaser, flanger, filter, limiter, bitcrusher and tremolo.
Revising it with ChatGPT
Export ▾ → Song JSON (for an AI) saves the project as Song JSON. Give the file back to ChatGPT with the instructions, ask for the change — "make the chorus double-time", "add a counter-melody on strings" — and import the new version.
The file leaves out what Song JSON can't hold — automation, sends, clip fades, plugin instruments, tempo changes — and lists them in its notes, so nothing is dropped without saying so. They stay in your project.
Questions
- Does ChatGPT make the audio?
- No. ChatGPT writes the notes, chords, drum patterns and arrangement as text, and the Studio plays them on its built-in instruments. A part that can't be written as notes, like a vocal or a texture, arrives as an empty audio track with a Generate this part button, which generates it at the normal price.
- Is it free?
- Importing a Song JSON never costs credits, and neither does playing it, editing it or exporting its MIDI. You need a free SoundGen account to open the Studio; a new account also gets 100 credits once, for the things that do cost credits, like generating audio.
- What if ChatGPT's JSON has mistakes?
- Small slips — a code fence around the JSON, trailing commas, a comment, smart quotes, a note name like "H4", a volume written 0–1 instead of in dB — are repaired or skipped, and the preview lists each one with where it is in the file. Paste that list back to the AI if you want it fixed at the source.
- How long can the song be?
- A Song JSON can hold up to 32 tracks and 1,024 bars, with up to 8,192 notes a clip, in a file of up to 2 MB.
- Does it work with Claude or Gemini?
- Yes. The same instructions work in any chat AI. Claude can also create the project for you once SoundGen is connected to it — see Write a Song with Claude.
Let ChatGPT write it.
Finish it in the Studio.
Import the song, play it, change any note, and mix it in a multi-track studio in your browser.