{
  "rule": "A run is a layer's continuous on-bars, carrying on across section boundaries. Its fade-in is the fadeIn of the section where it starts; its fade-out the fadeOut of the section where it ends; none at the boundary. Curves: equalPower unless named.",
  "spec": "SPEC.md#fades",
  "misreading": "Fades apply per section (or per section-local run).",
  "bpm": 120,
  "sampleRate": 48000,
  "catalog": {
    "scenes": [
      {
        "id": "sc_a",
        "name": "verse",
        "loopBars": 4,
        "meter": "4/4"
      },
      {
        "id": "sc_b",
        "name": "chorus",
        "loopBars": 8,
        "meter": "4/4"
      },
      {
        "id": "sc_c",
        "name": "bridge",
        "loopBars": 4,
        "meter": "3/4"
      }
    ],
    "tracks": [
      {
        "id": "t_a_kick",
        "homeSceneId": "sc_a",
        "panelId": "drum",
        "role": "kick",
        "name": "kick1"
      },
      {
        "id": "t_a_bass",
        "homeSceneId": "sc_a",
        "panelId": "bass",
        "role": "bass",
        "name": "bass1"
      },
      {
        "id": "t_a_pad",
        "homeSceneId": "sc_a",
        "panelId": "pad",
        "role": "pads",
        "name": "pad1"
      },
      {
        "id": "t_b_kick",
        "homeSceneId": "sc_b",
        "panelId": "drum",
        "role": "kick",
        "name": "kick2"
      },
      {
        "id": "t_b_lead",
        "homeSceneId": "sc_b",
        "panelId": "instrument",
        "role": "lead",
        "name": "lead1"
      },
      {
        "id": "t_b_chords",
        "homeSceneId": "sc_b",
        "panelId": "pad",
        "role": "chords",
        "name": "chord1"
      },
      {
        "id": "t_c_perc",
        "homeSceneId": "sc_c",
        "panelId": "drum",
        "role": "perc",
        "name": "perc1"
      },
      {
        "id": "t_c_bell",
        "homeSceneId": "sc_c",
        "panelId": "instrument",
        "role": "keys",
        "name": "bell1"
      }
    ]
  },
  "doc": {
    "schema": "sas-arrangement/1",
    "id": "arr",
    "projectId": "p",
    "name": "Arrangement",
    "instances": {
      "arr:i1": {
        "id": "arr:i1",
        "orderKey": "a0",
        "variantId": "arr:v1"
      },
      "arr:i2": {
        "id": "arr:i2",
        "orderKey": "a1",
        "variantId": "arr:v2"
      }
    },
    "variants": {
      "arr:v1": {
        "id": "arr:v1",
        "sceneId": "sc_a",
        "lengthBars": 4,
        "newLayers": "on",
        "layers": {
          "t_a_kick": {
            "fadeInBeats": 2,
            "fadeOutBeats": 4
          }
        }
      },
      "arr:v2": {
        "id": "arr:v2",
        "sceneId": "sc_a",
        "lengthBars": 4,
        "newLayers": "on",
        "layers": {
          "t_a_kick": {
            "fadeInBeats": 3,
            "fadeOutBeats": 1,
            "fadeOutCurve": "sCurve"
          }
        }
      }
    }
  },
  "expected": {
    "timing": {
      "v": 1,
      "sampleRate": 48000,
      "bpm": 120,
      "endFrame": 768000,
      "sections": [
        {
          "id": "arr:i1",
          "label": "verse 1",
          "meter": "4/4",
          "lengthBars": 4,
          "startFrame": 0,
          "lengthFrames": 384000
        },
        {
          "id": "arr:i2",
          "label": "verse 2",
          "meter": "4/4",
          "lengthBars": 4,
          "startFrame": 384000,
          "lengthFrames": 384000
        }
      ]
    },
    "timingHash": "3368092e465a4dc7c0680aa4ec3f6dd200a56dd152b83cd00cd31735281a2ec4",
    "arrangement": {
      "v": 1,
      "timingHash": "3368092e465a4dc7c0680aa4ec3f6dd200a56dd152b83cd00cd31735281a2ec4",
      "silent": [],
      "layers": [
        {
          "layerId": "t_a_bass",
          "runs": [
            {
              "section": "arr:i1",
              "enterBar": 1,
              "exitBar": null,
              "offsetBeats": 0,
              "gainDb": 0,
              "gainPoints": [],
              "fadeIn": {
                "beats": 0,
                "curve": "equalPower"
              },
              "fadeOut": {
                "beats": 0,
                "curve": "equalPower"
              }
            },
            {
              "section": "arr:i2",
              "enterBar": 1,
              "exitBar": null,
              "offsetBeats": 0,
              "gainDb": 0,
              "gainPoints": [],
              "fadeIn": {
                "beats": 0,
                "curve": "equalPower"
              },
              "fadeOut": {
                "beats": 0,
                "curve": "equalPower"
              }
            }
          ]
        },
        {
          "layerId": "t_a_kick",
          "runs": [
            {
              "section": "arr:i1",
              "enterBar": 1,
              "exitBar": null,
              "offsetBeats": 0,
              "gainDb": 0,
              "gainPoints": [],
              "fadeIn": {
                "beats": 2,
                "curve": "equalPower"
              },
              "fadeOut": {
                "beats": 0,
                "curve": "equalPower"
              }
            },
            {
              "section": "arr:i2",
              "enterBar": 1,
              "exitBar": null,
              "offsetBeats": 0,
              "gainDb": 0,
              "gainPoints": [],
              "fadeIn": {
                "beats": 0,
                "curve": "equalPower"
              },
              "fadeOut": {
                "beats": 1,
                "curve": "sCurve"
              }
            }
          ]
        },
        {
          "layerId": "t_a_pad",
          "runs": [
            {
              "section": "arr:i1",
              "enterBar": 1,
              "exitBar": null,
              "offsetBeats": 0,
              "gainDb": 0,
              "gainPoints": [],
              "fadeIn": {
                "beats": 0,
                "curve": "equalPower"
              },
              "fadeOut": {
                "beats": 0,
                "curve": "equalPower"
              }
            },
            {
              "section": "arr:i2",
              "enterBar": 1,
              "exitBar": null,
              "offsetBeats": 0,
              "gainDb": 0,
              "gainPoints": [],
              "fadeIn": {
                "beats": 0,
                "curve": "equalPower"
              },
              "fadeOut": {
                "beats": 0,
                "curve": "equalPower"
              }
            }
          ]
        }
      ],
      "treatments": []
    },
    "arrangementHash": "3303153b2da8d5cf566b1a841c96f717f2d2a3a2f05c7400c7080c1e23b4aef1"
  }
}
