Equations for Standard A440 Concert Pitch, Twelve-Tone Equal Temperament, Chromatic scale! :D (ie, Western music scale XD)
f = 2^(p/12) * 440
p = log2(f/440) * 12
(Where f is frequency in Hz and p is pitch where A is 0, A# is 1, B is 2, Middle C is 3, the next A is 12, and so on, and it's negative for lower octaves (or rather, dodaves X3) )
:D