Revision Notes
OxfordAQA IGCSE Computer Science (9210): Representing sound – Revision Notes
Revision notes for OxfordAQA IGCSE Computer Science 9210 section 3.3.7: analogue and digital sound, sampling rate, sample resolution, file size calculations and a self-test.
- Subject
- Computer Science
- Level
- IGCSE
- Topic
- Topic 3: Data representation
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to OxfordAQA IGCSE Computer Science (9210), For teaching from September 2017, exams from May/June 2019. Official specification .
Syllabus page (what it covers and how it is assessed): OxfordAQA IGCSE Computer Science.
Syllabus points this page covers
9210
- 3.3.7 Representing sound
This page covers 1 of the 8 subtopics in topic 3, Data representation.
Found an error? Report a correction.
Need help with this topic? Request a free trial class for IGCSE Computer Science (9210).
Condensed notes for section 3.3.7 Representing sound of OxfordAQA International GCSE Computer Science (9210). Worked examples are in the Representing sound study guide.
What the specification asks
- Understand that sound is analogue and must be converted to digital for storage and processing.
- Understand that sound waves are sampled; a sample is a measure of amplitude at a point in time.
- Describe digital sound using sampling rate and sample resolution.
- Calculate sound file sizes from the sampling rate and the sample resolution.
Key terms
| Term | Meaning |
|---|---|
| Analogue | Continuous; can take any value in a range (a sound wave) |
| Digital | Stored as discrete values in binary |
| Amplitude | The height of the wave; how loud the sound is |
| Sample | A measure of the amplitude at one point in time |
| Sampling rate | The number of samples taken each second, in hertz (1 Hz = 1 sample per second) |
| Sample resolution | The number of bits used for each sample |
How sound is made digital
- Measure the amplitude of the wave at regular, short intervals (sampling).
- Round each measurement to the nearest storable level.
- Store each measurement as a binary number.
- Play back by turning the numbers into a changing signal for the speaker.
Example: 4 samples a second, 3 bits each. Amplitudes 3, 6, 7, 4, 1, 0, 2, 5 are stored as 011 110 111 100 001 000 010 101, which is 8 × 3 = 24 bits.
Effect of the settings
| Setting | Quality | File size |
|---|---|---|
| Higher sampling rate | Closer to the original wave | Larger |
| Lower sampling rate | Detail lost | Smaller |
| Higher sample resolution | More precise amplitude | Larger |
| Lower sample resolution | Less precise amplitude | Smaller |
Levels of amplitude for a resolution of n bits: 2 to the power n. For example, 3 bits give 8 levels, 8 bits give 256 levels and 16 bits give 65,536 levels.
Rates in common use: 8,000 Hz for telephone speech; 44,100 Hz for CD music.
File size formula
File size (bits) = rate (Hz) × res × secs
Divide by 8 for bytes. Use seconds, not minutes. The formula has no channel term.
| Recording | Bits | Bytes |
|---|---|---|
| 10 s, 44,100 Hz, 16-bit | 7,056,000 | 882,000 (0.882 MB) |
| 60 s, 8,000 Hz, 8-bit | 3,840,000 | 480,000 (480 kB) |
| 180 s, 44,100 Hz, 16-bit | 127,008,000 | 15,876,000 (15.876 MB) |
| 30 s, 22,050 Hz, 8-bit | 5,292,000 | 661,500 |
| 5 s, 16,000 Hz, 16-bit | 1,280,000 | 160,000 |
Doubling the rate, the resolution or the time doubles the file size. Doubling two of them quadruples it.
Method for a calculation
- List the rate, resolution and time.
- Change minutes to seconds.
- Multiply the three values for the size in bits.
- Divide by 8 for bytes.
- Convert to kB or MB by dividing by 1,000 for each step.
- Add the unit.
Quality and size trade-off
- Speech over a telephone: low rate and resolution is enough, and the file is small.
- Music: high rate and resolution give better quality, but the file is large.
- Longer recordings give larger files.
Worked example in full
A 2 minute recording is made at 22,050 Hz with a sample resolution of 8 bits. Calculate the file size in kilobytes.
- Convert the length to seconds: 2 × 60 = 120 s.
- Bits = 22,050 × 8 × 120 = 21,168,000 bits.
- Bytes = 21,168,000 ÷ 8 = 2,646,000 bytes.
- Kilobytes = 2,646,000 ÷ 1,000 = 2,646 kB.
Describing sampling in an answer
A full-mark description has three points: the amplitude of the wave is measured at regular intervals; each measurement (sample) is stored as a binary number; and the number of measurements per second is the sampling rate.
Model answer
Explain how an analogue sound is stored as a digital file. [4 marks] The amplitude of the sound wave is measured at regular intervals (sampled). Each measurement is rounded to the nearest level that can be stored, and written as a binary number using the sample resolution. The number of samples taken each second is the sampling rate. The list of binary numbers is the digital recording.
Exam traps
- Minutes used instead of seconds.
- No division by 8 for bytes.
- Rate and resolution confused. Rate is how often; resolution is bits per sample.
- Resolution described as “quality”. It is the number of bits per sample.
- “Digital sound is identical to the original.” It is an approximation.
- “Sound is digital.” Sound is analogue.
- Amplitude and frequency confused. Amplitude is loudness; frequency is pitch.
- No unit in the answer.
Self-test
- State why a sound must be converted to a digital form for a computer.
- State what a sample is.
- State the unit of the sampling rate and what 1 unit means.
- State the number of amplitude levels that can be stored with 4 bits.
- Calculate the file size in bits for 5 seconds at 1,000 Hz with 4 bits per sample.
- Calculate the file size in bytes for 12 seconds at 5,000 Hz with 8 bits per sample.
- State the effect on file size of doubling the sampling rate.
- State one effect on sound quality of increasing the sample resolution.
- A clip lasts 2 minutes. State how many seconds to use in the formula.
- Explain the difference between sampling rate and sample resolution.
Answers:
- A computer can only store and process binary data, and sound is an analogue wave.
- A measure of the amplitude of the sound wave at a point in time.
- Hertz (Hz); 1 Hz is 1 sample per second.
- 16 (2 to the power 4).
- 20,000 bits (1,000 × 4 × 5).
- 60,000 bytes (5,000 × 8 × 12 = 480,000 bits; divide by 8).
- The file size doubles.
- The amplitude is stored more precisely, so the sound is closer to the original.
- 120 seconds.
- Sampling rate is how many samples are taken each second; sample resolution is how many bits are used to store each sample.
More resources on this topic
Related resources
-
Study guides
OxfordAQA IGCSE Computer Science (9210): Units of information – Study Guide
Study guide to OxfordAQA IGCSE Computer Science 9210 section 3.3.3: bits, bytes and the decimal prefixes kilo, mega, giga and tera, with unit conversions.
Computer Science · OxfordAQA · IGCSE
Read guide -
Practice questions
OxfordAQA IGCSE Computer Science (9210): Units of information – Practice Questions
Original OxfordAQA IGCSE Computer Science 9210 practice questions with answers on bits, bytes, kilobytes, megabytes, gigabytes and terabytes.
Computer Science · OxfordAQA · IGCSE
Try questions -
Revision notes
OxfordAQA IGCSE Computer Science (9210): Units of information – Revision Notes
Revision notes for OxfordAQA IGCSE Computer Science 9210 section 3.3.3: bit, byte, kB, MB, GB and TB with conversion rules, worked examples and a self-test.
Computer Science · OxfordAQA · IGCSE
Revise topic
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.