prompt:
GravityLLM: Output ONLY valid JSON matching the Spatial9Scene schema.

INPUT:
{
  "target_format": "iamf",
  "max_objects": 8,
  "style": "cinematic",
  "section": "break",
  "global": {
    "bpm": 90,
    "energy": 0.45
  },
  "stems": [
    {
      "id": "d1",
      "class": "dialogue",
      "lufs": -18.0,
      "transient": 0.35,
      "band_energy": {
        "low": 0.05,
        "mid": 0.75,
        "high": 0.2
      },
      "leadness": 0.98
    },
    {
      "id": "st1",
      "class": "strings",
      "lufs": -24.0,
      "transient": 0.08,
      "band_energy": {
        "low": 0.15,
        "mid": 0.6,
        "high": 0.25
      },
      "leadness": 0.25
    },
    {
      "id": "p1",
      "class": "pad",
      "lufs": -25.5,
      "transient": 0.05,
      "band_energy": {
        "low": 0.25,
        "mid": 0.55,
        "high": 0.2
      },
      "leadness": 0.1
    },
    {
      "id": "fx1",
      "class": "fx",
      "lufs": -26.0,
      "transient": 0.15,
      "band_energy": {
        "low": 0.1,
        "mid": 0.25,
        "high": 0.65
      },
      "leadness": 0.05
    }
  ],
  "rules": [
    {
      "type": "anchor",
      "track_class": "dialogue",
      "az_deg": 0,
      "el_deg": 5,
      "dist_m": 1.8
    },
    {
      "type": "keep_dialogue_clear",
      "band_hz": [
        1000,
        4000
      ]
    },
    {
      "type": "width_pref",
      "track_class": "pad",
      "min_width": 0.8
    }
  ]
}

completion:
{
  "version": "1.0",
  "bed": {
    "layout": "iamf",
    "loudness_target_lufs": -16.0,
    "room_preset": "cinema_large"
  },
  "objects": [
    {
      "id": "d1",
      "class": "dialogue",
      "az_deg": 0,
      "el_deg": 5,
      "dist_m": 1.8,
      "width": 0.1,
      "gain_db": 0.0,
      "reverb_send": 0.08,
      "early_reflections": 0.18,
      "motion": [
        {
          "t": 0.0,
          "az_deg": 0,
          "el_deg": 5,
          "dist_m": 1.8
        },
        {
          "t": 1.0,
          "az_deg": 0,
          "el_deg": 5,
          "dist_m": 1.8
        }
      ]
    },
    {
      "id": "st1",
      "class": "strings",
      "az_deg": -35,
      "el_deg": 18,
      "dist_m": 4.2,
      "width": 0.4,
      "gain_db": -4.0,
      "reverb_send": 0.24,
      "early_reflections": 0.1,
      "motion": [
        {
          "t": 0.0,
          "az_deg": -35,
          "el_deg": 18,
          "dist_m": 4.2
        },
        {
          "t": 1.0,
          "az_deg": -20,
          "el_deg": 18,
          "dist_m": 4.2
        }
      ]
    },
    {
      "id": "p1",
      "class": "pad",
      "az_deg": -80,
      "el_deg": 18,
      "dist_m": 5.5,
      "width": 0.85,
      "gain_db": -6.0,
      "reverb_send": 0.35,
      "early_reflections": 0.12,
      "motion": [
        {
          "t": 0.0,
          "az_deg": -80,
          "el_deg": 18,
          "dist_m": 5.5
        },
        {
          "t": 1.0,
          "az_deg": -80,
          "el_deg": 18,
          "dist_m": 5.5
        }
      ]
    },
    {
      "id": "fx1",
      "class": "fx",
      "az_deg": 95,
      "el_deg": 28,
      "dist_m": 7.0,
      "width": 0.7,
      "gain_db": -10.0,
      "reverb_send": 0.55,
      "early_reflections": 0.08,
      "motion": [
        {
          "t": 0.0,
          "az_deg": 80,
          "el_deg": 28,
          "dist_m": 7.0
        },
        {
          "t": 1.0,
          "az_deg": 120,
          "el_deg": 28,
          "dist_m": 7.0
        }
      ]
    }
  ],
  "constraints_applied": [
    "anchor:dialogue@0/5/1.8",
    "keep_dialogue_clear_1000-4000Hz",
    "pad_width>=0.80"
  ]
}


prompt:
GravityLLM: Output ONLY valid JSON matching the Spatial9Scene schema.

INPUT:
{
  "target_format": "iamf",
  "max_objects": 12,
  "style": "live_stage",
  "section": "chorus",
  "global": {
    "bpm": 112,
    "energy": 0.78
  },
  "stems": [
    {
      "id": "lv1",
      "class": "lead_vocal",
      "lufs": -15.5,
      "transient": 0.3,
      "band_energy": {
        "low": 0.08,
        "mid": 0.72,
        "high": 0.2
      },
      "leadness": 0.96
    },
    {
      "id": "g1",
      "class": "guitar",
      "lufs": -17.4,
      "transient": 0.46,
      "band_energy": {
        "low": 0.15,
        "mid": 0.6,
        "high": 0.25
      },
      "leadness": 0.5
    },
    {
      "id": "g2",
      "class": "guitar",
      "lufs": -18.1,
      "transient": 0.44,
      "band_energy": {
        "low": 0.12,
        "mid": 0.62,
        "high": 0.26
      },
      "leadness": 0.42
    },
    {
      "id": "dr1",
      "class": "drums_bus",
      "lufs": -11.8,
      "transient": 0.88,
      "band_energy": {
        "low": 0.4,
        "mid": 0.4,
        "high": 0.2
      },
      "leadness": 0.35
    },
    {
      "id": "b1",
      "class": "bass",
      "lufs": -12.4,
      "transient": 0.61,
      "band_energy": {
        "low": 0.82,
        "mid": 0.14,
        "high": 0.04
      },
      "leadness": 0.3
    },
    {
      "id": "crowd",
      "class": "ambience",
      "lufs": -27.0,
      "transient": 0.05,
      "band_energy": {
        "low": 0.2,
        "mid": 0.5,
        "high": 0.3
      },
      "leadness": 0.02
    }
  ],
  "rules": [
    {
      "type": "anchor",
      "track_class": "lead_vocal",
      "az_deg": 0,
      "el_deg": 8,
      "dist_m": 1.7
    },
    {
      "type": "mono_low_end",
      "hz_below": 120
    },
    {
      "type": "stage_pair",
      "left_class": "guitar",
      "right_class": "guitar"
    }
  ]
}

completion:
{
  "version": "1.0",
  "bed": {
    "layout": "iamf",
    "loudness_target_lufs": -15.0,
    "room_preset": "stage_live"
  },
  "objects": [
    {
      "id": "lv1",
      "class": "lead_vocal",
      "az_deg": 0,
      "el_deg": 8,
      "dist_m": 1.7,
      "width": 0.18,
      "gain_db": 0.0,
      "reverb_send": 0.16,
      "early_reflections": 0.24,
      "motion": [
        {
          "t": 0.0,
          "az_deg": 0,
          "el_deg": 8,
          "dist_m": 1.7
        },
        {
          "t": 1.0,
          "az_deg": 0,
          "el_deg": 8,
          "dist_m": 1.7
        }
      ]
    },
    {
      "id": "g1",
      "class": "guitar",
      "az_deg": -35,
      "el_deg": 6,
      "dist_m": 2.8,
      "width": 0.26,
      "gain_db": -1.5,
      "reverb_send": 0.11,
      "early_reflections": 0.15,
      "motion": [
        {
          "t": 0.0,
          "az_deg": -35,
          "el_deg": 6,
          "dist_m": 2.8
        },
        {
          "t": 1.0,
          "az_deg": -30,
          "el_deg": 6,
          "dist_m": 2.8
        }
      ]
    },
    {
      "id": "g2",
      "class": "guitar",
      "az_deg": 35,
      "el_deg": 6,
      "dist_m": 2.8,
      "width": 0.26,
      "gain_db": -1.5,
      "reverb_send": 0.11,
      "early_reflections": 0.15,
      "motion": [
        {
          "t": 0.0,
          "az_deg": 35,
          "el_deg": 6,
          "dist_m": 2.8
        },
        {
          "t": 1.0,
          "az_deg": 30,
          "el_deg": 6,
          "dist_m": 2.8
        }
      ]
    },
    {
      "id": "dr1",
      "class": "drums_bus",
      "az_deg": 0,
      "el_deg": 0,
      "dist_m": 2.4,
      "width": 0.2,
      "gain_db": -0.5,
      "reverb_send": 0.08,
      "early_reflections": 0.12,
      "motion": [
        {
          "t": 0.0,
          "az_deg": 0,
          "el_deg": 0,
          "dist_m": 2.4
        },
        {
          "t": 1.0,
          "az_deg": 0,
          "el_deg": 0,
          "dist_m": 2.4
        }
      ]
    },
    {
      "id": "b1",
      "class": "bass",
      "az_deg": 0,
      "el_deg": -5,
      "dist_m": 2.8,
      "width": 0.05,
      "gain_db": -0.8,
      "reverb_send": 0.04,
      "early_reflections": 0.05,
      "motion": [
        {
          "t": 0.0,
          "az_deg": 0,
          "el_deg": -5,
          "dist_m": 2.8
        },
        {
          "t": 1.0,
          "az_deg": 0,
          "el_deg": -5,
          "dist_m": 2.8
        }
      ]
    },
    {
      "id": "crowd",
      "class": "ambience",
      "az_deg": 180,
      "el_deg": 12,
      "dist_m": 10.0,
      "width": 1.0,
      "gain_db": -12.0,
      "reverb_send": 0.6,
      "early_reflections": 0.1,
      "motion": [
        {
          "t": 0.0,
          "az_deg": 160,
          "el_deg": 12,
          "dist_m": 10.0
        },
        {
          "t": 1.0,
          "az_deg": 200,
          "el_deg": 12,
          "dist_m": 10.0
        }
      ]
    }
  ],
  "constraints_applied": [
    "anchor:lead_vocal@0/8/1.7",
    "mono_low_end<120Hz",
    "stage_pair:guitars"
  ]
}