back to list

Re: [MMM] Re: cents to freq ratio

🔗monz <monz@...>

3/9/2003 2:30:50 AM

hi Rick,

> From: "Ronald Pieket" <rpieket@...>
> To: <MakeMicroMusic@yahoogroups.com>
> Sent: Friday, March 07, 2003 1:04 PM
> Subject: [MMM] Re: cents to freq ratio
>
>
> --- In MakeMicroMusic@yahoogroups.com, Rick McGowan <rick@u...> wrote:
> > Does anyone have a snippet of code, or a formula, to take a number in
> > cents and return a frequency ratio, expressed as "1:n"?
>
> <snip>
>
> To get the ration of N cents, raise the value to the power of N. Like
> this:
>
> 1 : ( 2 ^ 1/1200 ) ^ N

Ronald's formula can be expressed more simply as:

N cents = 2^(N/1200)

the answer will be an approximate floating-point ratio.

simply multiply that by your reference frequency to
find a frequency value.

-monz