0% found this document useful (0 votes)
104 views9 pages

1.1.3 Sound

1) Sound is transmitted through oscillations of pressure in a medium like air. Speakers create sound waves by moving their cone in and out, pushing air together in waves that travel at 340 m/s to the ear. 2) For computers to store sound, continuous sound waves must be converted to discrete digital values using analog to digital conversion. Sampling rate and resolution determine quality, with higher rates providing better approximations of the original sound wave. 3) File size depends on sampling rate, resolution, and length. Higher quality settings produce larger files that more accurately represent sound but require more storage space. Audacity is free software that can be used to edit and experiment with digital sound files.

Uploaded by

Hussain Sajid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views9 pages

1.1.3 Sound

1) Sound is transmitted through oscillations of pressure in a medium like air. Speakers create sound waves by moving their cone in and out, pushing air together in waves that travel at 340 m/s to the ear. 2) For computers to store sound, continuous sound waves must be converted to discrete digital values using analog to digital conversion. Sampling rate and resolution determine quality, with higher rates providing better approximations of the original sound wave. 3) File size depends on sampling rate, resolution, and length. Higher quality settings produce larger files that more accurately represent sound but require more storage space. Audacity is free software that can be used to edit and experiment with digital sound files.

Uploaded by

Hussain Sajid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Computer Science 9608 (Notes)

Chapter: 1.1 Information representation

Topic: 1.1.3 Sound


Sound is an oscillation of pressure transmitted through a solid, liquid, or gas (there is no sound in outer
space as space is a vacuum and there is no solid, liquid or gas to transmit sound through!). A speaker
works by moving its center cone in and out, this causes the air particles to bunch together forming waves.
These waves spread out from the speaker travelling at 340 m/s. If your ear is in the way, then the waves of
0T 0T31U U31T

sound particles will collide with your ear drum, vibrating it and sending a message to your brain. This is
how you hear:

When you hear different volumes and pitches of sound all that is happening is that each sound wave
varies in energy for the volume (larger energy waves, the louder the sound), or distance between sound
waves which adjusts the pitch, (smaller distances between waves leads to higher pitched sound).

1 - Base volume and frequency


2 - double volume and frequency
3 - same volume treble the frequency

Page 1 of 9
Computer Science 9608 (Notes)
Chapter: 1.1 Information representation

Topic: 1.1.3 Sound


Sound is often recorded for two channels, stereo; feeding a left and right speaker whose outputs may
differ massively. Where one channel is used, this is called mono. 5.1 surround sound used in cinemas and
0T 0T31U U0T31 0T

home media set ups use 6 channels.

A computer representation of a stereo song, if you look carefully you'll see the volume of the song varying
as you go through it

This section of the book will cover how we record, store and transmit sound using computers. Sound
waves in nature are continuous; this means they have an almost infinite amount of detail that you could
0T 0T

store for even the shortest sound. This makes them very difficult to record perfectly, as computers can
only store discrete data, data that has a limited number of data points.
0T 0T 0T 0T

The discrete approximations (in red) can be used to recreate


Sound is a continuous set of data points
the original sound (grey). However, due to limitations in the
formed by a wave. Computers sample this
number of samples we take we are often unable to truly
sound at discrete points to store a digital
represent a sound wave, though we can get close enough for
approximation
the human ear not to notice the difference.

Page 2 of 9
Computer Science 9608 (Notes)
Chapter: 1.1 Information representation

Topic: 1.1.3 Sound


Analogue and digital
For a computer to store sound files we need to get the continuous analogue sound waves into discrete
binary values:

An analogue sound wave is picked up by a microphone and sent to an Analogue to Digital (ADC) converter
in the form of analogue electrical signals. The ADC converts the electrical signals into digital values which
can be stored on a computer.

Once in a digital format you can edit sounds with programs such as audacity.

To play digital audio you convert the sound from digital values into analogue electrical signals using the
DAC, these signals are then passed to a speaker that vibrating the speaker cone, moving the air to create
sound waves and analogue noise.

Analogue to Digital Converter (ADC) - Converts analogue sound into digital signals that can be stored on a
computer

Digital to Analogue Converter (DAC) - Converts digital signals stored on a computer into analogue sound
that can be played through devices such as speakers

Page 3 of 9
Computer Science 9608 (Notes)
Chapter: 1.1 Information representation

Topic: 1.1.3 Sound

fig 1. The original analogue sound wave is a continuous set of points


fig 2. ADC converts sound into digital data
fig 3. DAC converts digital data into analogue sound, the analogue wave produced may differ significantly
from the original sound wave

Page 4 of 9
Computer Science 9608 (Notes)
Chapter: 1.1 Information representation

Topic: 1.1.3 Sound


Sound Sampling
So we should know by now that sound waves are continuous and computers can only store discrete data.
How exactly does an Analogue to Digital Converter convert a continuous sound wave into discrete digital
data? To do this we need to look at how computers sample sound.

Sampling Rate - The number of samples taken per second


31TU U0T31 0T

Hertz (Hz) - the SI unit of frequency defined as the number of cycles per second of a periodic
31TU U0T31 0T

phenomenon

To create digital music that sounds close to the real thing you need to look at the analogue sound waves
and try to represent them digitally. This requires you to try to replicate the analogue (and continuous)
waves as discrete values. The first step in doing this is deciding how often you should sample the sound
wave, if you do it too little, the sample stored on a computer will sound very distant from the one being
recorded. Sample too often and sound stored will resemble that being recorded but having to store each
of the samples means you'll get very large file sizes. To decide how often you are going to sample the
analogue signal is called the sampling rate. Take a look at the following example:

1/2 high sample 1/3 high sample 1/4 high sample


Original Sound High sample rate
rate rate rate

original continuous digital looks like digital loses poor resemblance


loss of peaks
sound wave original sharpness to original!

To create digital sound as close to the real thing as possible you need to take as many samples per
second as you can. When recording MP3s you'll normally use a sampling rate between 32,000, 44,100 and
0T 0T31U U0T31 0T

48,000Hz (samples per second). That means that for a sampling rate of 44,100, sound waves will have
been sampled 44,100 times per second! Recording the human voice requires a lower sampling rate,
around 8,000Hz.

Page 5 of 9
Computer Science 9608 (Notes)
Chapter: 1.1 Information representation

Topic: 1.1.3 Sound


If you speak to someone on the phone it may sound perfectly acceptable, but try playing music down a
telephone wire and see how bad it sounds.

Comparison of the same sound sample recorded at 8kHz, 22kHz and 44kHz sample rate. Note the spacing
of the data points for each sample. The higher the sample rate the more data points we'll need to store

Sampling resolution

Sampling resolution - the number of bits assigned to each sample


31TU U0T31 0T

As you saw earlier, different sounds can have different volumes. The sampling resolution allows you to set
the range of volumes storable for each sample. If you have a low sampling resolution then the range of
volumes will be very limited, if you have a high sampling resolution then the file size may become
unfeasible. The sampling resolution for a CD is 16 bits used per sample.

Page 6 of 9
Computer Science 9608 (Notes)
Chapter: 1.1 Information representation

Topic: 1.1.3 Sound


File sizes

Bit rate - the number of bits required to store 1 second of sound


31TU U0T31 0T

To work out the size of a sound sample requires the following equation:

File Size = Sample Rate * Sample Resolution * Length of sound

This is the same as saying:

File Size = Bit Rate * Length of sound

Let's look at an example:


Example: Sound File Sizes

If you wanted to record a 30 second voice message on your mobile phone you would use the following:

Sample Rate = 8,000Hz


Sample Resolution = 16 bit
Length of Sound = 30 seconds

Therefore the total file size would be:


8,000 * 16 * 30 = 3 840 000 Bits = 480 000 Bytes

Sound Editing

If you are interested in sound editing you can start editing your own music using a program
called Audacity. Using Audacity you can create your own sound samples with different sample rates and
0T 0T31U U31T

sample resolutions, listening to the difference between them and noting the different file sizes.

Features

This is a list of features in Audacity, the free, open source, cross-platform audio editor.

Recording
Audacity can record live audio through a microphone or mixer, or digitize recordings from cassette tapes,
0T 0T31U

records or minidiscs. With some sound cards, and on any Windows Vista, Windows 7 or Windows 8
U31T

machine, Audacity can also capture streaming audio. 0T 0T31U U31T

Page 7 of 9
Computer Science 9608 (Notes)
Chapter: 1.1 Information representation

Topic: 1.1.3 Sound


Import and Export
Import sound files, edit them, and combine them with other files or new recordings. Export your recordings
in many different file formats, including multiple files at once. 0T 0T31U U31T

Sound Quality

Supports 16-bit, 24-bit and 32-bit (floating point) samples (the latter preserves samples in excess
of full scale).
Sample rates and formats are converted using high-quality resampling and dithering.
Tracks with different sample rates or formats are converted automatically in real time.

Editing

Easy editing with Cut, Copy, Paste and Delete.


Unlimited sequential Undo (and Redo) to go back any number of steps.
Edit and mix large numbers of tracks.
Multiple clips are allowed per track.
0T 0T31U U0T31 0T

Label tracks with selectable Sync-Lock Tracks feature for keeping tracks and labels synchronized.
31TU U0T31 0T 0T 0T31U U0T31 0T

Draw Tool to alter individual sample points.


Envelope Tool to fade the volume up or down smoothly.
31TU U0T31 0T

Automatic Crash Recovery in the event of abnormal program termination.

Accessibility

Tracks and selections can be fully manipulated using the keyboard. 0T 0T31U U31T

Large range of keyboard shortcuts. 0T 0T31U U31T

Excellent support for JAWS, NVDA and other screen readers on Windows, and for VoiceOver on
0T 0T31U U0T31 0T 0T 0T31U U0T31 0T

Mac.

Effects

Change the pitch without altering the tempo (or vice-versa).


Remove static, hiss, hum or other constant background noises.
Alter frequencies with Equalization, Bass and Treble, High/Low Pass and Notch Filter effects.
Adjust volume with Compressor, Amplify, Normalize, Fade In/Fade Out and Adjustable Fade
effects.
Remove Vocals from suitable stereo tracks.
31TU U0T31 0T

Create voice-overs for podcasts or DJ sets using Auto Duck effect. 0T 0T31U U0T31 0T

Page 8 of 9
Computer Science 9608 (Notes)
Chapter: 1.1 Information representation

Topic: 1.1.3 Sound


Other built-in effects include:
o Echo
o Paulstretch (extreme stretch)
o Phaser
o Reverb
o Reverse
o Truncate Silence
o Wahwah
Run "Chains" of effects on a project or multiple files in Batch Processing mode. 0T 0T31U U0T31 0T

Plug-ins

Support for LADSPA, Nyquist, VST and Audio Unit effect plug-ins.
0T 0T31U U31T 0T 0T31U U31T 0T 0T31U U0T31 0T 0T 0T31U U0T31 0T

Effects written in the Nyquist programming language can be easily modified in a text editor - or
0T 0T31U U0T31 0T

you can even write your own plug-in.

Analysis

Spectrogram view modes for visualizing frequencies.


"Plot Spectrum" command for detailed frequency analysis.
"Sample Data Export" for exporting a file containing amplitude values for each sample in the
selection.
Contrast Analysis for analyzing average rms volume differences between foreground speech and
background music.
Support for adding VAMP analysis plug-ins.
0T 0T31U U0T31 0T

Free and Cross-Platform

Licensed under the GNU General Public License (GPL).


0T 0T31U U31T

Runs on Windows, Mac OS X and GNU/Linux

Page 9 of 9

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy