API & MCP

Everything a person can do on Tempo & Delay Time Calculator (BPM to ms), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://tracklayertempodelay.usefulweb.app/api/v1/calculate – run Tempo & Delay Time Calculator (BPM to ms)
  • GET https://tracklayertempodelay.usefulweb.app/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Tempo & Delay Time Calculator (BPM to ms)

Turns a tempo into delay times for whole to sixty-fourth notes, straight, dotted and triplet, in milliseconds, LFO rate in hertz and samples at your sample rate, plus pre-delay and decay suggestions for reverbs that breathe with the song. The reverse mode finds the tempo at which a delay time equals a note value. The same tempo maths sets the synced delays in the Tracklayer app.

Inputs of Tempo & Delay Time Calculator (BPM to ms)
FieldTypeDefaultDescription
modeselect (bpm, ms)"bpm"Calculate
bpmnumber120Tempo. Quarter notes per minute.
msnumber375Delay time (reverse mode)
noteValueselect (2/1, 2/1d, 2/1t, 1/1, 1/1d, 1/1t, 1/2, 1/2d, 1/2t, 1/4, 1/4d, 1/4t, 1/8, 1/8d, 1/8t, 1/16, 1/16d, 1/16t, 1/32, 1/32d, 1/32t, 1/64, 1/64d, 1/64t)"1/8d"Note value of that delay (reverse mode)
timeSignaturetext"4/4"Time signature. For the bar length and the long reverb suggestion.
sampleRateselect (44100, 48000, 88200, 96000)"48000"Sample rate

Example request

Delay times at 120 BPM

curl -X POST https://tracklayertempodelay.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"mode":"bpm","bpm":120,"ms":375,"noteValue":"1/8d","timeSignature":"4/4","sampleRate":"48000"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

  • Streamable HTTP endpoint: https://tracklayertempodelay.usefulweb.app/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: tracklayer_tempo_delay
  • Local stdio connector: node src/mcp-stdio.ts --tool=tracklayer-tempo-delay
{
  "mcpServers": {
    "tracklayer-tempo-delay": { "type": "http", "url": "https://tracklayertempodelay.usefulweb.app/mcp" }
  }
}