API & MCP

Everything a person can do on Tempo Ramp Planner (Speed Trainer), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Tempo Ramp Planner (Speed Trainer)

Build a piece up to speed step by step: choose a start tempo, a target, the step in BPM and how many bars each tempo lasts. You get the plan with the time each stage starts, the total practice time, a song map for the Tonegrid metronome and the whole ramp as a MIDI file and a WAV click track. Works for slowing down too.

Inputs of Tempo Ramp Planner (Speed Trainer)
FieldTypeDefaultDescription
startnumber80Start tempo (BPM)
targetnumber120Target tempo (BPM)
stepnumber5Change per stage (BPM)
everyinteger4Bars per stage
metertext"4/4"Meter
groupstext—Accent groups (optional). Numbers joined by + that add up to the beats per bar; empty = accent only on beat 1.
subselect (1, 2, 3, 4)"1"Subdivision
holdinteger4Extra bars at the target
soundselect (wood, beep, soft)"wood"Click sound
countIninteger1Count-in bars
audiobooleantrueRender a WAV click track as well

Example request

From 80 to 120 BPM, +5 every 4 bars

curl -X POST https://tonegridtemporamp.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"start":80,"target":120,"step":5,"every":4,"meter":"4/4","groups":"","sub":"1","hold":4,"sound":"wood","countIn":1,"audio":true}'

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)

{
  "mcpServers": {
    "tonegrid-tempo-ramp": { "type": "http", "url": "https://tonegridtemporamp.usefulweb.app/mcp" }
  }
}