{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.music.arrangement.schema.json",
  "title": "rig.music.arrangement",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "frames": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "patterns"
        ],
        "properties": {
          "patterns": {
            "type": "array",
            "items": {
              "$ref": "./_defs.schema.json#/$defs/entity"
            }
          }
        }
      }
    },
    "currentFrame": {
      "$ref": "./_defs.schema.json#/$defs/int"
    },
    "loop": {
      "$ref": "./_defs.schema.json#/$defs/bool"
    },
    "loopStartFrame": {
      "$ref": "./_defs.schema.json#/$defs/int"
    },
    "loopEndFrame": {
      "$ref": "./_defs.schema.json#/$defs/int"
    }
  },
  "required": [
    "frames"
  ]
}
