{
  "openapi": "3.1.1",
  "info": {
    "title": "Tracklayer Mixdown (project JSON to WAV) API",
    "version": "1.0.0",
    "summary": "Render a Tracklayer song with its instruments, audio, effects and automation to a WAV file.",
    "description": "Every endpoint performs the same calculation as the human page and returns inputs, result, units, assumptions, sources, warnings and computedAt. MCP endpoint: /mcp."
  },
  "servers": [
    {
      "url": "https://tracklayermixdown.usefulweb.app"
    }
  ],
  "paths": {
    "/api/v1/calculate": {
      "post": {
        "operationId": "calculate",
        "summary": "Render a Tracklayer song with its instruments, audio, effects and automation to a WAV file.",
        "description": "Renders a Tracklayer project file to a stereo 48 kHz WAV: instrument tracks play their note clips through the shared synth (or modular) patches, audio clips come from audio embedded in the file or from generated-audio recipes, and every track runs through its effects, volume and pan automation, effect returns and the master limiter. The result includes integrated loudness and true peak. The same engine renders the export in the Tracklayer app, so an agent can build a song as JSON and a person can open and change it in the app.\n\nMethodology:\n- The project is validated (format, limits, references between clips, audio and effect returns). Generated audio assets are rendered from their synth recipe; embedded audio (base64 WAV) is decoded and resampled to 48 kHz when needed.\n- The mix engine renders in blocks: audio clips with gain, equal-power fades and looping; instrument tracks schedule their note clips sample-accurately into the shared polyphonic synth; then per track the effects (EQ = high-pass + low shelf + peak + high shelf biquads, compressor, delay, reverb, chorus, distortion, limiter), volume and pan with linear automation, post-fader sends into the effect returns, and the master chain ending in a look-ahead limiter at −1 dBFS.\n- Loudness of the result as in the Loudness Meter (ITU-R BS.1770-4 / EBU R 128). The WAV is 16-bit stereo PCM.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "tracklayer_mixdown",
        "x-owner-app": "tracklayer",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TracklayerMixdownInput"
              },
              "examples": {
                "example1": {
                  "summary": "Example song: synth bass, pad and a generated drum loop",
                  "value": {
                    "project": "{\"format\":\"tracklayer-project\",\"version\":1,\"name\":\"Night drive\",\"tempo\":100,\"timeSignature\":[4,4],\"loop\":{\"on\":false,\"start\":0,\"end\":16},\"metronome\":{\"on\":false,\"level\":0.5,\"countIn\":0},\"snap\":\"1/4\",\"zoom\":32,\"master\":{\"volume\":0,\"inserts\":[{\"id\":\"fx-master-comp\",\"type\":\"compressor\",\"on\":true,\"params\":{\"threshold\":-14,\"ratio\":2,\"attack\":20,\"release\":200,\"knee\":6,\"makeup\":1}}],\"automation\":[]},\"buses\":[{\"id\":\"bus-reverb\",\"name\":\"Reverb\",\"volume\":0,\"pan\":0,\"mute\":false,\"inserts\":[{\"id\":\"fx-bus-reverb\",\"type\":\"reverb\",\"on\":true,\"params\":{\"size\":0.6,\"damping\":0.5,\"width\":1,\"preDelay\":20,\"mix\":1}}]},{\"id\":\"bus-delay\",\"name\":\"Delay\",\"volume\":0,\"pan\":0,\"mute\":false,\"inserts\":[{\"id\":\"fx-bus-delay\",\"type\":\"delay\",\"on\":true,\"params\":{\"time\":375,\"feedback\":0.4,\"mix\":1,\"tone\":6000,\"pingPong\":1},\"sync\":\"1/8d\"}]}],\"tracks\":[{\"id\":\"tr-drums\",\"name\":\"Drums\",\"kind\":\"audio\",\"color\":0,\"volume\":-3,\"pan\":0,\"mute\":false,\"solo\":false,\"sends\":[],\"inserts\":[],\"automation\":[],\"clips\":[{\"id\":\"cl-drums\",\"kind\":\"audio\",\"name\":\"Drum loop\",\"asset\":\"as-drums\",\"start\":0,\"length\":32,\"offset\":0,\"gain\":0,\"fadeIn\":0,\"fadeOut\":0,\"loop\":true}]},{\"id\":\"tr-bass\",\"name\":\"Bass\",\"kind\":\"instrument\",\"color\":2,\"volume\":-6,\"pan\":0,\"mute\":false,\"solo\":false,\"sends\":[],\"inserts\":[{\"id\":\"fx-bass-eq\",\"type\":\"eq\",\"on\":true,\"params\":{\"lowCut\":35,\"lowFreq\":120,\"lowGain\":0,\"midFreq\":1000,\"midGain\":0,\"midQ\":1,\"highFreq\":8000,\"highGain\":-3}}],\"automation\":[],\"instrument\":{\"kind\":\"synth\",\"patch\":{\"format\":\"uw-synth-patch\",\"version\":1,\"name\":\"Fat saw bass\",\"category\":\"bass\",\"author\":\"Sinebloom\",\"tags\":[],\"osc\":[{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":-1,\"semi\":0,\"fine\":0,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":-1,\"semi\":0,\"fine\":-9,\"level\":0.7,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"wavetable\",\"table\":\"harmonic-sweep\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.5,\"pulseWidth\":0.5}],\"sub\":{\"level\":0.5,\"octave\":-1,\"wave\":\"square\"},\"noise\":{\"level\":0,\"color\":\"white\"},\"unison\":{\"voices\":1,\"detune\":0.15,\"spread\":0.5},\"filter\":{\"type\":\"ladder\",\"cutoff\":700,\"resonance\":0.25,\"envAmount\":0.4,\"keyTrack\":0.5,\"drive\":0},\"ampEnv\":{\"attack\":0.003,\"decay\":0.3,\"sustain\":0.85,\"release\":0.1},\"modEnv\":{\"attack\":0.005,\"decay\":0.35,\"sustain\":0.1,\"release\":0.3},\"lfo\":[{\"shape\":\"sine\",\"rate\":5,\"sync\":\"\",\"retrigger\":false},{\"shape\":\"triangle\",\"rate\":0.3,\"sync\":\"\",\"retrigger\":false}],\"matrix\":[],\"glide\":0.03,\"mono\":true,\"legato\":false,\"polyphony\":8,\"velocity\":0.6,\"bendRange\":2,\"fx\":{\"distortion\":{\"on\":false,\"type\":\"soft\",\"drive\":0.3,\"tone\":8000,\"mix\":1},\"chorus\":{\"on\":false,\"rate\":0.6,\"depth\":3,\"mix\":0.4},\"delay\":{\"on\":false,\"time\":0.375,\"sync\":\"\",\"feedback\":0.35,\"mix\":0.25,\"pingPong\":true,\"tone\":6000},\"reverb\":{\"on\":false,\"size\":0.5,\"damping\":0.5,\"width\":1,\"mix\":0.25}},\"gain\":0.7},\"name\":\"bass-fat-saw\"},\"clips\":[{\"id\":\"cl-bass\",\"kind\":\"notes\",\"name\":\"Bass line\",\"start\":0,\"length\":32,\"loopBeats\":16,\"offset\":0,\"loop\":true,\"notes\":[{\"pitch\":33,\"start\":0,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":0.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":33,\"start\":1,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":1.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":33,\"start\":2,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":2.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":33,\"start\":3,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":3.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":4,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":4.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":5,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":5.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":6,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":6.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":7,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":7.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":8,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":8.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":9,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":9.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":10,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":10.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":11,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":11.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":12,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":12.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":13,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":13.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":14,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":14.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":15,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":15.5,\"duration\":0.4,\"velocity\":80}]}]},{\"id\":\"tr-pad\",\"name\":\"Pad\",\"kind\":\"instrument\",\"color\":1,\"volume\":-10,\"pan\":0,\"mute\":false,\"solo\":false,\"sends\":[{\"bus\":\"bus-reverb\",\"level\":0.35}],\"inserts\":[],\"automation\":[{\"target\":\"volume\",\"on\":true,\"points\":[{\"beat\":0,\"value\":-40},{\"beat\":8,\"value\":-10}]}],\"instrument\":{\"kind\":\"synth\",\"patch\":{\"format\":\"uw-synth-patch\",\"version\":1,\"name\":\"Warm strings\",\"category\":\"pad\",\"author\":\"Sinebloom\",\"tags\":[],\"osc\":[{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":-7,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"wavetable\",\"table\":\"harmonic-sweep\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.5,\"pulseWidth\":0.5}],\"sub\":{\"level\":0,\"octave\":-1,\"wave\":\"sine\"},\"noise\":{\"level\":0,\"color\":\"white\"},\"unison\":{\"voices\":4,\"detune\":0.25,\"spread\":0.9},\"filter\":{\"type\":\"ladder\",\"cutoff\":1800,\"resonance\":0.1,\"envAmount\":0.15,\"keyTrack\":0.5,\"drive\":0},\"ampEnv\":{\"attack\":0.6,\"decay\":1,\"sustain\":0.85,\"release\":1.4},\"modEnv\":{\"attack\":0.8,\"decay\":1.5,\"sustain\":0.3,\"release\":1},\"lfo\":[{\"shape\":\"sine\",\"rate\":5,\"sync\":\"\",\"retrigger\":false},{\"shape\":\"triangle\",\"rate\":0.3,\"sync\":\"\",\"retrigger\":false}],\"matrix\":[],\"glide\":0,\"mono\":false,\"legato\":false,\"polyphony\":8,\"velocity\":0.6,\"bendRange\":2,\"fx\":{\"distortion\":{\"on\":false,\"type\":\"soft\",\"drive\":0.3,\"tone\":8000,\"mix\":1},\"chorus\":{\"on\":true,\"rate\":0.4,\"depth\":3.5,\"mix\":0.4},\"delay\":{\"on\":false,\"time\":0.375,\"sync\":\"\",\"feedback\":0.35,\"mix\":0.25,\"pingPong\":true,\"tone\":6000},\"reverb\":{\"on\":true,\"size\":0.7,\"damping\":0.5,\"width\":1,\"mix\":0.35}},\"gain\":0.7},\"name\":\"pad-warm-strings\"},\"clips\":[{\"id\":\"cl-pad\",\"kind\":\"notes\",\"name\":\"Chords\",\"start\":0,\"length\":32,\"loopBeats\":16,\"offset\":0,\"loop\":true,\"notes\":[{\"pitch\":57,\"start\":0,\"duration\":3.95,\"velocity\":78},{\"pitch\":60,\"start\":0,\"duration\":3.95,\"velocity\":78},{\"pitch\":64,\"start\":0,\"duration\":3.95,\"velocity\":78},{\"pitch\":53,\"start\":4,\"duration\":3.95,\"velocity\":78},{\"pitch\":57,\"start\":4,\"duration\":3.95,\"velocity\":78},{\"pitch\":60,\"start\":4,\"duration\":3.95,\"velocity\":78},{\"pitch\":55,\"start\":8,\"duration\":3.95,\"velocity\":78},{\"pitch\":60,\"start\":8,\"duration\":3.95,\"velocity\":78},{\"pitch\":64,\"start\":8,\"duration\":3.95,\"velocity\":78},{\"pitch\":55,\"start\":12,\"duration\":3.95,\"velocity\":78},{\"pitch\":59,\"start\":12,\"duration\":3.95,\"velocity\":78},{\"pitch\":62,\"start\":12,\"duration\":3.95,\"velocity\":78}]}]},{\"id\":\"tr-lead\",\"name\":\"Lead\",\"kind\":\"instrument\",\"color\":3,\"volume\":-9,\"pan\":0.15,\"mute\":false,\"solo\":false,\"sends\":[{\"bus\":\"bus-delay\",\"level\":0.3},{\"bus\":\"bus-reverb\",\"level\":0.2}],\"inserts\":[],\"automation\":[],\"instrument\":{\"kind\":\"synth\",\"patch\":{\"format\":\"uw-synth-patch\",\"version\":1,\"name\":\"Soft whistle\",\"category\":\"lead\",\"author\":\"Sinebloom\",\"tags\":[],\"osc\":[{\"on\":true,\"wave\":\"sine\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":1,\"semi\":0,\"fine\":0,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"square\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":7,\"level\":0.6,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"wavetable\",\"table\":\"harmonic-sweep\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.5,\"pulseWidth\":0.5}],\"sub\":{\"level\":0,\"octave\":-1,\"wave\":\"sine\"},\"noise\":{\"level\":0.05,\"color\":\"pink\"},\"unison\":{\"voices\":1,\"detune\":0.15,\"spread\":0.5},\"filter\":{\"type\":\"bandpass\",\"cutoff\":2000,\"resonance\":0.3,\"envAmount\":0,\"keyTrack\":1,\"drive\":0},\"ampEnv\":{\"attack\":0.06,\"decay\":0.3,\"sustain\":0.9,\"release\":0.25},\"modEnv\":{\"attack\":0.005,\"decay\":0.4,\"sustain\":0,\"release\":0.3},\"lfo\":[{\"shape\":\"sine\",\"rate\":4.8,\"sync\":\"\",\"retrigger\":false},{\"shape\":\"triangle\",\"rate\":0.3,\"sync\":\"\",\"retrigger\":false}],\"matrix\":[{\"source\":\"lfo1\",\"dest\":\"pitch\",\"amount\":0.012}],\"glide\":0,\"mono\":false,\"legato\":false,\"polyphony\":8,\"velocity\":0.6,\"bendRange\":2,\"fx\":{\"distortion\":{\"on\":false,\"type\":\"soft\",\"drive\":0.3,\"tone\":8000,\"mix\":1},\"chorus\":{\"on\":false,\"rate\":0.6,\"depth\":3,\"mix\":0.4},\"delay\":{\"on\":false,\"time\":0.375,\"sync\":\"\",\"feedback\":0.35,\"mix\":0.25,\"pingPong\":true,\"tone\":6000},\"reverb\":{\"on\":true,\"size\":0.55,\"damping\":0.5,\"width\":1,\"mix\":0.3}},\"gain\":0.7},\"name\":\"lead-soft-whistle\"},\"clips\":[{\"id\":\"cl-lead\",\"kind\":\"notes\",\"name\":\"Melody\",\"start\":16,\"length\":16,\"loopBeats\":16,\"offset\":0,\"loop\":false,\"notes\":[{\"pitch\":76,\"start\":0,\"duration\":1.5,\"velocity\":100},{\"pitch\":74,\"start\":1.5,\"duration\":0.5,\"velocity\":100},{\"pitch\":72,\"start\":2,\"duration\":2,\"velocity\":100},{\"pitch\":69,\"start\":4,\"duration\":1,\"velocity\":100},{\"pitch\":72,\"start\":5,\"duration\":1,\"velocity\":100},{\"pitch\":74,\"start\":6,\"duration\":2,\"velocity\":100},{\"pitch\":76,\"start\":8,\"duration\":1.5,\"velocity\":100},{\"pitch\":79,\"start\":9.5,\"duration\":0.5,\"velocity\":100},{\"pitch\":77,\"start\":10,\"duration\":2,\"velocity\":100},{\"pitch\":76,\"start\":12,\"duration\":1,\"velocity\":100},{\"pitch\":74,\"start\":13,\"duration\":1,\"velocity\":100},{\"pitch\":72,\"start\":14,\"duration\":2,\"velocity\":100}]}]}],\"assets\":[{\"id\":\"as-drums\",\"name\":\"Drum loop (generated)\",\"sampleRate\":48000,\"channels\":2,\"frames\":115200,\"bytes\":0,\"source\":\"generated\",\"recipe\":{\"kind\":\"synth\",\"bpm\":100,\"lengthBeats\":4,\"layers\":[{\"preset\":\"drum-synth-kick\",\"notes\":[{\"pitch\":36,\"start\":0,\"duration\":0.25,\"velocity\":118},{\"pitch\":36,\"start\":1,\"duration\":0.25,\"velocity\":118},{\"pitch\":36,\"start\":2,\"duration\":0.25,\"velocity\":118},{\"pitch\":36,\"start\":3,\"duration\":0.25,\"velocity\":118}]},{\"preset\":\"drum-snappy-snare\",\"notes\":[{\"pitch\":50,\"start\":1,\"duration\":0.2,\"velocity\":100},{\"pitch\":50,\"start\":3,\"duration\":0.2,\"velocity\":100}]},{\"preset\":\"drum-metal-hat\",\"notes\":[{\"pitch\":78,\"start\":0.5,\"duration\":0.1,\"velocity\":92},{\"pitch\":78,\"start\":1.5,\"duration\":0.1,\"velocity\":70},{\"pitch\":78,\"start\":2.5,\"duration\":0.1,\"velocity\":92},{\"pitch\":78,\"start\":3.5,\"duration\":0.1,\"velocity\":70}]}]}}]}",
                    "range": "song",
                    "tail": 2,
                    "target": "streaming"
                  }
                },
                "example2": {
                  "summary": "Only the loop region, short tail",
                  "value": {
                    "project": "{\"format\":\"tracklayer-project\",\"version\":1,\"name\":\"Night drive\",\"tempo\":100,\"timeSignature\":[4,4],\"loop\":{\"on\":false,\"start\":0,\"end\":16},\"metronome\":{\"on\":false,\"level\":0.5,\"countIn\":0},\"snap\":\"1/4\",\"zoom\":32,\"master\":{\"volume\":0,\"inserts\":[{\"id\":\"fx-master-comp\",\"type\":\"compressor\",\"on\":true,\"params\":{\"threshold\":-14,\"ratio\":2,\"attack\":20,\"release\":200,\"knee\":6,\"makeup\":1}}],\"automation\":[]},\"buses\":[{\"id\":\"bus-reverb\",\"name\":\"Reverb\",\"volume\":0,\"pan\":0,\"mute\":false,\"inserts\":[{\"id\":\"fx-bus-reverb\",\"type\":\"reverb\",\"on\":true,\"params\":{\"size\":0.6,\"damping\":0.5,\"width\":1,\"preDelay\":20,\"mix\":1}}]},{\"id\":\"bus-delay\",\"name\":\"Delay\",\"volume\":0,\"pan\":0,\"mute\":false,\"inserts\":[{\"id\":\"fx-bus-delay\",\"type\":\"delay\",\"on\":true,\"params\":{\"time\":375,\"feedback\":0.4,\"mix\":1,\"tone\":6000,\"pingPong\":1},\"sync\":\"1/8d\"}]}],\"tracks\":[{\"id\":\"tr-drums\",\"name\":\"Drums\",\"kind\":\"audio\",\"color\":0,\"volume\":-3,\"pan\":0,\"mute\":false,\"solo\":false,\"sends\":[],\"inserts\":[],\"automation\":[],\"clips\":[{\"id\":\"cl-drums\",\"kind\":\"audio\",\"name\":\"Drum loop\",\"asset\":\"as-drums\",\"start\":0,\"length\":32,\"offset\":0,\"gain\":0,\"fadeIn\":0,\"fadeOut\":0,\"loop\":true}]},{\"id\":\"tr-bass\",\"name\":\"Bass\",\"kind\":\"instrument\",\"color\":2,\"volume\":-6,\"pan\":0,\"mute\":false,\"solo\":false,\"sends\":[],\"inserts\":[{\"id\":\"fx-bass-eq\",\"type\":\"eq\",\"on\":true,\"params\":{\"lowCut\":35,\"lowFreq\":120,\"lowGain\":0,\"midFreq\":1000,\"midGain\":0,\"midQ\":1,\"highFreq\":8000,\"highGain\":-3}}],\"automation\":[],\"instrument\":{\"kind\":\"synth\",\"patch\":{\"format\":\"uw-synth-patch\",\"version\":1,\"name\":\"Fat saw bass\",\"category\":\"bass\",\"author\":\"Sinebloom\",\"tags\":[],\"osc\":[{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":-1,\"semi\":0,\"fine\":0,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":-1,\"semi\":0,\"fine\":-9,\"level\":0.7,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"wavetable\",\"table\":\"harmonic-sweep\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.5,\"pulseWidth\":0.5}],\"sub\":{\"level\":0.5,\"octave\":-1,\"wave\":\"square\"},\"noise\":{\"level\":0,\"color\":\"white\"},\"unison\":{\"voices\":1,\"detune\":0.15,\"spread\":0.5},\"filter\":{\"type\":\"ladder\",\"cutoff\":700,\"resonance\":0.25,\"envAmount\":0.4,\"keyTrack\":0.5,\"drive\":0},\"ampEnv\":{\"attack\":0.003,\"decay\":0.3,\"sustain\":0.85,\"release\":0.1},\"modEnv\":{\"attack\":0.005,\"decay\":0.35,\"sustain\":0.1,\"release\":0.3},\"lfo\":[{\"shape\":\"sine\",\"rate\":5,\"sync\":\"\",\"retrigger\":false},{\"shape\":\"triangle\",\"rate\":0.3,\"sync\":\"\",\"retrigger\":false}],\"matrix\":[],\"glide\":0.03,\"mono\":true,\"legato\":false,\"polyphony\":8,\"velocity\":0.6,\"bendRange\":2,\"fx\":{\"distortion\":{\"on\":false,\"type\":\"soft\",\"drive\":0.3,\"tone\":8000,\"mix\":1},\"chorus\":{\"on\":false,\"rate\":0.6,\"depth\":3,\"mix\":0.4},\"delay\":{\"on\":false,\"time\":0.375,\"sync\":\"\",\"feedback\":0.35,\"mix\":0.25,\"pingPong\":true,\"tone\":6000},\"reverb\":{\"on\":false,\"size\":0.5,\"damping\":0.5,\"width\":1,\"mix\":0.25}},\"gain\":0.7},\"name\":\"bass-fat-saw\"},\"clips\":[{\"id\":\"cl-bass\",\"kind\":\"notes\",\"name\":\"Bass line\",\"start\":0,\"length\":32,\"loopBeats\":16,\"offset\":0,\"loop\":true,\"notes\":[{\"pitch\":33,\"start\":0,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":0.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":33,\"start\":1,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":1.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":33,\"start\":2,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":2.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":33,\"start\":3,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":3.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":4,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":4.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":5,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":5.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":6,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":6.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":7,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":7.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":8,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":8.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":9,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":9.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":10,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":10.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":11,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":11.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":12,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":12.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":13,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":13.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":14,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":14.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":15,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":15.5,\"duration\":0.4,\"velocity\":80}]}]},{\"id\":\"tr-pad\",\"name\":\"Pad\",\"kind\":\"instrument\",\"color\":1,\"volume\":-10,\"pan\":0,\"mute\":false,\"solo\":false,\"sends\":[{\"bus\":\"bus-reverb\",\"level\":0.35}],\"inserts\":[],\"automation\":[{\"target\":\"volume\",\"on\":true,\"points\":[{\"beat\":0,\"value\":-40},{\"beat\":8,\"value\":-10}]}],\"instrument\":{\"kind\":\"synth\",\"patch\":{\"format\":\"uw-synth-patch\",\"version\":1,\"name\":\"Warm strings\",\"category\":\"pad\",\"author\":\"Sinebloom\",\"tags\":[],\"osc\":[{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":-7,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"wavetable\",\"table\":\"harmonic-sweep\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.5,\"pulseWidth\":0.5}],\"sub\":{\"level\":0,\"octave\":-1,\"wave\":\"sine\"},\"noise\":{\"level\":0,\"color\":\"white\"},\"unison\":{\"voices\":4,\"detune\":0.25,\"spread\":0.9},\"filter\":{\"type\":\"ladder\",\"cutoff\":1800,\"resonance\":0.1,\"envAmount\":0.15,\"keyTrack\":0.5,\"drive\":0},\"ampEnv\":{\"attack\":0.6,\"decay\":1,\"sustain\":0.85,\"release\":1.4},\"modEnv\":{\"attack\":0.8,\"decay\":1.5,\"sustain\":0.3,\"release\":1},\"lfo\":[{\"shape\":\"sine\",\"rate\":5,\"sync\":\"\",\"retrigger\":false},{\"shape\":\"triangle\",\"rate\":0.3,\"sync\":\"\",\"retrigger\":false}],\"matrix\":[],\"glide\":0,\"mono\":false,\"legato\":false,\"polyphony\":8,\"velocity\":0.6,\"bendRange\":2,\"fx\":{\"distortion\":{\"on\":false,\"type\":\"soft\",\"drive\":0.3,\"tone\":8000,\"mix\":1},\"chorus\":{\"on\":true,\"rate\":0.4,\"depth\":3.5,\"mix\":0.4},\"delay\":{\"on\":false,\"time\":0.375,\"sync\":\"\",\"feedback\":0.35,\"mix\":0.25,\"pingPong\":true,\"tone\":6000},\"reverb\":{\"on\":true,\"size\":0.7,\"damping\":0.5,\"width\":1,\"mix\":0.35}},\"gain\":0.7},\"name\":\"pad-warm-strings\"},\"clips\":[{\"id\":\"cl-pad\",\"kind\":\"notes\",\"name\":\"Chords\",\"start\":0,\"length\":32,\"loopBeats\":16,\"offset\":0,\"loop\":true,\"notes\":[{\"pitch\":57,\"start\":0,\"duration\":3.95,\"velocity\":78},{\"pitch\":60,\"start\":0,\"duration\":3.95,\"velocity\":78},{\"pitch\":64,\"start\":0,\"duration\":3.95,\"velocity\":78},{\"pitch\":53,\"start\":4,\"duration\":3.95,\"velocity\":78},{\"pitch\":57,\"start\":4,\"duration\":3.95,\"velocity\":78},{\"pitch\":60,\"start\":4,\"duration\":3.95,\"velocity\":78},{\"pitch\":55,\"start\":8,\"duration\":3.95,\"velocity\":78},{\"pitch\":60,\"start\":8,\"duration\":3.95,\"velocity\":78},{\"pitch\":64,\"start\":8,\"duration\":3.95,\"velocity\":78},{\"pitch\":55,\"start\":12,\"duration\":3.95,\"velocity\":78},{\"pitch\":59,\"start\":12,\"duration\":3.95,\"velocity\":78},{\"pitch\":62,\"start\":12,\"duration\":3.95,\"velocity\":78}]}]},{\"id\":\"tr-lead\",\"name\":\"Lead\",\"kind\":\"instrument\",\"color\":3,\"volume\":-9,\"pan\":0.15,\"mute\":false,\"solo\":false,\"sends\":[{\"bus\":\"bus-delay\",\"level\":0.3},{\"bus\":\"bus-reverb\",\"level\":0.2}],\"inserts\":[],\"automation\":[],\"instrument\":{\"kind\":\"synth\",\"patch\":{\"format\":\"uw-synth-patch\",\"version\":1,\"name\":\"Soft whistle\",\"category\":\"lead\",\"author\":\"Sinebloom\",\"tags\":[],\"osc\":[{\"on\":true,\"wave\":\"sine\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":1,\"semi\":0,\"fine\":0,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"square\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":7,\"level\":0.6,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"wavetable\",\"table\":\"harmonic-sweep\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.5,\"pulseWidth\":0.5}],\"sub\":{\"level\":0,\"octave\":-1,\"wave\":\"sine\"},\"noise\":{\"level\":0.05,\"color\":\"pink\"},\"unison\":{\"voices\":1,\"detune\":0.15,\"spread\":0.5},\"filter\":{\"type\":\"bandpass\",\"cutoff\":2000,\"resonance\":0.3,\"envAmount\":0,\"keyTrack\":1,\"drive\":0},\"ampEnv\":{\"attack\":0.06,\"decay\":0.3,\"sustain\":0.9,\"release\":0.25},\"modEnv\":{\"attack\":0.005,\"decay\":0.4,\"sustain\":0,\"release\":0.3},\"lfo\":[{\"shape\":\"sine\",\"rate\":4.8,\"sync\":\"\",\"retrigger\":false},{\"shape\":\"triangle\",\"rate\":0.3,\"sync\":\"\",\"retrigger\":false}],\"matrix\":[{\"source\":\"lfo1\",\"dest\":\"pitch\",\"amount\":0.012}],\"glide\":0,\"mono\":false,\"legato\":false,\"polyphony\":8,\"velocity\":0.6,\"bendRange\":2,\"fx\":{\"distortion\":{\"on\":false,\"type\":\"soft\",\"drive\":0.3,\"tone\":8000,\"mix\":1},\"chorus\":{\"on\":false,\"rate\":0.6,\"depth\":3,\"mix\":0.4},\"delay\":{\"on\":false,\"time\":0.375,\"sync\":\"\",\"feedback\":0.35,\"mix\":0.25,\"pingPong\":true,\"tone\":6000},\"reverb\":{\"on\":true,\"size\":0.55,\"damping\":0.5,\"width\":1,\"mix\":0.3}},\"gain\":0.7},\"name\":\"lead-soft-whistle\"},\"clips\":[{\"id\":\"cl-lead\",\"kind\":\"notes\",\"name\":\"Melody\",\"start\":16,\"length\":16,\"loopBeats\":16,\"offset\":0,\"loop\":false,\"notes\":[{\"pitch\":76,\"start\":0,\"duration\":1.5,\"velocity\":100},{\"pitch\":74,\"start\":1.5,\"duration\":0.5,\"velocity\":100},{\"pitch\":72,\"start\":2,\"duration\":2,\"velocity\":100},{\"pitch\":69,\"start\":4,\"duration\":1,\"velocity\":100},{\"pitch\":72,\"start\":5,\"duration\":1,\"velocity\":100},{\"pitch\":74,\"start\":6,\"duration\":2,\"velocity\":100},{\"pitch\":76,\"start\":8,\"duration\":1.5,\"velocity\":100},{\"pitch\":79,\"start\":9.5,\"duration\":0.5,\"velocity\":100},{\"pitch\":77,\"start\":10,\"duration\":2,\"velocity\":100},{\"pitch\":76,\"start\":12,\"duration\":1,\"velocity\":100},{\"pitch\":74,\"start\":13,\"duration\":1,\"velocity\":100},{\"pitch\":72,\"start\":14,\"duration\":2,\"velocity\":100}]}]}],\"assets\":[{\"id\":\"as-drums\",\"name\":\"Drum loop (generated)\",\"sampleRate\":48000,\"channels\":2,\"frames\":115200,\"bytes\":0,\"source\":\"generated\",\"recipe\":{\"kind\":\"synth\",\"bpm\":100,\"lengthBeats\":4,\"layers\":[{\"preset\":\"drum-synth-kick\",\"notes\":[{\"pitch\":36,\"start\":0,\"duration\":0.25,\"velocity\":118},{\"pitch\":36,\"start\":1,\"duration\":0.25,\"velocity\":118},{\"pitch\":36,\"start\":2,\"duration\":0.25,\"velocity\":118},{\"pitch\":36,\"start\":3,\"duration\":0.25,\"velocity\":118}]},{\"preset\":\"drum-snappy-snare\",\"notes\":[{\"pitch\":50,\"start\":1,\"duration\":0.2,\"velocity\":100},{\"pitch\":50,\"start\":3,\"duration\":0.2,\"velocity\":100}]},{\"preset\":\"drum-metal-hat\",\"notes\":[{\"pitch\":78,\"start\":0.5,\"duration\":0.1,\"velocity\":92},{\"pitch\":78,\"start\":1.5,\"duration\":0.1,\"velocity\":70},{\"pitch\":78,\"start\":2.5,\"duration\":0.1,\"velocity\":92},{\"pitch\":78,\"start\":3.5,\"duration\":0.1,\"velocity\":70}]}]}}]}",
                    "range": "loop",
                    "tail": 0.5,
                    "target": "none"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TracklayerMixdownResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tool": {
      "get": {
        "operationId": "getToolDefinition",
        "summary": "Inputs, output schema and examples for this tool",
        "responses": {
          "200": {
            "description": "Tool definition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. 422 responses include per-field `errors`.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "message"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "TracklayerMixdownInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "project": {
            "title": "Tracklayer project (JSON)",
            "description": "A .tracklayer.json file (format “tracklayer-project”). Audio clips need their audio embedded (“Save project with audio” in the app) or a generated-audio recipe.",
            "type": "string",
            "maxLength": 8000000,
            "default": "{\"format\":\"tracklayer-project\",\"version\":1,\"name\":\"Night drive\",\"tempo\":100,\"timeSignature\":[4,4],\"loop\":{\"on\":false,\"start\":0,\"end\":16},\"metronome\":{\"on\":false,\"level\":0.5,\"countIn\":0},\"snap\":\"1/4\",\"zoom\":32,\"master\":{\"volume\":0,\"inserts\":[{\"id\":\"fx-master-comp\",\"type\":\"compressor\",\"on\":true,\"params\":{\"threshold\":-14,\"ratio\":2,\"attack\":20,\"release\":200,\"knee\":6,\"makeup\":1}}],\"automation\":[]},\"buses\":[{\"id\":\"bus-reverb\",\"name\":\"Reverb\",\"volume\":0,\"pan\":0,\"mute\":false,\"inserts\":[{\"id\":\"fx-bus-reverb\",\"type\":\"reverb\",\"on\":true,\"params\":{\"size\":0.6,\"damping\":0.5,\"width\":1,\"preDelay\":20,\"mix\":1}}]},{\"id\":\"bus-delay\",\"name\":\"Delay\",\"volume\":0,\"pan\":0,\"mute\":false,\"inserts\":[{\"id\":\"fx-bus-delay\",\"type\":\"delay\",\"on\":true,\"params\":{\"time\":375,\"feedback\":0.4,\"mix\":1,\"tone\":6000,\"pingPong\":1},\"sync\":\"1/8d\"}]}],\"tracks\":[{\"id\":\"tr-drums\",\"name\":\"Drums\",\"kind\":\"audio\",\"color\":0,\"volume\":-3,\"pan\":0,\"mute\":false,\"solo\":false,\"sends\":[],\"inserts\":[],\"automation\":[],\"clips\":[{\"id\":\"cl-drums\",\"kind\":\"audio\",\"name\":\"Drum loop\",\"asset\":\"as-drums\",\"start\":0,\"length\":32,\"offset\":0,\"gain\":0,\"fadeIn\":0,\"fadeOut\":0,\"loop\":true}]},{\"id\":\"tr-bass\",\"name\":\"Bass\",\"kind\":\"instrument\",\"color\":2,\"volume\":-6,\"pan\":0,\"mute\":false,\"solo\":false,\"sends\":[],\"inserts\":[{\"id\":\"fx-bass-eq\",\"type\":\"eq\",\"on\":true,\"params\":{\"lowCut\":35,\"lowFreq\":120,\"lowGain\":0,\"midFreq\":1000,\"midGain\":0,\"midQ\":1,\"highFreq\":8000,\"highGain\":-3}}],\"automation\":[],\"instrument\":{\"kind\":\"synth\",\"patch\":{\"format\":\"uw-synth-patch\",\"version\":1,\"name\":\"Fat saw bass\",\"category\":\"bass\",\"author\":\"Sinebloom\",\"tags\":[],\"osc\":[{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":-1,\"semi\":0,\"fine\":0,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":-1,\"semi\":0,\"fine\":-9,\"level\":0.7,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"wavetable\",\"table\":\"harmonic-sweep\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.5,\"pulseWidth\":0.5}],\"sub\":{\"level\":0.5,\"octave\":-1,\"wave\":\"square\"},\"noise\":{\"level\":0,\"color\":\"white\"},\"unison\":{\"voices\":1,\"detune\":0.15,\"spread\":0.5},\"filter\":{\"type\":\"ladder\",\"cutoff\":700,\"resonance\":0.25,\"envAmount\":0.4,\"keyTrack\":0.5,\"drive\":0},\"ampEnv\":{\"attack\":0.003,\"decay\":0.3,\"sustain\":0.85,\"release\":0.1},\"modEnv\":{\"attack\":0.005,\"decay\":0.35,\"sustain\":0.1,\"release\":0.3},\"lfo\":[{\"shape\":\"sine\",\"rate\":5,\"sync\":\"\",\"retrigger\":false},{\"shape\":\"triangle\",\"rate\":0.3,\"sync\":\"\",\"retrigger\":false}],\"matrix\":[],\"glide\":0.03,\"mono\":true,\"legato\":false,\"polyphony\":8,\"velocity\":0.6,\"bendRange\":2,\"fx\":{\"distortion\":{\"on\":false,\"type\":\"soft\",\"drive\":0.3,\"tone\":8000,\"mix\":1},\"chorus\":{\"on\":false,\"rate\":0.6,\"depth\":3,\"mix\":0.4},\"delay\":{\"on\":false,\"time\":0.375,\"sync\":\"\",\"feedback\":0.35,\"mix\":0.25,\"pingPong\":true,\"tone\":6000},\"reverb\":{\"on\":false,\"size\":0.5,\"damping\":0.5,\"width\":1,\"mix\":0.25}},\"gain\":0.7},\"name\":\"bass-fat-saw\"},\"clips\":[{\"id\":\"cl-bass\",\"kind\":\"notes\",\"name\":\"Bass line\",\"start\":0,\"length\":32,\"loopBeats\":16,\"offset\":0,\"loop\":true,\"notes\":[{\"pitch\":33,\"start\":0,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":0.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":33,\"start\":1,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":1.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":33,\"start\":2,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":2.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":33,\"start\":3,\"duration\":0.45,\"velocity\":104},{\"pitch\":45,\"start\":3.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":4,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":4.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":5,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":5.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":6,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":6.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":29,\"start\":7,\"duration\":0.45,\"velocity\":104},{\"pitch\":41,\"start\":7.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":8,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":8.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":9,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":9.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":10,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":10.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":36,\"start\":11,\"duration\":0.45,\"velocity\":104},{\"pitch\":48,\"start\":11.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":12,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":12.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":13,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":13.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":14,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":14.5,\"duration\":0.4,\"velocity\":80},{\"pitch\":31,\"start\":15,\"duration\":0.45,\"velocity\":104},{\"pitch\":43,\"start\":15.5,\"duration\":0.4,\"velocity\":80}]}]},{\"id\":\"tr-pad\",\"name\":\"Pad\",\"kind\":\"instrument\",\"color\":1,\"volume\":-10,\"pan\":0,\"mute\":false,\"solo\":false,\"sends\":[{\"bus\":\"bus-reverb\",\"level\":0.35}],\"inserts\":[],\"automation\":[{\"target\":\"volume\",\"on\":true,\"points\":[{\"beat\":0,\"value\":-40},{\"beat\":8,\"value\":-10}]}],\"instrument\":{\"kind\":\"synth\",\"patch\":{\"format\":\"uw-synth-patch\",\"version\":1,\"name\":\"Warm strings\",\"category\":\"pad\",\"author\":\"Sinebloom\",\"tags\":[],\"osc\":[{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":true,\"wave\":\"sawtooth\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":-7,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"wavetable\",\"table\":\"harmonic-sweep\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.5,\"pulseWidth\":0.5}],\"sub\":{\"level\":0,\"octave\":-1,\"wave\":\"sine\"},\"noise\":{\"level\":0,\"color\":\"white\"},\"unison\":{\"voices\":4,\"detune\":0.25,\"spread\":0.9},\"filter\":{\"type\":\"ladder\",\"cutoff\":1800,\"resonance\":0.1,\"envAmount\":0.15,\"keyTrack\":0.5,\"drive\":0},\"ampEnv\":{\"attack\":0.6,\"decay\":1,\"sustain\":0.85,\"release\":1.4},\"modEnv\":{\"attack\":0.8,\"decay\":1.5,\"sustain\":0.3,\"release\":1},\"lfo\":[{\"shape\":\"sine\",\"rate\":5,\"sync\":\"\",\"retrigger\":false},{\"shape\":\"triangle\",\"rate\":0.3,\"sync\":\"\",\"retrigger\":false}],\"matrix\":[],\"glide\":0,\"mono\":false,\"legato\":false,\"polyphony\":8,\"velocity\":0.6,\"bendRange\":2,\"fx\":{\"distortion\":{\"on\":false,\"type\":\"soft\",\"drive\":0.3,\"tone\":8000,\"mix\":1},\"chorus\":{\"on\":true,\"rate\":0.4,\"depth\":3.5,\"mix\":0.4},\"delay\":{\"on\":false,\"time\":0.375,\"sync\":\"\",\"feedback\":0.35,\"mix\":0.25,\"pingPong\":true,\"tone\":6000},\"reverb\":{\"on\":true,\"size\":0.7,\"damping\":0.5,\"width\":1,\"mix\":0.35}},\"gain\":0.7},\"name\":\"pad-warm-strings\"},\"clips\":[{\"id\":\"cl-pad\",\"kind\":\"notes\",\"name\":\"Chords\",\"start\":0,\"length\":32,\"loopBeats\":16,\"offset\":0,\"loop\":true,\"notes\":[{\"pitch\":57,\"start\":0,\"duration\":3.95,\"velocity\":78},{\"pitch\":60,\"start\":0,\"duration\":3.95,\"velocity\":78},{\"pitch\":64,\"start\":0,\"duration\":3.95,\"velocity\":78},{\"pitch\":53,\"start\":4,\"duration\":3.95,\"velocity\":78},{\"pitch\":57,\"start\":4,\"duration\":3.95,\"velocity\":78},{\"pitch\":60,\"start\":4,\"duration\":3.95,\"velocity\":78},{\"pitch\":55,\"start\":8,\"duration\":3.95,\"velocity\":78},{\"pitch\":60,\"start\":8,\"duration\":3.95,\"velocity\":78},{\"pitch\":64,\"start\":8,\"duration\":3.95,\"velocity\":78},{\"pitch\":55,\"start\":12,\"duration\":3.95,\"velocity\":78},{\"pitch\":59,\"start\":12,\"duration\":3.95,\"velocity\":78},{\"pitch\":62,\"start\":12,\"duration\":3.95,\"velocity\":78}]}]},{\"id\":\"tr-lead\",\"name\":\"Lead\",\"kind\":\"instrument\",\"color\":3,\"volume\":-9,\"pan\":0.15,\"mute\":false,\"solo\":false,\"sends\":[{\"bus\":\"bus-delay\",\"level\":0.3},{\"bus\":\"bus-reverb\",\"level\":0.2}],\"inserts\":[],\"automation\":[],\"instrument\":{\"kind\":\"synth\",\"patch\":{\"format\":\"uw-synth-patch\",\"version\":1,\"name\":\"Soft whistle\",\"category\":\"lead\",\"author\":\"Sinebloom\",\"tags\":[],\"osc\":[{\"on\":true,\"wave\":\"sine\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":1,\"semi\":0,\"fine\":0,\"level\":0.8,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"square\",\"table\":\"basic-shapes\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":7,\"level\":0.6,\"pulseWidth\":0.5},{\"on\":false,\"wave\":\"wavetable\",\"table\":\"harmonic-sweep\",\"position\":0,\"octave\":0,\"semi\":0,\"fine\":0,\"level\":0.5,\"pulseWidth\":0.5}],\"sub\":{\"level\":0,\"octave\":-1,\"wave\":\"sine\"},\"noise\":{\"level\":0.05,\"color\":\"pink\"},\"unison\":{\"voices\":1,\"detune\":0.15,\"spread\":0.5},\"filter\":{\"type\":\"bandpass\",\"cutoff\":2000,\"resonance\":0.3,\"envAmount\":0,\"keyTrack\":1,\"drive\":0},\"ampEnv\":{\"attack\":0.06,\"decay\":0.3,\"sustain\":0.9,\"release\":0.25},\"modEnv\":{\"attack\":0.005,\"decay\":0.4,\"sustain\":0,\"release\":0.3},\"lfo\":[{\"shape\":\"sine\",\"rate\":4.8,\"sync\":\"\",\"retrigger\":false},{\"shape\":\"triangle\",\"rate\":0.3,\"sync\":\"\",\"retrigger\":false}],\"matrix\":[{\"source\":\"lfo1\",\"dest\":\"pitch\",\"amount\":0.012}],\"glide\":0,\"mono\":false,\"legato\":false,\"polyphony\":8,\"velocity\":0.6,\"bendRange\":2,\"fx\":{\"distortion\":{\"on\":false,\"type\":\"soft\",\"drive\":0.3,\"tone\":8000,\"mix\":1},\"chorus\":{\"on\":false,\"rate\":0.6,\"depth\":3,\"mix\":0.4},\"delay\":{\"on\":false,\"time\":0.375,\"sync\":\"\",\"feedback\":0.35,\"mix\":0.25,\"pingPong\":true,\"tone\":6000},\"reverb\":{\"on\":true,\"size\":0.55,\"damping\":0.5,\"width\":1,\"mix\":0.3}},\"gain\":0.7},\"name\":\"lead-soft-whistle\"},\"clips\":[{\"id\":\"cl-lead\",\"kind\":\"notes\",\"name\":\"Melody\",\"start\":16,\"length\":16,\"loopBeats\":16,\"offset\":0,\"loop\":false,\"notes\":[{\"pitch\":76,\"start\":0,\"duration\":1.5,\"velocity\":100},{\"pitch\":74,\"start\":1.5,\"duration\":0.5,\"velocity\":100},{\"pitch\":72,\"start\":2,\"duration\":2,\"velocity\":100},{\"pitch\":69,\"start\":4,\"duration\":1,\"velocity\":100},{\"pitch\":72,\"start\":5,\"duration\":1,\"velocity\":100},{\"pitch\":74,\"start\":6,\"duration\":2,\"velocity\":100},{\"pitch\":76,\"start\":8,\"duration\":1.5,\"velocity\":100},{\"pitch\":79,\"start\":9.5,\"duration\":0.5,\"velocity\":100},{\"pitch\":77,\"start\":10,\"duration\":2,\"velocity\":100},{\"pitch\":76,\"start\":12,\"duration\":1,\"velocity\":100},{\"pitch\":74,\"start\":13,\"duration\":1,\"velocity\":100},{\"pitch\":72,\"start\":14,\"duration\":2,\"velocity\":100}]}]}],\"assets\":[{\"id\":\"as-drums\",\"name\":\"Drum loop (generated)\",\"sampleRate\":48000,\"channels\":2,\"frames\":115200,\"bytes\":0,\"source\":\"generated\",\"recipe\":{\"kind\":\"synth\",\"bpm\":100,\"lengthBeats\":4,\"layers\":[{\"preset\":\"drum-synth-kick\",\"notes\":[{\"pitch\":36,\"start\":0,\"duration\":0.25,\"velocity\":118},{\"pitch\":36,\"start\":1,\"duration\":0.25,\"velocity\":118},{\"pitch\":36,\"start\":2,\"duration\":0.25,\"velocity\":118},{\"pitch\":36,\"start\":3,\"duration\":0.25,\"velocity\":118}]},{\"preset\":\"drum-snappy-snare\",\"notes\":[{\"pitch\":50,\"start\":1,\"duration\":0.2,\"velocity\":100},{\"pitch\":50,\"start\":3,\"duration\":0.2,\"velocity\":100}]},{\"preset\":\"drum-metal-hat\",\"notes\":[{\"pitch\":78,\"start\":0.5,\"duration\":0.1,\"velocity\":92},{\"pitch\":78,\"start\":1.5,\"duration\":0.1,\"velocity\":70},{\"pitch\":78,\"start\":2.5,\"duration\":0.1,\"velocity\":92},{\"pitch\":78,\"start\":3.5,\"duration\":0.1,\"velocity\":70}]}]}}]}"
          },
          "range": {
            "title": "Range",
            "type": "string",
            "enum": [
              "song",
              "loop"
            ],
            "default": "song"
          },
          "tail": {
            "title": "Tail after the end",
            "description": "Lets reverb and release tails ring out.",
            "type": "number",
            "minimum": 0,
            "maximum": 10,
            "default": 2,
            "x-unit": "s"
          },
          "target": {
            "title": "Compare loudness with",
            "type": "string",
            "enum": [
              "none",
              "ebu",
              "streaming",
              "apple",
              "podcast"
            ],
            "default": "streaming"
          }
        },
        "required": []
      },
      "TracklayerMixdownResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "name",
              "tempo",
              "timeSignature",
              "seconds",
              "startBeat",
              "endBeat",
              "tracks",
              "peakDbfs",
              "loudness",
              "wavFile"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "tempo": {
                "type": "number"
              },
              "timeSignature": {
                "type": "string"
              },
              "seconds": {
                "type": "number"
              },
              "startBeat": {
                "type": "number"
              },
              "endBeat": {
                "type": "number"
              },
              "tracks": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "name",
                    "kind",
                    "clips",
                    "notes"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "clips": {
                      "type": "integer"
                    },
                    "notes": {
                      "type": "integer"
                    }
                  }
                }
              },
              "peakDbfs": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "loudness": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "seconds",
                  "sampleRate",
                  "channels",
                  "integratedLufs",
                  "momentaryMaxLufs",
                  "shortTermMaxLufs",
                  "lraLu",
                  "truePeakDbtp",
                  "samplePeakDbfs",
                  "channelTruePeakDbtp",
                  "target",
                  "decodedBy",
                  "timeline"
                ],
                "properties": {
                  "seconds": {
                    "type": "number"
                  },
                  "sampleRate": {
                    "type": "integer"
                  },
                  "channels": {
                    "type": "integer"
                  },
                  "integratedLufs": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Programme loudness, gated (BS.1770-4)."
                  },
                  "momentaryMaxLufs": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "shortTermMaxLufs": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "lraLu": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Loudness range (EBU Tech 3342)."
                  },
                  "truePeakDbtp": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "samplePeakDbfs": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "channelTruePeakDbtp": {
                    "type": "array",
                    "items": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "target": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "additionalProperties": false,
                    "required": [
                      "id",
                      "label",
                      "lufs",
                      "truePeakLimit",
                      "gainDb",
                      "peakLimited"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "lufs": {
                        "type": "number"
                      },
                      "truePeakLimit": {
                        "type": "number"
                      },
                      "gainDb": {
                        "type": "number"
                      },
                      "peakLimited": {
                        "type": "boolean"
                      }
                    }
                  },
                  "decodedBy": {
                    "type": "string",
                    "enum": [
                      "engine",
                      "ffmpeg"
                    ]
                  },
                  "timeline": {
                    "type": "array",
                    "description": "Short-term loudness at every full second (null below −70 LUFS or before 3 s).",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "time",
                        "shortTermLufs"
                      ],
                      "properties": {
                        "time": {
                          "type": "number"
                        },
                        "shortTermLufs": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      }
                    }
                  }
                }
              },
              "wavFile": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "artifactId",
                  "filename",
                  "mime",
                  "bytes",
                  "sha256",
                  "path"
                ],
                "properties": {
                  "artifactId": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "mime": {
                    "type": "string"
                  },
                  "bytes": {
                    "type": "integer"
                  },
                  "sha256": {
                    "type": "string"
                  },
                  "path": {
                    "type": "string",
                    "description": "Download path on the same site (valid for about 2 hours)."
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}