cents to cps - the formula

Robert Scott rscott@wwnet.net
Tue, 10 Mar 1998 17:32:17 -0500


Richard Moody wrote:

>ps   Anyone come up with something simpler? 1200*(log(F/f)/log(2))

Actually, this formula is for going from cps to cents.  To go
the other way, use:

 F = f * exp( c * log(2) / 1200 )

where f is a starting pitch in cps, c is the number of cents to
change f, and F is the resulting new pitch in cps.  exp() is the
inverse of the log() function.  In all these formulas it doesn't
matter whether you use base 10 logarithms or natural (base "e") 
logarithms, so long as you are consistent.

Bob Scott
Ann Arbor, Michigan



This PTG archive page provided courtesy of Moy Piano Service, LLC