4.63 - midi pitch to frequency turns A4 into 430 HZ???

jayrope's icon

Hello again,

i'm converting Midi Pitch to Frequency for a harmnic resonator patch, but my formula seems to be wrong (or i am missing something else) since it turns A4 to a 430HZ float instead of 440HZ.

What am i doing wrong?

Here's an example:

Max Patch
Copy patch and select New From Clipboard in Max.

Thank you for any hints pointing me into the right direction!

jrp
*flu today*

Luke Hall's icon

Why can't you use [mtof]? Or an [expr] that uses the same equation: [expr (pow(2.,(($f1-69.)/12.)))*440.].

lh

Peter Castine's icon

Your formula isn't so much "wrong" as it's tuned to Middle C = 512Hz. Which is about 37 cents flat to the "official" intergalactic Chamber Tuning.

Whether it is "wrong" to tune to something other than A=440 is a different question. I live in Berlin. Most bands here tune to something between 444 and 447Hz.

jayrope's icon

Hello Peter,

(don't you do MAX workshops via Salon Bruit. I host their mailing list on my server, and i am in Berlin, too. When is your next workshop? :)

Regarding the middle C reference: How would i instead tune to A 440? And why exactly am i tuned to 512 Hx C now? i lack the principal understanding, sorry.

Regarding tuning of Berlin bands: Good to hear they don't use tuners. Any nonconformity will finally help to keep music interesting. I tune my guitar to the 50 Hz hum exhaled from all my equipment due to bad grounding. I think that leads to a similar, higher tuning at last. Luckily my piano refuses to follow this and instead tunes freely to the temperature changes in the room.

:) jrp

jayrope's icon

LH sorry totally overlooked your reply!

thank you much, will try this then!

jrp