Skip to content

Main content

Recording Pitch Drift Two Anchors Tool

Linear interpolation in log frequency ratio, equivalent to constant cents drift between supplied calibration anchors.

Loading tool…

Description

Interpolate their natural logarithms, exponentiate for ratio and convert interpolated log ratio to cents.

Frequency ratios express pitch relationships, while cents express their logarithm relative to an octave. Playback speed and pitch-preserving time changes obey different models; the relevant reference and physical assumptions must be supplied.

Interpolate their natural logarithms, exponentiate for ratio and convert interpolated log ratio to cents.

When to use this tool

Use Recording Pitch Drift Two Anchors when you need a stated pitch-ratio, reference or playback-speed term.

How to use the tool and how it works

  1. Enter firstTime, secondTime, firstRatio, secondRatio, time. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read interpolationFraction, ratio, cents. Use the output convention below.

Require ordered anchor times, query within them and positive anchor ratios. Interpolate their natural logarithms, exponentiate for ratio and convert interpolated log ratio to cents.1

Input fieldMeaning and unitsAccepted input
firstTimeFirst TimeRequired. Finite number.
secondTimeSecond TimeRequired. Finite number.
firstRatioFirst RatioRequired. Finite number; strictly above 0.
secondRatioSecond RatioRequired. Finite number; strictly above 0.
timeTimeRequired. Finite number.
Output fieldInterpretationReturned shape
interpolationFractionInterpolation FractionRequired. Finite number.
ratioDimensionless ratio under the numerator/denominator convention above.Required. Finite number.
centsCentsRequired. Finite number.
json
{
  "input": {
    "firstTime": 0,
    "secondTime": 10,
    "firstRatio": 1,
    "secondRatio": 4,
    "time": 5
  },
  "output": {
    "interpolationFraction": 0.5,
    "ratio": 2,
    "cents": 1200
  }
}

Limitations and assumptions

  • This is geometric interpolation, not linear-frequency interpolation. It models supplied drift between two anchors without estimating audio speed or calibration uncertainty.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use calibrated audio measurements and the appropriate processing method for actual recordings. Retain cultural tuning context and verify reference frequency, speed history and instrument assumptions separately.

References

  1. Calculation and input contract: ethnomusicology/recording-pitch-drift-two-anchors — tool.io

Similar or alternative tools