API & MCP

Everything a person can do on Membrane Sound Lab, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Membrane Sound Lab

Explore a rectangular membrane with spatial mode plots, interactive strike positions and configurable synthesized WAV samples.

Inputs of Membrane Sound Lab
FieldTypeDefaultDescription
widthnumber1Relative width
heightnumber1.4Relative height
strikeXnumber0.35Strike X (0–1)
strikeYnumber0.4Strike Y (0–1)
pitchnumber130Fundamental frequency (Hz)
secondsnumber2Sample duration (seconds)
decaynumber2Decay rate

Example request

Try an example

curl -X POST https://tonegridmembranelab.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{}'

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-membrane-lab": { "type": "http", "url": "https://tonegridmembranelab.usefulweb.app/mcp" }
  }
}