{"slug":"music","domain":"media","title":"Music and sound effects from a score","summary":"A track written the way musicians write: chord symbols or numerals, drum grids, ABC melodies and a song form, rendered to WAV or MP3 on a drum, bass, pad, guitar and effects kit.","help":"music: music and sound effects from a score.\n\nUSAGE\n  music render SCORE.txt OUT.wav|OUT.mp3 [--publish]\n  music compile SCORE.txt\n  music sequence REQUEST.json OUT.wav|OUT.mp3 [--publish]\n  music kit\n\n  render    compiles the score and writes the audio: .wav (48 kHz, 24-bit) or\n            .mp3 (320 kbps), mastered to the `master` loudness. --publish also\n            files it in the account's store and prints `url: …`, which is how\n            it leaves the session; the URL is presigned and expires in 7 days.\n  compile   prints the renderer request the score becomes (every note placed),\n            to check a score or to extend it by hand.\n  sequence  sends a renderer request as JSON: `{\"commands\": [...]}` with the\n            commands pattern, voice, piece, csound, glicol, audio, ambience,\n            silence, gain, fade, mix and master, played in order onto one\n            timeline.\n  kit       every instrument, preset and parameter, as JSON.\n  The same score again is read back, not rendered again.\n\nA SCORE\n  One statement per line. A `#` word starts a comment.\n\n    title  Night drive\n    tempo 112                    # 40 to 240 bpm; a bar is 4 beats of 4 16ths\n    key D minor                  # for numerals (i, VI, bVII …); also `key F#m`\n    swing 0.1                    # optional, 0 to 0.5\n    room 0.8                     # reverb size 0..1 (and a tone in Hz after it)\n    form intro 2, groove 8, break 2, drop 8     # sections and their bars\n    chords Dm | Bb | F | C        # one bar each, looping through every section\n    chords break Gm | A7          # a section's own progression\n\n    kick          x...x...x...x...      in groove drop\n    clap          ....x.......x...      in groove drop\n    clap snare    ....x.......x...      in groove drop  gain -8\n    hat           ..x...x...x...x.      in groove drop  gain -4\n    hat shaker    x.o.x.o.x.o.x.oo      in drop  gain -10  pan 0.3\n    bass          root 8ths             in groove drop  gain 3\n    pad           block                 in intro break drop  gain -8\n    pad stab      block ...x......x.....  in groove  gain -12\n    pluck         arp up 16ths          in drop  gain -8  set brightness=0.85\n    guitar muted  riff 16ths            in groove drop  gain -4  pan -0.35  set width=0.6\n    guitar lead   abc L:1/8 K:Dm A4 GF E2 | D6 z2 | F4 A2 c2 | A8   in drop\n    crash impact  at groove drop\n    riser         into drop 2\n    ambience ocean                      in intro,groove  gain -8  set xfade=3 fadein=2 fadeout=4\n    fade 0 3                      # seconds of fade in, fade out\n    master -14                    # loudness in LUFS (-14 streaming, -16 speech beds)\n\n  Without `form`, `bars N` sets the length (4 if neither is given).\n\nCHORDS\n  Symbols: C Cm Cdim Caug Csus2 Csus4 C5 C6 Cm6 C7 Cmaj7 Cm7 CmMaj7 Cm7b5\n  Cdim7 C7sus4 C9 Cmaj9 Cm9 Cadd9 C6/9 C11 Cm11 C13 C7b9 C7#9, with # or b\n  on the root and a slash bass (F/A). Numerals follow the `key`'s own scale:\n  in D minor, i iv v VI III VII are Dm Gm Am Bb F C; b and # move them (bVII),\n  and 7 9 6 maj7 ° ø + sus2 sus4 go after (V7, iiø). `|` separates bars; two\n  chords in one bar share it (| Dm C |); `%` repeats the bar before; N.C. is\n  silence. Each section starts its progression from the top.\n\nTRACKS\n  INSTRUMENT [PRESET] PART [OPTIONS]\n  Instruments: kick clap hat crash riser (drums and effects, no pitch) and\n  bass pad pluck guitar (pitched). Presets: kick punch|boom, clap snare|tight,\n  hat open|shaker, bass sub|reese, pad stab|dark, pluck bell, guitar lead|muted|clean,\n  crash impact, riser down. `music kit` lists every parameter `set` changes.\n\n  PARTS\n    x...x...      a grid, one character per 16th, looping from each section's\n                  start: X accent, x hit, o ghost, . rest (| is ignored). On a\n                  pitched instrument it plays the chord's root (or `pitch D2`).\n    root RATE     the chord's root (its slash bass if it has one), repeated\n    riff RATE     root, fifth and octave picking (default 16ths)\n    block [GRID]  the chord held for as long as it lasts, or hit on GRID\n    arp [up|down|updown] RATE    the chord's notes one at a time\n    abc TUNE      a melody in ABC notation: L: unit (default 1/8), K: key;\n                  C is middle C, c the octave up, C, and c' further; ^ sharp,\n                  _ flat, = natural (to the bar's end); A2 A/2 A3/2 lengths;\n                  z rest; [DFA] chord; A-A tie; A\u003eB A\u003cB; (3ABC triplet;\n                  |: … :| repeat. It loops through each section it plays in.\n    notes N:LEN …    pitches and lengths in 16ths: D4:4 F4:2 r:2 D4+F4+A4:8\n    at SECTIONS   one hit at the start of each (crash impact at drop)\n    into SECTION [BARS]   one note over the BARS bars before it (risers)\n    over SECTIONS one note over the whole section (a held pad, a downlifter)\n  RATE is whole, half, 4ths, 8ths, 16ths, 32nds, 8t or 16t (triplets).\n\n  OPTIONS, after the part\n    in SECTIONS   where it plays (default everywhere)\n    gain DB       level, 0 is the kit's balance\n    pan P         -1 left .. 1 right\n    oct N         the register: chords sit around octave N (pad 4, pluck 5,\n                  guitar 4, bass 2), roots near E of it; for abc and notes it\n                  moves the melody N octaves\n    vel V         0..1, scales every note\n    len STEPS     a fixed note length in 16ths\n    pitch NOTE    the note a grid or a one-shot plays\n    set NAME=V …  instrument parameters, as `music kit` names them\n\nAMBIENCE\n  ambience NAME [OPTIONS]\n  A stock recording under the music: ocean, sea_hull, wind, market, night,\n  creak, gulls (`music kit` lists them with what each sounds like). It has no\n  part; it plays through every section it is `in` (default the whole song),\n  looped with crossfades, and starts again after a section it skips. It takes\n  in, gain, pan, and set with xfade (seconds of crossfade between loops,\n  default 2), fadein and fadeout (seconds at each run's start and end).\n  A score of ambience alone is that sound for the song's length.\n\n    form intro 2, sail 8, port 4\n    ambience sea_hull   in intro,sail  gain -10  set xfade=3 fadein=2 fadeout=3\n    ambience creak      in sail  gain -16  pan 0.4\n    ambience market     in port  gain -12  set fadein=1.5 fadeout=4\n\nTHE SOUND\n  A tuned 808-style kick pumps the bass and pads (sidechain), one shared room\n  reverb, a supersaw pad, a filtered saw bass, and an electric guitar (plucked\n  string, bends and vibrato on `lead`, amp drive and cabinet). Drums and effects\n  are synthesized, so any tempo and key work; only the ambience is recorded.\n\nCOSTS\n  Free.","example_command":"music render /tmp/night.txt /tmp/night.wav --publish","example_output":"rendered 20 bars at 112 bpm, 13 tracks: 42.857 s to /tmp/night.wav (12054 KB)\nurl: https://…/audio/…-night.wav?…","cost_class":"upstream-fetch","tier":"free","price_per_1k_calls":0,"price_is_from":false,"status":"available","commands":["music"],"default_enabled":true,"first_seen":"2026-11-30T04:40:40.788635Z","enabled":false}
