The Math of Music

Mark French has an excellent YouTube channel on Mechanical Engineering, including the above video on Math and Music. The video describes the mathematical relationships between musical notes.

Given the sequence of notes: C, C#, D, D#, E, F, F#, G, G#, A, A#, B, C.

Let the frequency of the C note be f0, the frequency of C# be f1 etc.

The ratio of any two successive frequencies is constant (r). For example:

 \frac{f_1}{f_0} = r

so:

 \frac{f_1}{f_0} = \frac{f_2}{f_1} = \frac{f_4}{f_3} = \frac{f_{12}}{f_{11}} = r

We can find the ratio of the first and third notes by combining the first two ratios. First solve for f1 in the first equation:

 \frac{f_1}{f_0} = r

solving for f1,

 f_1 = f_0 \; r

now take the second ratio:

 \frac{f_2}{f_1} = r

and substitute for f1,

 \frac{f_2}{f_0 \; r} = r

which gives:

 \frac{f_2}{f_0} = r^2

We can now generalize to get the formula:

 \frac{f_n}{f_0} = r^n

or

 f_n = f_0 \; r^n

where,

  • n – is the number of the note

From this we can see that comparing the ratio of the first and last notes (f12/f0) is:

 \frac{f_{12}}{f_0} = r^{12}

Now, as we’ve seen before, when we talked about octaves, the frequency of the same note in two different octaves is a factor of two times the lower octave note.

Click the waves to hear the different octaves. The wavelengths of the sounds are shown (in meters).




So, the frequency ratio between the first C (f0) and the second C (f12) is 2:

 \frac{f_{12}}{f_0} = 2

therefore:

 \frac{f_{12}}{f_0} = 2 = r^{12}

so we can now find r:

 r^{12} = 2

 r = \sqrt[12]{2}

Finally, we can now find the frequency of all the notes if we know that the international standard for the note A4 is 440 Hz.

Mark French has details on the math in his two books: Engineering the Guitar which is algebra based, and Technology of the Guitar, which is calculus based.

Leave a Reply