Skip to main content
Mathematics LibreTexts

13.5: Math and Music

  • Page ID
    129690
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    A group of people gathered around a campfire.
    Figure 13.14 Friends sing music together around a campfire. (credit: modification of work “Fire is hot! (2)” by Chetan Sarva/Flickr, CC BY 2.0)

    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.

    “The world’s most famous and popular language is music.”

    Psy, South Korean singer, rapper, songwriter, and record producer

    Imagine a world without music and many of us would struggle to fill the void. Music uplifts, inspires, heals, and generally adds dimension to virtually every aspect of our lives. But what is music? For some it is a song; for others it may be the sounds of birds or the rhythmic sound of drumming or a myriad of other sounds. Whatever you consider music, it is all around us and is an integral part of our lives. “Music can raise someone’s mood, get them excited, or make them calm and relaxed. Music also—and this is important—allows us to feel nearly or possibly all emotions that we experience in our lives. The possibilities are endless” (Galindo, 2009).

    What music you listen to can impact your mood and emotions. In similar fashion, the music we choose can often tell those around us something about our current moods and emotions. Consider the music you may have been listening to as you today or even as you are reading this text. What cues to your mood do your music selections share? Albert Einstein is quoted as saying, “If I were not a physicist, I would probably be a musician. I often think in music. I live my daydreams in music. I see my life in terms of music.” What clues do your recent music choices say about your mood or how your day is going?

    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.

    Sound Decibels (dB)
    Firecrackers 140
    Take-off of military jet from aircraft carrier 130
    Clap of thunder 120
    Auto horn standing next to the vehicle 110
    Outboard motor 100
    Motorcycle 90
    Noise inside a car in city traffic 80
    Typical washing machine 70
    Public conversation, such as at a restaurant 60
    Private conversation 50
    Hum of a computer with fan blowing 40
    Quiet whisper 30
    Swishing leaves 20
    Regular breathing 10
    Lowest typical sound audible by teenagers 0

    Example 13.17

    Selecting Decibel Value of Sounds

    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
    Answer
    1. 85 dB
    2. 70 dB
    3. 95 dB
    4. 100 dB

    Your Turn 13.17

    Match each of the following sounds with a corresponding decibel level: live outdoor concert, birds chirping, window air conditioner, garbage disposal.
    1.
    40 dB
    2.
    60 dB
    3.
    80 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.

    Who Knew?

    Graphing Calculators and Music

    It may be interesting to note that a TI-84 and TI-Nspire graphing calculators can be utilized to tune a musical instrument by measuring the frequency of a note using a small plug-in accessory that captures the sound waves from a note and displays the corresponding frequency. Using the displayed frequency, an instrumentalist can then make the needed adjustment to perfectly tune an instrument. This method of tuning an instrument can be helpful whether a novice player or a seasoned instrumentalist because the instrument can be tuned precisely to the correct frequency.

    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

    Piano keys and notes. The white keys are labeled A B C D E F G A. The black keys are labeled A flat and G sharp, B flat and A sharp, D flat and C sharp, E flat and D sharp, G flat and F sharp, A flat and G sharp, B flat and A sharp.
    Figure 13.15 Piano Keys and Notes (credit: modification of work "Contemplate" by Walt Stoneburner/Flickr, CC BY 2.0)

    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 Figure 13.15. 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.

    Example 13.18

    Identifying Half-Steps

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

    1. D
    2. E
    3. G#
    Answer
    1. up D#, down D
    2. up F, down E
    3. up A, down G

    Your Turn 13.18

    Name which keys are one half-step up and one half-step down from the following:
    1.
    F#
    2.
    B
    3.
    G

    Example 13.19

    Identifying Whole Steps

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

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

    Your Turn 13.19

    Name which keys are one whole step up and one whole step down from the following:
    1.
    D
    2.
    C#
    3.
    E

    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.

    Example 13.20

    Listing All Notes in an Octave

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

    Answer

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

    Your Turn 13.20

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

    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.

    Example 13.21

    Calculating the Frequency Values of Octaves

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

    Answer

    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.

    Your Turn 13.21

    1.
    Given that the frequency of E4 is 330 Hz, find the approximate frequency of E2 rounded to the nearest whole number.

    People in Mathematics

    David Cope

    David Cope has a somewhat eclectic list of job titles ranging from author and music professor to scientist and artificial intelligence researcher. Cope combined his interests when he developed software that can analyze a piece of music and create a new and unique musical piece in the same style as the original. Some of his well-known products have been based off of the classical music of Mozart, creating what has been called Mozart’s “42nd Symphony,” as well as other genres including opera and a range of current music styles. Cope has also composed original musical pieces in collaboration with a computer.

    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.

    Who Knew?

    Spotify Royalty Payments

    Streaming services have grown exponentially in popularity thanks in large part to customized music listening through cell phone use and devices such as Google as well as Amazon Echo and Alexa devices for home and vehicles, adding to ways that artists are paid royalties. Spotify, which was launched in 2008, typically plays artists $0.06 per time a song is streamed, with some artists receiving up to $0.84 per play amounting to over $9 billion in revenue for Spotify in 2020. Since 2014, Spotify’s revenue has grown over a billion dollars a year, with roughly half of their revenue being paid out in royalties, which was good news for artists during the Covid-19 pandemic when in-person concerts and shopping were hindered.

    Check Your Understanding

    11.
    What is the difference between frequency and pitch of a note?
    12.
    Are higher frequencies associated with higher or lower pitch notes?
    13.
    What frequency range can humans hear?
    14.
    As a sound appears louder, does the decibel value increase or decrease?
    15.
    What is the lowest decibel value that most people can hear?
    16.
    What is the typical audible frequency range that adults can hear?
    17.
    How does the frequency of a note change when increased by one octave?

    Section 13.4 Exercises

    For the following exercises, select the most representative decibel level for each sound.
    1.
    Gas lawn mower: 70 dB, 100 dB, 120 dB
    2.
    Radio playing loud enough to sing along to at home: 20 dB, 50 dB, 70 dB
    3.
    Office noise on a floor of people working at desks: 40 dB, 60, dB, 80 dB
    4.
    Conversation in a quiet room: 60 dB, 80 dB, 100 dB
    5.
    Fast-moving train passing by when sitting in a car about 20 ft from the tracks with windows down: 40 dB, 60 dB, 80 dB
    For the following exercises, state the requested note.
    6.
    What is one half-step above G#?
    7.
    What is one whole step down from G?
    8.
    What is three half-steps above D?
    9.
    What is two whole steps down from A#?
    10.
    What is two half-steps down from E?
    11.
    What is an octave above B4?
    12.
    What is two octaves below F5?
    13.
    What is three octaves above G2?
    14.
    What is an octave below G2?
    15.
    Given that the frequency of
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/13:__Math_and.../13.05:_Math_and_Music), /content/body/div[3]/div[5]/div/div[6]/div/div[21]/div/div/span/@data-math, line 1, column 3
    
    , what is the frequency of A1?
    16.
    Given that the approximate frequency of
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/13:__Math_and.../13.05:_Math_and_Music), /content/body/div[3]/div[5]/div/div[6]/div/div[22]/div/div/span/@data-math, line 1, column 3
    
    , what is the approximate frequency of F5, rounded to the nearest whole number?
    17.
    Given that the approximate frequency of
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/13:__Math_and.../13.05:_Math_and_Music), /content/body/div[3]/div[5]/div/div[6]/div/div[23]/div/div/span/@data-math, line 1, column 3
    
    , what is the approximate frequency of A6#, rounded to the nearest whole number?
    18.
    Given that the approximate frequency of
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/13:__Math_and.../13.05:_Math_and_Music), /content/body/div[3]/div[5]/div/div[6]/div/div[24]/div/div/span/@data-math, line 1, column 3
    
    , what is the approximate frequency of D2, rounded to the nearest whole number?
    19.
    Given that the approximate frequency of
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/13:__Math_and.../13.05:_Math_and_Music), /content/body/div[3]/div[5]/div/div[6]/div/div[25]/div/div/span/@data-math, line 1, column 3
    
    , what is the approximate frequency of G3#, rounded to the nearest whole number?
    20.
    Given that the frequency of
    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Applied_Mathematics/Contemporary_Mathematics_(OpenStax)/13:__Math_and.../13.05:_Math_and_Music), /content/body/div[3]/div[5]/div/div[6]/div/div[26]/div/div/span/@data-math, line 1, column 3
    
    , what is the frequency of A5?

    This page titled 13.5: Math and Music is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    • Was this article helpful?