Sound Cambridge IGCSE Computer Science (9–1) revision

Not started

Learn it

In plain words

Sound is a wave: a smooth, continuous change in air pressure. A computer cannot store something continuous, so it measures the height of the wave at regular moments and stores each measurement as a binary number. That is sampling.

Take more measurements each second, and measure each one more finely, and the stored sound gets closer to the real thing. The file also gets bigger.

5 things to know

  1. A sound wave is analogue. It is sampled so that it can be converted to binary and processed by a computer.
  2. The sample rate is the number of samples taken in one second, measured in hertz (Hz).
  3. The sample resolution is the number of bits used to store each sample.
  4. A higher sample rate or a higher resolution makes the recording more accurate (closer to the original sound) and makes the file larger.
  5. File size in bits = sample rate × sample resolution × length of the recording in seconds.

Worked example

A sound is recorded for 30 seconds at a sample rate of 8000 samples per second and a resolution of 16 bits. Calculate the file size in bytes.

  1. File size in bits = 8000 × 16 × 30 = 3 840 000 bits.
  2. There are 8 bits in a byte: 3 840 000 ÷ 8 = 480 000 bytes.

Tips and tricks

  • Rate is "how often" and resolution is "how finely". They are two different things, and questions often ask for both.
  • When asked for the effect of a higher sample rate, give both effects: better accuracy and a larger file.
5 questions, about 2 minutes.

It lands in your notebook with its questions as flashcards.

Sound: 5 questions and answers

These are the quiz’s questions. Do the quiz first, then come back here for the ones that got you.

  1. What is the sample rate of a sound recording?
    • the number of bits in each sample
    • the number of samples taken each second (the answer)
    • the loudness of the sound
    • the length of the recording

    It is measured in hertz: samples per second.

  2. What is the sample resolution?
    • the number of samples taken each second
    • the number of bits used to store each sample (the answer)
    • the size of the file
    • the number of speakers used

    More bits per sample means each measurement is more precise.

  3. What is the effect of increasing the sample rate?
    • a less accurate recording and a smaller file
    • a less accurate recording and a larger file
    • a more accurate recording and a smaller file
    • a more accurate recording and a larger file (the answer)

    More samples follow the wave more closely, and there is more data to store.

  4. A sound lasts 10 seconds. It is sampled 1000 times a second with 8 bits per sample. What is the file size?
    • 1250 bytes
    • 8000 bytes
    • 10 000 bytes (the answer)
    • 80 000 bytes

    10 × 1000 × 8 = 80 000 bits, and 80 000 ÷ 8 = 10 000 bytes.

  5. Why does sound have to be sampled before a computer can store it?
    • Sound is too loud for a computer.
    • Sound is analogue, and a computer stores only binary values. (the answer)
    • Sound waves travel too slowly.
    • Computers cannot use microphones.

    A continuous wave has to be turned into separate numbers.

Still stuck on this one?Ask in the Papermunch Discord, or help someone else who is. Discord is for ages 13 and up.Join the server

Things you can type

Or go straight to

Or browse a shelf