1.3 Data Storage - Part 3
1.3 Data Storage - Part 3
● The more SAMPLES that are taken each second, the more of the
original soundwave that is recorded.
1. Mr Hill’s new rap track has been recorded using a sample rate of
20,000Hz with a bit depth of 8 bits. What would the bitrate be?
160,000 bits per second
2. What would the file size be of a 30 second track, recorded at 44,100Hz,
with a bit depth of 16? Give your answer in MB.
30 x 44,100 x 16 = 21,168,000 bits
Two main reasons….
If higher sample rates
● Most humans are
and higher bit depths unable to hear above
mean better quality, 20,000Hz
then why not record ● The file size increases
everything at as the bitrate
increases
100,000Hz with a bit
depth of 24bits?
Compromise between quality
and file size
Listen to the
example and
notice how the
sample rate
affects the quality
of the track.
Ghost in the Machine
http://www.rigb.org/christmaslectures08/
Formats
Mr Hill is looking to record some
tracks for use on the Internet. He Music is stored in a variety of
plans to allow people to formats. Each format has its
download them in order to own advantages and
promote his new music.
disadvantages.
1. Would you recommend Type Characteristics
recording at 44,1000Hz or WAV High quality, Large
20,000Hz? (1) Size
2. What might be a MP3 Good quality, reduced
disadvantage to your size
suggestion? (1) MIDI Basic sound, small size
MIDI Sound Files
MIDI stands for:
MIDI files are sound files, however they are very
different to traditional sound files in that they do
Musical not store any actual sounds - as a result the files
Instrument are usually very small!
Digital
Interface Rather than storing data for actual sounds, MIDI
files store instructions for how sound should be
played. These sounds can then be played by real
MIDI instruments or through a speaker interface.
Lossy
● Produces a larger reduction in
file size but achieves this by
removing parts of the file that the Lossless
algorithm considers
unnecessary. ● Reduces the size of the file by
● Lower quality image or sound. storing the data in a different,
● Images may become blurred or more efficient way.
more blocky in colour. ● Reduces the size of the file less
● Sounds may lose some of the than lossy.
high/low pitch sounds that ● Perfect lossless compression is
humans struggle to hear. hard to achieve.
Compressing Images
We already know that bitmap files are large because of?…..
the information being stored about colour in each pixel.
● The number of pixels in the image. Fewer pixels would mean less
data being stored, and therefore a smaller file size. But what
would be the consequence of fewer (and larger) pixels making up
an image?
● Reduce the number of bits per pixel - But what would this do?
0 0 1 0 1 0 0 0
0 1 0 0 0 1 0 0
1 1 1 1 1 1 1 0
0 0 0 1 0 0 0 0
0 0 0 1 0 0 0 0
0 0 0 1 0 0 0 0
0 0 0 1 0 0 0 0
Compressing Sound
● Sound can be compressed in a very similar way to images.
● We can lower the sample rate - The number of samples per second
● We can reduce the bit depth - The number bits used to store each
sample