how is frequency and harmony related to math