# Note frequency > What frequency is a musical note? Convert a note to hertz or a frequency to its nearest note, with cents, MIDI number, an octave table and the sound of it. Convert a musical note to its frequency in Hz, or a frequency to the nearest note and its cents. Adjustable A4, MIDI numbers, octave table, and hear the note. - Page: https://how.box/note-frequency/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/note-frequency/?m={m}&n={n}&f={f}&a={a}&t={t}&x={x}&y={y} - `m` (note or frequency): Conversion: note (note to frequency) or frequency (frequency to nearest note). Example: `frequency`. - `n` (whole number 0 to 127): For m=note: the note as a MIDI number 0–127. Example: `60`. - `f` (number 8 to 12544): For m=frequency: the frequency in Hz, 8–12544. Example: `261.63`. - `a` (number 400 to 480): Reference pitch, the frequency of A4 in Hz, 400–480. Example: `442`. - `t` (octave or names): Table: octave (the note's octave with frequencies) or names (note names in each convention). Example: `names`. - `x` (number 8 to 12544): Interval: the first frequency in Hz. Example: `440`. - `y` (number 8 to 12544): Interval: the second frequency in Hz. Example: `660`. Example answer: https://how.box/note-frequency/?m=frequency&n=60&f=261.63&a=442&t=names&x=440&y=660 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `note_frequency_note_to_frequency`: Converts a musical note to its frequency. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"note_frequency_note_to_frequency","arguments":{"note":60,"a4_hz":442}}}` - GET: https://how.box/mcp/run/note_frequency_note_to_frequency?note=60&a4_hz=442 - `note_frequency_frequency_to_note`: Finds the equal-tempered note nearest to a frequency and how far off it is in cents (positive = sharp). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"note_frequency_frequency_to_note","arguments":{"frequency_hz":261.63,"a4_hz":442}}}` - GET: https://how.box/mcp/run/note_frequency_frequency_to_note?frequency_hz=261.63&a4_hz=442 - `note_frequency_interval`: The musical interval between two frequencies. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"note_frequency_interval","arguments":{"from_hz":440,"to_hz":660}}}` - GET: https://how.box/mcp/run/note_frequency_interval?from_hz=440&to_hz=660 ## How it works Western music divides each octave into twelve equal steps, called semitones. Going up one octave doubles the frequency, so every semitone multiplies it by the same amount, about 1.0595. Notes are pinned to one reference: the A above middle C (A4), normally 440 Hz. The frequency of a note with MIDI number m is f = A4 × 2^((m − 69) / 12), where A4 is the reference frequency and 69 is the MIDI number of A4. For example, middle C is MIDI 60, so f = 440 × 2^(−9/12) ≈ 261.63 Hz. The distance between two frequencies is measured in cents, 1200 × log₂(f₂ / f₁): one semitone is 100 cents, an octave 1200. This is equal temperament, which is what pianos and most modern instruments use. Other tunings, such as just intonation, place the notes a few cents differently. Octave numbers follow scientific pitch notation, so middle C is C4. In the German and Nordic system the note B is called H and B flat is called B. ## FAQ **What frequency is middle C?** About 261.63 Hz when A4 is 440 Hz. It is C4, MIDI note 60. **Why is the note called H in German and Finnish?** In the German system the plain B is written H, and B flat is written B. English and most other languages call them B and B flat. **What are cents?** Cents are hundredths of a semitone. A difference under about 5 cents is hard to hear for most people, while 50 cents is exactly halfway between two notes. **Why change the A4 reference?** Some orchestras tune to 442 Hz or higher for a brighter sound, and baroque ensembles often tune to 415 Hz, about a semitone lower. **Does this support just intonation?** No. The frequencies use twelve-tone equal temperament. Other tuning systems can give different frequencies for the same note names. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)