/ tutorials / wave-acoustics
Sign in
tutorials / wave-acoustics
wave-acoustics / src / matlab / wv_cents.m
8 lines · 299 BCodeBlameHistory
2% WV_CENTS The interval from fref up to f, in cents.
3%
4% A cent is a hundredth of an equal-tempered semitone, so an octave is 1200
5% cents and a relative frequency error e is about 1731 e cents when e is
6% small. Negative means flat.
7c = 1200 * log2(f ./ fref);
8end
↑↓ move↵openescclose