API & MCP

Everything a person can do on Tuning Reference (String Frequencies & Temperaments), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Tuning Reference (String Frequencies & Temperaments)

Look up the exact frequency of every string of an instrument tuning and of a whole octave of notes for a reference pitch between A4 = 415 and 466 Hz, in equal temperament, 5-limit just intonation, Pythagorean tuning, quarter-comma meantone, Werckmeister III or Vallotti on any tonic — with the deviation of each note from equal temperament in cents. The same tables as the tuner and drone in the Tonegrid app.

Inputs of Tuning Reference (String Frequencies & Temperaments)
FieldTypeDefaultDescription
instrumentselect (none, guitar/standard, guitar/dropD, guitar/halfDown, guitar/dadgad, guitar/openG, guitar/openD, guitar7/standard, bass4/standard, bass4/dropD, bass5/standard, ukulele/standard, ukulele/lowG, "guitar/standard"Instrument tuning
a4number440Reference pitch A4 (Hz)
temperamentselect (equal, just, pythagorean, meantone, werckmeister3, vallotti)"equal"Temperament
tonicselect (C, C♯, D, E♭, E, F, F♯, G, A♭, A, B♭, B)"C"Tonic (key the temperament is built on)
octaveinteger4Octave of the note table

Example request

Guitar in standard tuning at A4 = 440 Hz

curl -X POST https://tonegridtuningreference.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"instrument":"guitar/standard","a4":440,"temperament":"equal","tonic":"C","octave":4}'

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-tuning-reference": { "type": "http", "url": "https://tonegridtuningreference.usefulweb.app/mcp" }
  }
}