Cambridge IGCSE Computer Science · Syllabus 0478 · Data Representation
Sample Rate
What is Sample Rate?
The sample rate is the number of samples taken in a second when an analogue sound wave is converted to binary.
This definition is part of the Data Representation chapter in Cambridge IGCSE Computer Science.
Sample Rate in context
Sound reaches a microphone as a continuously varying analogue wave. To store it, the wave is sampled: its amplitude is measured at regular intervals, each measurement is recorded as a binary value, and those values are stored in order. Two settings control the process. The sample rate is the number of samples taken in a second. The sample resolution is the number of bits used per sample. Increasing either one makes the stored recording a more accurate representation of the original wave — and increases the file size.
For an uncompressed sound file, the size in bits is the sample rate multiplied by the sample resolution multiplied by the duration in seconds. The logic is simple: the rate tells you how many samples there are each second, the resolution tells you how many bits each sample takes, and the duration tells you how many seconds there are. Multiply the three, then convert down to the unit asked for.
Common mistakes with Sample Rate
- 5. Swapping sample rate and sample resolution. Why it fails They are different quantities with different units. Rate is samples per second; resolution is bits per sample. An "explain" answer that swaps them describes the wrong quantity, however sound the general idea. Fix Rate counts how often; resolution counts how precisely.
- M12. "Sample rate and sample resolution mean the same thing." Why it fails They are different quantities measured in different things. Rate counts samples per second; resolution counts bits per sample. Correct model Rate is how often the wave is measured; resolution is how precisely each measurement is recorded. Exam-safe "The sample rate is the number of samples taken in a second; the sample resolution is the number of bits used per sample." Test yourselfHideQ. Which one determines how many different amplitude levels are available?A. The sample resolution: n bits give 2n levels.
- M13. "Increasing the sample rate increases the pitch." Why it fails It confuses the frequency of the recorded sound with the frequency of the sampling. Pitch is a property of the sound; the sample rate is a setting of the recording process. Correct model A higher sample rate takes more measurements of the same wave, giving a more accurate representation and a larger file. The pitch is unchanged. Exam-safe "Increasing the sample rate takes more samples per second, which makes the stored recording more accurate and increases the file size; it does not change the pitch of the sound." Test yourselfHideQ. State two effects of doubling the sample rate.A. The stored recording is a more accurate representation of the original wave, and the file size doubles.