{
  "tool": "matric-nqf4.dance_tempo",
  "name": "Tempo and bar count (CDU-GEN-NSC-400)",
  "answers": "How many beats and full bars fit a piece at a stated tempo and time signature.",
  "degree": {
    "id": "competency:matric-nqf4",
    "code": "CDU-GEN-NSC-400",
    "name": "Senior Certificate (Amended) — exam-readiness programme (NQF 4 matric)",
    "version": "1.0.0"
  },
  "reference": "Umalusi/NSC subject catalogue, worked reference (offline reconstruction); Dance Studies row of §4 — a tempo/bar count",
  "endpoint": "/faculty/matric-nqf4/dance_tempo",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "tempoBpm",
      "beatsPerBar",
      "durationSeconds"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "tempoBpm": {
        "type": "number",
        "description": "tempo (beats per minute, > 0)",
        "minimum": 0.001,
        "maximum": 1000
      },
      "beatsPerBar": {
        "type": "number",
        "description": "beats per bar (whole, ≥ 1)",
        "minimum": 1,
        "maximum": 32
      },
      "durationSeconds": {
        "type": "number",
        "description": "duration (s, > 0) (s)",
        "minimum": 0.001,
        "maximum": 86400
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "beats",
      "fullBars"
    ],
    "properties": {
      "beats": {
        "type": "number",
        "description": "total beats"
      },
      "fullBars": {
        "type": "number",
        "description": "complete bars"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "tempoBpm": 120,
    "beatsPerBar": 4,
    "durationSeconds": 90
  }
}