Tempo Grid
by Music Production Calc in Other
Note values 1/1 to 1/32 (straight, dotted, triplet) at a BPM as ms, LFO Hz, samples and MIDI ticks.
https://music-production-calc.x402tookit.com/tempo-grid- Price
- $0.02
- per call in USDC
- Uptime
- 57.9%
- last 30 days
- Response time
- 520 ms
- 1.0 s slowest 5%
- Last check
- Failed
- 29 h ago, next any minute now
Reliability
Latest check failed 29 h ago: Expected HTTP 402, got 530
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://music-production-calc.x402tookit.com/tempo-grid
Each call costs $0.02 in USDC on Polygon, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://music-production-calc.x402tookit.com/tempo-grid?bpm=120&ppq=480&sampleRate=44100Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
bpm | number | Yes | Tempo in quarter-note beats per minute, 20 to 400 |
ppq | integer | No | MIDI resolution in ticks per quarter note (default 480) |
sampleRate | number | No | Sample rate in Hz for sample counts (default 44100) |
Example response
The provider's example. We can't check it without paying.
Example response, 75 lines
{
"asOf": "2026-10-12T01:46:29.660Z",
"barMs4over4": 2000,
"bpm": 120,
"degraded": false,
"disclaimer": "Screening signal computed from the named public source. Not financial, legal or investment advice; provided as is. Verify at the source before acting.",
"grid": [
{
"dotted": {
"hz": 0.3333,
"ms": 3000,
"samples": 132300,
"ticks": 2880,
"ticksAreWhole": true
},
"note": "1/1",
"straight": {
"hz": 0.5,
"ms": 2000,
"samples": 88200,
"ticks": 1920,
"ticksAreWhole": true
},
"triplet": {
"hz": 0.75,
"ms": 1333.333,
"samples": 58800,
"ticks": 1280,
"ticksAreWhole": true
}
},
{
"dotted": {
"hz": 0.6667,
"ms": 1500,
"samples": 66150,
"ticks": 1440,
"ticksAreWhole": true
},
"note": "1/2",
"straight": {
"hz": 1,
"ms": 1000,
"samples": 44100,
"ticks": 960,
"ticksAreWhole": true
},
"triplet": {
"hz": 1.5,
"ms": 666.667,
"samples": 29400,
"ticks": 640,
"ticksAreWhole": true
}
}
],
"midiClockPulseMs": 20.8333,
"midiClockPulsesPerQuarter": 24,
"notChecked": [
"how your plugin or DAW rounds delay times (some round to whole ms or whole samples)",
"swing and groove templates, which move notes off this grid",
"…1 more"
],
"quarterNoteMs": 500,
"reasons": [
"Quarter = 60000 / BPM ms. Other values scale from it: dotted is 1.5 times, triplet is 2/3 times the straight value.",
"Hz is the LFO or modulation rate that repeats once per note value (1000 / ms)."
],
"sampleRateUsed": 44100,
"samplesPerBeat": 22050,
"source": "computed locally (quarter note = 60000 / BPM ms; whole = 4 quarters; dotted x 1.5; triplet x 2/3)",
"summary": "At 120 BPM a quarter note is 500 ms (22050 samples at 44100 Hz, 480 ticks).",
"ticksPerQuarter": 480,
"verdict": "COMPUTED"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.02.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://music-production-calc.x402tookit.com/tempo-grid?bpm=120&ppq=480&sampleRate=44100'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://music-production-calc.x402tookit.com/tempo-grid?bpm=120&ppq=480&sampleRate=44100' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.02 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.02" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.02 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmusic-production-calc.x402tookit.com%2Ftempo-grid
const res = await pay("https://music-production-calc.x402tookit.com/tempo-grid?bpm=120&ppq=480&sampleRate=44100");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.02 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.02"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://music-production-calc.x402tookit.com/tempo-grid?bpm=120&ppq=480&sampleRate=44100")
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 29 h ago | Expected HTTP 402, got 530 | 530 | 201 ms | - |
| 40 h ago | Expected HTTP 402, got 530 | 530 | 1.3 s | - |
| 2 days ago | Expected HTTP 402, got 530 | 530 | 97 ms | - |
| 3 days ago | Passed | 402 | 539 ms | $0.02 |
| 3 days ago | Expected HTTP 402, got 530 | 530 | 95 ms | - |
Show 10 older checks
| 4 days ago | Passed | 402 | 586 ms | $0.02 |
| 4 days ago | Expected HTTP 402, got 530 | 530 | 112 ms | - |
| 4 days ago | Passed | 402 | 504 ms | $0.02 |
| 5 days ago | Expected HTTP 402, got 530 | 530 | 93 ms | - |
| 5 days ago | Passed | 402 | 529 ms | $0.02 |
| 5 days ago | Expected HTTP 402, got 530 | 530 | 186 ms | - |
| 5 days ago | Expected HTTP 402, got 530 | 530 | 137 ms | - |
| 5 days ago | Passed | 402 | 727 ms | $0.02 |
| 6 days ago | Passed | 402 | 518 ms | $0.02 |
| 6 days ago | Passed | 402 | 518 ms | $0.02 |