Song JSON · ChatGPT
Turn a ChatGPT song idea into MIDI. Hear it first, then download the .mid.
Have ChatGPT write the melody, chords and drums, hear and fix them in SoundGen's browser studio, then download a standard MIDI file. No credits needed.
01
Have ChatGPT write it
Paste the instructions on this page into ChatGPT, then describe the idea: genre, tempo, key, which parts, how many bars. It answers with Song JSON.
02
Import it and listen
In the Studio, Export ▾ → Song JSON (from an AI)…, paste the answer and import. Every note, chord and drum part becomes a MIDI track you can play, and fix in the piano roll, before you export.
03
Download the .mid
Connect ▾ → MIDI Import / Export → Export as MIDI downloads project.mid, a Standard MIDI File that FL Studio, Ableton Live, Logic, Pro Tools, Reaper and GarageBand import.
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.
What's in the MIDI file
A Standard MIDI File (format 0, one track) at the song's tempo, with every MIDI track's notes where they sit on the timeline. Muted notes are left out.
Chord loops are written out as the notes their style plays, and drum patterns as one note per hit, so the file holds the notes you heard — not the chord names or step strings ChatGPT wrote.
Drum parts are on channel 10, the General MIDI drum channel, on General MIDI drum notes (kick 36, snare 38, closed hat 42); every other part is on channel 1. The file carries notes, velocities and the tempo, not the sounds: pick instruments in your DAW.
One part per file
The export dialog writes every MIDI part into one file. For one part at a time, ask the Studio's assistant — "export only the bass as MIDI" — whose MIDI export takes the tracks to include. Assistant replies are billed by usage.
Questions
- Is exporting the MIDI free?
- Yes. Importing the Song JSON and exporting the MIDI from the MIDI Import / Export dialog both run in your browser and never cost credits. 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.
- Can't ChatGPT just give me a .mid file?
- A chat answer is text. Song JSON is text ChatGPT writes reliably — notes by name, chords by symbol, drums as step patterns — and the Studio turns it into real MIDI you can hear and correct before you download it.
- Which DAWs open the file?
- Any DAW that imports Standard MIDI Files, including FL Studio, Ableton Live, Logic, Pro Tools, Reaper and GarageBand.
- Why are all the parts in one track?
- The dialog writes a format 0 file, which has a single track. The drums stay on channel 10 and the other parts on channel 1. To get each part as its own file, ask the assistant to export one track at a time.
- 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.
- I have a recording, not an idea. Can I get MIDI from it?
- Yes, with the free Audio to MIDI tool, which finds the notes in a recording on your own device. This page is for songs an AI writes.
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.