Skip to content
HALOWERK

Podcast and Music Analysis

midi clock onset grid deviation

MIDI grid deviation measures note-on timing against the nearest subdivision of a quarter note. Use it when an agent needs inspecting quantization without modifying the file.

POST https://ton.halowerk.com/v1/midi-clock-onset-grid-deviation

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
midistringYes
subdivisionsintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "midi": {
      "type": "string",
      "maxLength": 60000,
      "minLength": 1
    },
    "subdivisions": {
      "type": "integer",
      "minimum": 1,
      "maximum": 64
    }
  },
  "required": [
    "midi",
    "subdivisions"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "midi": "TVRoZAAAAAYAAAABAeBNVHJrAAAAJgD/UQMHoSAAmSVQh0CJJQAAmSVQh0CJJQAAmSVQh0CJJQAA/y8A",
  "subdivisions": 4
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "notes": {
          "type": "integer"
        },
        "mean_abs_ticks": {
          "type": "number"
        },
        "worst_abs_ticks": {
          "type": "number"
        }
      },
      "required": [
        "notes",
        "mean_abs_ticks",
        "worst_abs_ticks"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’