stringcalc.frets.distance_et

Contents

stringcalc.frets.distance_et#

stringcalc.frets.distance_et(n, *, L)#

Exact equal-temperament distance from nut for fret(s) n for scale length L.

Using the 12th-root-of-2 method.

\[d_n = L \left( 1 - 2^{-n/12} \right)\]

Reference: https://www.liutaiomottola.com/formulae/fret.htm

Parameters:
  • n (int | ArrayLike) – Fret number (or array-like of them). If floats are passed, they will be floored before computing.

  • L (float) – Scale length.

Return type:

float64 | ndarray[tuple[Any, …], dtype[float64]]