How far a frequency sits from its nearest step, in cents.
Positive means sharp of the step, negative flat.
Frequency in Hz.
The tuning (default 12-TET).
The signed deviation in cents.
import { centsFromNearestStep } from '@libraz/libcantus';Math.round(centsFromNearestStep(442)); // 8 Copy
import { centsFromNearestStep } from '@libraz/libcantus';Math.round(centsFromNearestStep(442)); // 8
How far a frequency sits from its nearest step, in cents.
Positive means sharp of the step, negative flat.