Step index of a frequency under a tuning, unrounded.
The exact inverse of frequencyOf. nearestStep rounds it, which discards how far off the pitch actually is — the figure a tuner display, a pitch-bend amount, or an intonation check is built on.
Frequency in Hz.
The tuning (default 12-TET).
The fractional step index.
import { stepOf } from '@libraz/libcantus';stepOf(442); // slightly above 69, the step for A440 Copy
import { stepOf } from '@libraz/libcantus';stepOf(442); // slightly above 69, the step for A440
Step index of a frequency under a tuning, unrounded.
The exact inverse of frequencyOf. nearestStep rounds it, which discards how far off the pitch actually is — the figure a tuner display, a pitch-bend amount, or an intonation check is built on.