Sample Pitch & Root-Key Calculator

Ethan Brooks avatar

Created by: Ethan Brooks

Last updated:

Map an entered or measured source frequency to a sampler root key, coarse/fine tuning split, and playable-key ratios.

Sample Pitch & Root-Key Calculator

Music Production & Audio

Map a known source frequency to a sampler root and playable-key ratios.

The source frequency must be known or measured. This calculator does not detect pitch or judge whether a transposed sample remains usable.
Hz
cents
Hz

What is a Sample Pitch & Root-Key Calculator?

A Sample Pitch & Root-Key Calculator maps a known or measured sample frequency to an entered root key and generates playback ratios across a selected MIDI range.

Pitch relationships are logarithmic. Doubling frequency raises a tone by one octave, while equal-tempered semitones divide that octave into twelve equal ratios. Cents divide each semitone into one hundred parts. These definitions make conversions reproducible, but they do not tell a musician which tuning, note, transposition, or sampler setting is artistically appropriate.

The calculator labels entered or measured frequencies separately from derived values. A4 reference tuning is always visible, 12-tone equal temperament is named rather than implied, and nearest-note labels are mappings instead of pitch-detection claims. MIDI note numbers identify keys or note messages; the sound generator, tuning data, bend, and synthesis architecture determine the pitch actually produced.

The source frequency must already be known or measured; ambiguous, noisy, inharmonic, or changing material cannot be identified by this calculator. Preserve the original media, record the source and units, and verify the result with the actual instrument, sampler, DAW, or rendered audio. That check captures inharmonicity, modulation, tuning tables, algorithm behavior, clocking, and measurement uncertainty outside this limited model.

How the pitch calculation works

The model validates positive frequencies and MIDI’s whole-number 0–127 range, retains full precision internally, and rounds only for display. Ratios remain dimensionless; frequency outputs remain hertz; cents remain logarithmic intervals.

source MIDI position = 69 + 12 × log₂(source Hz / A4)

shift cents = (root MIDI − source position) × 100 + fine tune

key ratio = 2^((key − root) / 12)

Comparison rows vary a note, shift, key, or harmonic while preserving the selected reference. A chart visualizes the numerical pattern; it does not rank consonance, audibility, timbre, or creative suitability.

Example calculations

Scenario 1

A measured 440 Hz source mapped to MIDI 69 at A440 needs no coarse or fine correction.

Scenario 2

A source an octave below the desired root requires a 12-semitone relationship before any entered fine adjustment.

Scenario 3

A playable range table shows each key ratio, but large shifts may expose duration changes or processing artifacts that require audition.

Each scenario is an arithmetic illustration, not a tuning prescription or assessment of an audio file. Replace defaults with sourced values and audition or measure the complete signal path.

Common applications

  • Document sampler root-key metadata.
  • Split correction into coarse and fine controls.
  • Generate keyboard tracking ratios.
  • Compare custom tuning references.
  • Plan playable ranges.
  • Check measured source assumptions.

These records can support handoffs between performers, sound designers, editors, and mix engineers because the tuning reference and calculation mode travel with the result.

Practical pitch and tuning tips

  • Measure a stable portion and check whether the apparent fundamental is actually a stronger harmonic.
  • Keep note spelling and octave convention with the MIDI number to avoid naming ambiguity.
  • Use the project’s actual reference tuning and retain the original sample before processing.
  • Audition transpositions across the intended range and render a short verification file.

Frequently asked questions

What does the Sample Pitch & Root-Key Calculator calculate?

It applies transparent 12-tone equal-temperament, cents, playback-rate, sampler, or integer-harmonic arithmetic to values you enter. The source frequency must already be known or measured; ambiguous, noisy, inharmonic, or changing material cannot be identified by this calculator. It does not listen to audio, identify pitch, evaluate tuning quality, or control a DAW or instrument, so confirm the source measurement and actual playback system.

Why is the A4 reference an input?

A4 is commonly set to 440 Hz, but sessions, ensembles, historical practices, and tuning systems can use another reference. Keeping it visible prevents a hidden assumption. Changing A4 shifts every equal-tempered note proportionally; it does not convert the model into a historical temperament or describe stretched piano tuning.

Are cents and hertz interchangeable?

No. A cent is a logarithmic interval while hertz is an absolute frequency difference. One hundred cents always equals one equal-tempered semitone as a ratio, but its hertz difference grows at higher frequencies. The calculator reports both where useful and never treats a fixed hertz tolerance as a fixed musical interval.

Does the nearest note identify what I recorded?

No. Nearest-note mapping labels an entered frequency under the selected A4 reference and 12-TET model. Real sounds may be noisy, inharmonic, time-varying, polyphonic, or ambiguous. Measure a stable region with appropriate analysis, check octaves and partials, and use musical context before assigning a root or note name.

Will transposition preserve audio quality?

The calculator makes no quality claim. Simple playback-rate or resampling transposition links pitch and duration mathematically. Independent pitch-shifting and time-stretching depend on the algorithm, settings, source, shift size, and processing chain. Audition the rendered result and compare it with the unprocessed source before making an irreversible decision.

How should I verify these results?

Record the A4 reference, source frequency or MIDI note, measurement method, and selected mode. Then compare with a calibrated tuner or spectrum tool, the sampler or DAW documentation, and a rendered test. For MIDI-controlled instruments, remember that tuning messages, pitch bend, synthesis design, and per-note processing can alter sounding pitch.

Sources and references

  1. MIDI Association — Microtuning and Alternative Intonation Systems (accessed 4 August 2026).
  2. MIDI Association — MIDI Tuning Updated Specification (accessed 4 August 2026).
  3. International Organization for Standardization, ISO 16, standard tuning frequency context.
  4. Acoustical Society of America, ANSI/ASA S1.1 acoustical terminology context.
Music Production Sample Pitch & Root-Key Calculator - Sampler Root & Key Tracking | Complete Calculators | Complete Calculators