{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.audio.analysis.schema.json",
  "title": "rig.audio.analysis",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "source": {
      "type": "string",
      "enum": [
        "input",
        "asset"
      ]
    },
    "asset": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "bandCount": {
      "$ref": "./_defs.schema.json#/$defs/int"
    },
    "smoothing": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "onsetThreshold": {
      "$ref": "./_defs.schema.json#/$defs/float"
    }
  },
  "required": [
    "source",
    "bandCount"
  ]
}
