{"uid":"cap_NXVhOh-dEyzQBFYpR2DnR","slug":"music-interval-calculator-5734378d","name":"Music Interval Calculator","description":"Name the interval between two notes (`to` at or above `from`) — its size in semitones, its diatonic number and its quality (perfect/major/minor/augmented/diminished). Correct spelling matters: C→F# is an augmented fourth, C→Gb a diminished fifth.","url":"https://music.openverbs.com/v1/interval","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["from","to"],"properties":{"to":{"type":"string","maxLength":8,"minLength":1,"description":"Upper note (>= from)."},"from":{"type":"string","maxLength":8,"minLength":1,"description":"Lower note."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Mkgtk7ExS-Eno4euEVqQL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Names the musical interval between two notes, returning semitone count, diatonic number, and quality (perfect/major/minor/augmented/diminished) with correct enharmonic spelling awareness.","exampleAgentPrompt":"What's the interval between C4 and F#4 — tell me the diatonic number, quality, and how many semitones it spans?","exampleUseCases":[{"title":"Ear training quiz answer checker","prompt":"A student answered that the interval from D to A is a perfect fifth — is that correct? Tell me the diatonic number, quality, and semitone count for D to A."},{"title":"Chord voicing analysis","prompt":"I'm analyzing a chord and need to know the interval between the notes E and G — what's the diatonic number and quality of that interval?"},{"title":"Enharmonic spelling disambiguation","prompt":"My music theory teacher said spelling matters — can you tell me the difference between the interval C to F# versus C to Gb? What quality is each one?"}],"resultDescription":"Returns the named interval between the two input notes, including: the number of semitones between them, the diatonic interval number (e.g. fourth, fifth), and the quality (perfect, major, minor, augmented, or diminished). Correct enharmonic spelling of both notes is respected, so C→F# (augmented fourth) differs from C→Gb (diminished fifth) despite being the same pitch distance.","failureModes":["Invalid note name format (e.g. missing letter or bad accidental) returns an error","Upper note lower than lower note returns an error (to must be >= from)","Unsupported accidental symbols or octave numbers out of range may be rejected","Enharmonic inputs with ambiguous spelling may return unexpected quality names"],"whenToPreferThis":"Use this endpoint when you need to identify or validate the precise diatonic interval between two notes, especially when enharmonic spelling matters (e.g. augmented vs diminished distinctions). Prefer this over general music theory lookups or MIDI pitch-difference calculations when the quality label (major/minor/perfect/augmented/diminished) is required alongside semitone distance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T17:51:33.205Z","isFirstParty":false}