dc42:
However, if you are using the equal tempered scale, why not have just one table giving the frequency for each note, then play scales by moving up/down the required number of semitones from the starting note?
Musical notes don't map neatly to integer frequencies in Hz. You can get more accuracy by having a tab;e which covers the whole musical range.