maths.freeDiscrete Math & Logic › 13. Math and... › Math and Music

Math and Music

Describe the basics of frequency related to sound.

Learning Objectives

After completing this section, you should be able to:

  1. Describe the basics of frequency related to sound.
  2. Describe the basics of pitch as it relates to music.
  3. Describe and evaluate musical notes, half-steps, whole steps, and octaves.
  4. Describe and find frequencies of octaves.

Basics of Frequency as It Relates to Sound

Every sound is created by an object vibrating and these vibrations travel in waves that are captured by our ears. Some vibrations we may be able to see, such as a plucked guitar string moving, whereas other vibrations we may not be able to see, such as the sound created when we hold our breath when accidentally dropping our cell phone on a hard floor. We don’t see the vibrations of our cell phone hitting the floor; however, any audible sound created in the fall is the result of vibrations in the form of sound waves, which can be pictured similarly to waves moving through the ocean.

The waves of sounds each have a frequency, or rate of vibration of sound waves, that measures the number of waves completed in a single second and are measured in hertz (Hz; one Hz is one cycle per second). Louder sounds have stronger vibrations or are created closer to our ear. The further an ear is from the source of the sound, the quieter the sound will appear.

Sounds range in frequency from 16 Hz to ultrasonic values, with humans able to hear sounds in a frequency range of about 20 Hz to 20,000 Hz. Adults lose the ability to hear the upper end of the range and typically top out in the ability to hear in a frequency of 15,000–17,000 Hz. Sounds with a frequency above 17,000 Hz are less likely to be heard by adults while still being audible to children.

While frequency plays a key role in audible sounds, so too does the sound level, which can be measured in decibels (dB), which are the units of measure for the intensity of a sound or the degree of loudness. As a sound level increases, the decibel level increases.

A person with average hearing can hear sounds down to 0 dB. Those with exceptionally good hearing can hear even quieter sounds, down to approximately –5 dB. The following table includes sample sounds with their related decibel values.

SoundDecibels (dB)
Firecrackers140
Take-off of military jet from aircraft carrier130
Clap of thunder120
Auto horn standing next to the vehicle110
Outboard motor100
Motorcycle90
Noise inside a car in city traffic80
Typical washing machine70
Public conversation, such as at a restaurant60
Private conversation50
Hum of a computer with fan blowing40
Quiet whisper30
Swishing leaves20
Regular breathing10
Lowest typical sound audible by teenagers0
Selecting Decibel Value of Sounds

Try it.

Select the most representative decibel value for each of the following sounds:

  1. car wash: 25 dB, 55 dB, 85 dB
  2. vacuum cleaner: 15 dB, 70 dB, 90 dB
  3. ship’s engine room: 30 dB, 65 dB, 95 dB
  4. approaching subway car: 70 dB, 100 dB, 120 dB

Solution
  1. 85 dB
  2. 70 dB
  3. 95 dB
  4. 100 dB

Basics of Pitch

When considering the various sound levels the human ear can hear, the ear perceives sound both from the frequency level and the pitch of a sound. The quality of the sound is referred to as pitch, the tonal quality of a sound and how high or low the tone. Sounds with a high frequency have a high pitch, such as 900 Hz, and sounds with a low pitch have a low frequency, such as 50 Hz.

Let’s take a look at frequency and pitch using a string instrument such as a guitar or piano. When a string is plucked on a guitar or a key is played on a piano, the related string vibrates at a frequency that is related to the length and thickness of the string. The frequency is measurable and has a singular value. The pitch of the note played is open for interpretation, as the pitch is a function of personal opinion.

Note Values, Half-Steps, Whole Steps, and Octaves

“There are not more than five musical notes, yet the combinations of these five give rise to more melodies than can ever be heard.”

Sun Tzu, Chinese strategist

Moving our exploration to note values, the frequency of all notes is well defined by a specific and unique frequency for each note that is measurable. We will explore keys on a keyboard to discuss notes that have the same relationships with any instrument or musical piece.

Let’s look at . The white keys are labeled with the letters A–G and the photo begins with middle C, which can be found in the middle of a keyboard. This labeling of the keys repeats across an entire keyboard and keys to the right have a higher pitch and frequency than keys to the left. Each of the keys correlates to a musical note.

Movement up or down between any two consecutive keys (black and white) or notes constitutes a half-step. Movement of one half-step sometimes involves a sharp (#) or a flat (♭) symbol. For example, D# is one half-step above D and D is one half-step below D. Note that this is not always true as one half-step above B is C, and one half-step below F is E. In similar fashion, a whole step is movement up or down between any two half-steps on a keyboard.

Identifying Half-Steps

Try it.

Name which keys are one half-step up and one half-step down from the following:

  1. D
  2. E
  3. G#

Solution
  1. up D#, down D
  2. up F, down E
  3. up A, down G
Identifying Whole Steps

Try it.

Name which keys are one whole step up and one whole step down from the following:

  1. F#
  2. E
  3. A

Solution
  1. Up G#, down E
  2. Up F#, down D
  3. Up B, down G

You may have noticed that there are eight letters of the alphabet used to label notes. Selecting any one note and counting up 12 half-steps you will find that the numbering for notes begins at the same value as you started from. This collection of 12 consecutive half-notes is called an octave and is a basic foundational component in music theory.

Listing All Notes in an Octave

Try it.

List the 12 notes forming an octave, beginning with the note C.

Solution

C, C#, D, D#, E, F, F#, G, G#, A, A#, B

Frequencies of Octaves

Notes that are one octave apart have the same name and are related in frequency values. Given the frequency of any note, the frequency of same note one octave higher is doubled and this pattern continues as you move up and down the notes on a keyboard or any other musical instrument. Song writers and singers use this knowledge to change the pitch of a note up or down to align with a person’s vocal range. Regardless of which C is played or sung, the pitch is the same and the frequency is related by a power or two.

Labeled keys on a keyboard are numbered for ease in identification. For example, middle C is labeled as C4 on a full keyboard as it is the fourth C from the left in a set of eight notes. The frequency of C4 is 262 Hz, rounded to the nearest whole number.

Calculating the Frequency Values of Octaves

Try it.

Given that the frequency of C4 is 262 Hz, find the approximate frequency of C6.

Solution

The frequency of each consecutive higher octave doubles. Given that the frequency of C4 is 262 Hz, the frequency of C5 is found by doubling the frequency of C4, which is 524 Hz. In similar fashion, the frequency of C6 is found by doubling the frequency of C5, which yields 1,048 Hz.

We have explored some basics components of frequency, pitch, note relationships, and octaves, which are building blocks of music. It may be exciting to learn that the mathematical relationships found in music are vast and grow in complexity beyond the math commonly studied in high school.

Condensed — the full section is in OpenStax Contemporary Mathematics.

Key Concepts

  • As frequency of a sound increases, the pitch of the sound increases.
  • Hertz is a unit of measurement for frequency.
  • Decibel is a unit of measurement for the intensity of sound.
  • Half-steps and whole-steps describe one type of movement between two notes on a keyboard.
  • Octaves are a collection of any 12 consecutive notes, which is a foundation in music theory.

Practice (5)

Try each one on paper first. Reveal the answer to check; verified ones can be opened in the solver for every step.

  1. Select the most representative decibel value for each of the following sounds:

    1. car wash: 25 dB, 55 dB, 85 dB
    2. vacuum cleaner: 15 dB, 70 dB, 90 dB
    3. ship’s engine room: 30 dB, 65 dB, 95 dB
    4. approaching subway car: 70 dB, 100 dB, 120 dB

    Показати відповідь
    1. 85 dB
    2. 70 dB
    3. 95 dB
    4. 100 dB
  2. Name which keys are one half-step up and one half-step down from the following:

    1. D
    2. E
    3. G#

    Показати відповідь
    1. up D#, down D
    2. up F, down E
    3. up A, down G
  3. Name which keys are one whole step up and one whole step down from the following:

    1. F#
    2. E
    3. A

    Показати відповідь
    1. Up G#, down E
    2. Up F#, down D
    3. Up B, down G
  4. List the 12 notes forming an octave, beginning with the note C.

    Показати відповідь

    C, C#, D, D#, E, F, F#, G, G#, A, A#, B

  5. Given that the frequency of C4 is 262 Hz, find the approximate frequency of C6.

    Показати відповідь

    The frequency of each consecutive higher octave doubles. Given that the frequency of C4 is 262 Hz, the frequency of C5 is found by doubling the frequency of C4, which is 524 Hz. In similar fashion, the frequency of C6 is found by doubling the frequency of C5, which yields 1,048 Hz.

Symbols used here

n!
factorial
n × (n−1) × … × 1; the number of orderings of n things. 0! = 1.
\binom{n}{k}
binomial coefficient, "n choose k"
Number of k-element subsets of n things: n!/(k!(n−k)!).
\sum_{k=1}^{n} a_k
summation
Add a_k for k = 1 up to n.
x \in A,\ A \subseteq B
element of, subset
x belongs to A; every element of A is in B.
A \cup B,\ A \cap B,\ A \setminus B
union, intersection, difference
In either; in both; in A but not B.
\emptyset,\ |A|
empty set, cardinality
The set with no elements; the number of elements of A.
\forall,\ \exists
for all, there exists
Quantifiers: every x; at least one x.
\neg,\ \wedge,\ \vee,\ \Rightarrow,\ \Leftrightarrow
not, and, or, implies, iff
Logical connectives.
\blacksquare\ \text{or}\ \square
end of proof (halmos)
Marks the point where the statement has been established.
a \equiv b \pmod n
congruent modulo n
n divides a − b; a and b have the same remainder.
O(n^2),\ \Theta,\ \Omega
big-O notation
Grows no faster than n² (up to a constant), for large n.
a \bmod n
remainder
What is left after dividing a by n.

How to: Math and Music

  1. Describe the basics of frequency related to sound.
  2. Describe the basics of pitch as it relates to music.
  3. Describe and evaluate musical notes, half-steps, whole steps, and octaves.
  4. Describe and find frequencies of octaves.
  5. car wash: 25 dB, 55 dB, 85 dB
  6. vacuum cleaner: 15 dB, 70 dB, 90 dB
  7. ship’s engine room: 30 dB, 65 dB, 95 dB
  8. approaching subway car: 70 dB, 100 dB, 120 dB

Questions people ask

What makes mathematics "discrete"?

It deals with separate, countable objects — integers, graphs, statements — rather than continuous quantities. No limits, no infinitesimals; instead induction, counting and logic.

How does a proof by induction work?

Show the statement for the first case, then show that whenever it holds for n it holds for n + 1. Like dominoes: the first falls, and each knocks over the next.

Спробуйте власну

Parts of this page are adapted from OpenStax Contemporary Mathematics (CC BY-NC-SA 4.0). Condensed and re-explained here; errors are ours.

Більше в Discrete Math & Logic