There are different ways to assign pitches to notes. What is commonly used in modern western music is called equal temperament, but there are other systems, like just intonation, for example.
So, in JI you wouldn't simply use 'A' to represent (e.g.) 440Hz, it might be A 4, for the "A" key (or "A" staff position) having a 4 cent difference than ET A.[1]
1. http://lilypondblog.org/wp-content/uploads/2015/11/example.p...