Music Tempo Marker Map

Convert beat markers to elapsed milliseconds across a piecewise constant tempo map.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /music-tempo-marker-map/v1/check with an x402 V2 client.

Worked example

Request

{
  "changes": [
    {
      "beat": 0,
      "bpm": 120
    },
    {
      "beat": 4,
      "bpm": 60
    }
  ],
  "markers": [
    {
      "id": "downbeat",
      "beat": 6
    },
    {
      "id": "pickup",
      "beat": 1.5
    }
  ]
}

Result

{
  "markers": [
    {
      "id": "downbeat",
      "elapsed_ms": 4000
    },
    {
      "id": "pickup",
      "elapsed_ms": 750
    }
  ]
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter