Skip to content
HALOWERK

File Formats and Conversion

smf performance onset grid

MIDI onset grid measures note attack deviations from the nearest supplied tick grid. Use it when an agent needs help quantifying performed timing before quantization.

POST https://format.halowerk.com/v1/smf-performance-onset-grid

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
midi_base64stringYes
grid_ticksintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "midi_base64": {
      "type": "string",
      "maxLength": 65000,
      "minLength": 1
    },
    "grid_ticks": {
      "type": "integer",
      "minimum": 1,
      "maximum": 8192
    }
  },
  "required": [
    "midi_base64",
    "grid_ticks"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "midi_base64": "TVRoZAAAAAYAAAABAGBNVHJrAAAAXADAMACwQH8A4ABAAJBDSACZJFAMiSQAJIBDAACQQ04AmSZQDIkmACSAQwAA4ABIALBAAACQQ1QAmSRQDIkkACSAQwAAkD9aAJkmUAyJJgCBBIA/AADgAEAA/y8A",
  "grid_ticks": 96
}

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": {
        "on_grid": {
          "type": "integer"
        },
        "off_grid": {
          "type": "integer"
        },
        "max_distance": {
          "type": "integer"
        }
      },
      "required": [
        "on_grid",
        "off_grid",
        "max_distance"
      ]
    },
    "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 โ†’