[sdiy] math question - somewhat OT
Scott Gravenhorst
music.maker at gte.net
Tue Sep 21 22:56:04 CEST 2004
Yeah, backwards again...
Ian Fritz <ijfritz at earthlink.net> wrote:
>At 02:24 PM 9/21/2004, Scott Gravenhorst wrote:
>> (n/12+v)
>>f = s * 2
>>
>>where f is frequency in Hz, s is scale factor (constant), n
>>is an integer note number (increments 1 for each semitone)
>>and v is an integer representing an octave.
>>
>>The constant value s can be set so that particular values of
>>n and v give the standard frequency values such as 440 Hz.
>
>
>I believe he wants the inverse of that. The formula is:
>
>p = (12/log2)log(f/f0),
>
>Where f is the frequency and p is the pitch in semitones relative to the
>pitch of f0. The log function can be to any base, ie, log_10, ln, etc.
>
> Ian
>
>
---------------------------------------------------------
- Where merit is not rewarded, excellence fades.
- Hydrogen is pointless without solar.
- What good are laws that only lawyers understand?
- The media's credibility should always be questioned.
- The only good terrorist is a dead terrorist.
- Governments do nothing well, save collect taxes.
-- Scott Gravenhorst | LegoManiac / Lego Trains / RIS 1.5
-- Linux Rex | RedWebMail by RedStarWare
-- FatMan: home1.gte.net/res0658s/FatMan/
-- NonFatMan: home1.gte.net/res0658s/electronics/
-- Autodidactic Master of Arcane and Hidden Knowledge.
More information about the Synth-diy
mailing list