# Music Production Calc – Tempo Grid

> Music Production Calc – Tempo Grid is a paid API for AI agents from music-production-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Calculates note duration values (1/1 to 1/32, straight/dotted/triplet) at a given BPM in milliseconds, LFO Hz, audio samples, and MIDI ticks.

## Facts

- Endpoint: GET https://music-production-calc.x402tookit.com/tempo-grid?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/music-production-calc-tempo-grid-b69c02f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zBDZuUyIXU5KwBKOGnQz7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability music-production-calc-tempo-grid-b69c02f2
```

Example prompt: Can you give me the full tempo grid for 128 BPM — I need all note values from whole notes down to 1/32, straight, dotted, and triplet, showing delay times in milliseconds, LFO rates in Hz, sample counts at 44100 Hz, and MIDI ticks at 480 PPQ?

## When to prefer this

Use this endpoint when you need precise, multi-format timing values for every standard note division at a given BPM — ideal for configuring delay times, LFO rates, MIDI sequencers, or sample-accurate timing in DAWs. Prefer this over manual calculation when you need straight, dotted, and triplet variants across all note values in one call, or when you need simultaneous output in ms, Hz, samples, and MIDI ticks.

## Known failure modes

- BPM out of range (below 20 or above 400) returns an error or empty grid
- Missing required `bpm` query parameter returns a 400-level error
- Non-numeric BPM value causes a validation error
- Unusual PPQ values may produce non-integer tick counts with ticksAreWhole=false
- Payment not included or invalid returns 402 Payment Required

## How this service works

Note values 1/1 to 1/32 (straight, dotted, triplet) at a BPM as ms, LFO Hz, samples and MIDI ticks.

## Output

Returns a full tempo grid array with one row per note division (1/1 through 1/32), each containing straight, dotted, and triplet variants. Every variant includes duration in milliseconds (ms), LFO frequency in Hz, sample count (at the given or default sample rate), MIDI tick count, and a flag for whether ticks are whole numbers. Also returns the bar duration in ms for a 4/4 bar, the BPM used, and a timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "bpm"
     ],
     "properties": {
      "bpm": {
       "type": "number",
       "description": "Tempo in quarter-note beats per minute, 20 to 400"
      },
      "ppq": {
       "type": "integer",
       "description": "MIDI resolution in ticks per quarter note (default 480)"
      },
      "sampleRate": {
       "type": "number",
       "description": "Sample rate in Hz for sample counts (default 44100)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "bpm": {
       "type": [
        "null",
        "number"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "grid": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "note": {
          "type": [
           "null",
           "string"
          ]
         },
         "dotted": {
          "type": [
           "null",
           "object"
          ],
          "properties": {
           "hz": {
            "type": [
             "null",
             "number"
            ]
           },
           "ms": {
            "type": [
             "null",
             "number"
            ]
           },
           "ticks": {
            "type": [
             "null",
             "number"
            ]
           },
           "samples": {
            "type": [
             "null",
             "number"
            ]
           },
           "ticksAreWhole": {
            "type": [
             "boolean",
             "null"
            ]
           }
          }
         },
         "triplet": {
          "type": [
           "null",
           "object"
          ],
          "properties": {
           "hz": {
            "type": [
             "null",
             "number"
            ]
           },
           "ms": {
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/music-production-calc-tempo-grid-b69c02f2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from music-production-calc.x402tookit.com](https://www.zero.xyz/host/music-production-calc.x402tookit.com/llms.txt)
