{"uid":"cap_zBDZuUyIXU5KwBKOGnQz7","slug":"music-production-calc-tempo-grid-b69c02f2","name":"Music Production Calc – Tempo Grid","description":"Note values 1/1 to 1/32 (straight, dotted, triplet) at a BPM as ms, LFO Hz, samples and MIDI ticks.","url":"https://music-production-calc.x402tookit.com/tempo-grid?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["bpm"],"properties":{"bpm":{"type":"number","description":"Tempo in quarter-note beats per minute, 20 to 400"},"ppq":{"type":"integer","description":"MIDI resolution in ticks per quarter note (default 480)"},"sampleRate":{"type":"number","description":"Sample rate in Hz for sample counts (default 44100)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"bpm":{"type":["null","number"]},"asOf":{"type":["null","string"]},"grid":{"type":["array","null"],"items":{"type":"object","properties":{"note":{"type":["null","string"]},"dotted":{"type":["null","object"],"properties":{"hz":{"type":["null","number"]},"ms":{"type":["null","number"]},"ticks":{"type":["null","number"]},"samples":{"type":["null","number"]},"ticksAreWhole":{"type":["boolean","null"]}}},"triplet":{"type":["null","object"],"properties":{"hz":{"type":["null","number"]},"ms":{"type":["null","number"]},"ticks":{"type":["null","number"]},"samples":{"type":["null","number"]},"ticksAreWhole":{"type":["boolean","null"]}}},"straight":{"type":["null","object"],"properties":{"hz":{"type":["null","number"]},"ms":{"type":["null","number"]},"ticks":{"type":["null","number"]},"samples":{"type":["null","number"]},"ticksAreWhole":{"type":["boolean","null"]}}}}}},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"barMs4over4":{"type":["null","number"]},"quarterNoteMs":{"type":["null","number"]},"sampleRateUsed":{"type":["null","number"]},"samplesPerBeat":{"type":["null","number"]},"ticksPerQuarter":{"type":["null","number"]},"midiClockPulseMs":{"type":["null","number"]},"midiClockPulsesPerQuarter":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QCT5grYfMqYJgUJSan5lI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates note duration values (1/1 to 1/32, straight/dotted/triplet) at a given BPM in milliseconds, LFO Hz, audio samples, and MIDI ticks.","exampleAgentPrompt":"Can you give me the full tempo grid for 128 BPM — I need all note values from whole notes down to 1/32, straight, dotted, and triplet, showing delay times in milliseconds, LFO rates in Hz, sample counts at 44100 Hz, and MIDI ticks at 480 PPQ?","exampleUseCases":[{"title":"Sync delay effect to track tempo","prompt":"I'm mixing a track at 126 BPM and need to know the exact delay times in milliseconds for dotted eighth notes and dotted quarter notes so I can dial in my delay pedal — can you get me those values?"},{"title":"Set LFO rate for tempo-locked modulation","prompt":"My synthesizer LFO needs to run at the same rate as a triplet 1/16 note at 140 BPM — what Hz should I set it to?"},{"title":"Calculate MIDI tick lengths for sequencer","prompt":"I'm programming a MIDI sequencer at 90 BPM with a resolution of 960 ticks per quarter note — can you tell me how many ticks each note value from 1/1 to 1/32 should be, including triplets?"}],"resultDescription":"Returns a full tempo grid array with one row per note division (1/1 through 1/32), each containing straight, dotted, and triplet variants. Every variant includes duration in milliseconds (ms), LFO frequency in Hz, sample count (at the given or default sample rate), MIDI tick count, and a flag for whether ticks are whole numbers. Also returns the bar duration in ms for a 4/4 bar, the BPM used, and a timestamp.","failureModes":["BPM out of range (below 20 or above 400) returns an error or empty grid","Missing required `bpm` query parameter returns a 400-level error","Non-numeric BPM value causes a validation error","Unusual PPQ values may produce non-integer tick counts with ticksAreWhole=false","Payment not included or invalid returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need precise, multi-format timing values for every standard note division at a given BPM — ideal for configuring delay times, LFO rates, MIDI sequencers, or sample-accurate timing in DAWs. Prefer this over manual calculation when you need straight, dotted, and triplet variants across all note values in one call, or when you need simultaneous output in ms, Hz, samples, and MIDI ticks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:30:48.081Z","isFirstParty":false,"canonicalSlug":"music-production-calc-tempo-grid-b69c02f2"}