Computer-science_A-level_Cie
-
computers-and-components6 主题
-
logic-gates-and-logic-circuits2 主题
-
central-processing-unit-cpu-architecture6 主题
-
assembly-language-4 主题
-
bit-manipulation1 主题
-
operating-systems3 主题
-
language-translators2 主题
-
data-security3 主题
-
data-integrity1 主题
-
ethics-and-ownership3 主题
-
database-concepts3 主题
-
database-management-systems-dbms-1 主题
-
data-definition-language-ddl-and-data-manipulation-language-dml1 主题
-
computational-thinking-skills1 主题
-
algorithms14 主题
-
data-types-and-records2 主题
-
arrays2 主题
-
files1 主题
-
introduction-to-abstract-data-types-adt1 主题
-
programming-basics1 主题
-
constructs2 主题
-
structured-programming1 主题
-
program-development-life-cycle2 主题
-
program-design-2 主题
-
program-testing-and-maintenance3 主题
-
user-defined-data-types1 主题
-
file-organisation-and-access-3 主题
-
floating-point-numbers-representation-and-manipulation3 主题
-
protocols2 主题
-
circuit-switching-packet-switching1 主题
-
processors-parallel-processing-and-virtual-machines5 主题
-
boolean-algebra-and-logic-circuits4 主题
-
purposes-of-an-operating-system-os3 主题
-
translation-software3 主题
-
encryption-encryption-protocols-and-digital-certificates3 主题
-
artificial-intelligence-ai4 主题
-
recursion1 主题
-
programming-paradigms4 主题
-
object-oriented-programming7 主题
-
file-processing-and-exception-handling2 主题
-
data-representation5 主题
-
multimedia3 主题
-
compression2 主题
-
networks-and-the-internet11 主题
sound-representation
Sound encoding
How is sound encoded in a computer system?
-
Computers represent all data in binary, including sound that we record using a microphone (input) or sound that we playback from a speaker (output)
-
For this to happen, analogue sound must be sampled and stored
Analogue sound
-
Sound waves begin as analogue and for a computer system to understand them they must be converted into a digital form
-
Measurements of the original sound wave are captured and stored as binary on secondary storage
-
This process is called Analogue to Digital conversion (A2D)
-
The process begins by measuring the loudness (amplitude) of the analogue sound wave at a point in time, this is called sampling
-
The higher the amplitude, the louder the sound
-
Each measurement (sample) generates a value which can be represented in binary and stored
-
Using the samples, a computer is able to create a digital version of the original analogue wave
-
The digital wave is stored on secondary storage and can be played back at any time by reversing the process

-
In this example, the grey line represents the digital wave that has been created by taking samples of the original analogue wave
-
In order for the digital wave to look more like the analogue wave (black line) the sampling rate, sampling resolution and sample interval can be changed
Sampling rate vs sampling resolution
Sampling rate
-
The sampling rate is the amount of samples taken per second of the analogue wave
-
Samples are taken for the duration of the sound
-
The sampling rate is measured in Hertz (Hz)
-
1 Hertz is equal to 1 sample of the sound wave

-
In the example above, the higher the sample rate, the closer to the original sound wave the digital version looks
Sampling resolution
-
Sampling resolution is the number of bits used to represent each sound sample
-
Sampling resolution is closely related to the bit depth of a bitmap image, they measure the same thing in different contexts

-
The sample rate of a typical audio CD is 44.1kHz (44,100 Hertz or 44,100 samples per second), a sampling resolution of 16 and is recorded in stereo sound
-
Using the graphic above to compare common sampling resolutions, the question, “Why does telephone hold music sound so bad?” can now be answered
Impact of sampling settings
What are the impacts of sampling settings?
|
Factor |
Effect of playback quality |
Effect on file size |
|---|---|---|
|
Sampling rate |
⬆️higher = more detail, better sound quality |
⬆️higher = more data, larger file size |
|
Sampling resolution |
⬆️higher = bigger range, better sound quality |
⬆️higher = more data per sample, larger file size |
Responses