Skip to content
HALOWERK

Podcast and Music Analysis

melody interval inversion

Melody inversion reflects supplied pitches around the first note and returns MIDI note numbers. Use it when an agent needs a deterministic music calculation.

POST https://ton.halowerk.com/v1/melody-interval-inversion

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
notesstringYes
snapshotSee schemaNo
Show full input schema
{
  "type": "object",
  "properties": {
    "notes": {
      "type": "string",
      "minLength": 1,
      "maxLength": 112
    },
    "snapshot": {
      "enum": [
        "music-v1"
      ]
    }
  },
  "required": [
    "notes"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "notes": "C4 E4 G4 C5",
  "snapshot": "music-v1"
}

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": {
        "midi": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      },
      "required": [
        "midi"
      ]
    },
    "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 โ†’