EECS1520 - Midterm 2

studied byStudied by 58 people
5.0(1)
Get a hint
Hint

audio moving as a sound wave

1 / 166

flashcard set

Earn XP

Description and Tags

Lec 7-9

167 Terms

1

audio moving as a sound wave

sound waves (analog) —> electric signals (digital) —> sound waves (analog)

New cards
2

how do microphones work

as a transducer, converting waves to electric signals

New cards
3

how speakers work

similar to mics, but with an electric voltage/current to sound waves

New cards
4

2 ways of creating digital audio

sampling

synthesis

New cards
5

anatomy of audio

uses sine waves as a function of time and every analog sound has an infinite number of sine waves with varying amplitudes and phases

New cards
6

amplitude equation

a = max / min

New cards
7

period equation

period = 1/f

New cards
8
<p>sine audio equation</p>

sine audio equation

a = amplitude (intensity dB)

f = frequency (pitch Hz)

theta = phase (relative location of sound)

New cards
9

hearing frequency limits

upper boundary = variable (!) and decreases with age

16 - 20 Hz

New cards
10

how do high frequencies change the timbre

it affects the colouration of sounds

New cards
11

digitizing sound

takes samples (measuring rate) at a fixed rate (sampling rate) and recording them

New cards
12

how rate speeds affects files

too fast = large file

too slow = inaccurate

New cards
13

what happens if low sample rate is taken

reproduces a sound that doesn’t match the original frequency

New cards
14

nyquist-shannon

sample interval <= half period

but to catch peaks and valleys = sampling rate (frequency) >= 2 x max frequency (for accurate reproduction)

New cards
15

if highest frequency of sample is 5, what samples can be used?

if max frequency of sample is 5, 5×2 = 10 kHz min is needed of sampling frequency

New cards
16

bit depth

number of bits used to encode a single sample

higher bit depth = more accurate sample (quiet sounds better preserved)

New cards
17

bit depth in practice —> <8 bits

not used for sound, but for recording physical processes (blood pressure, heartbeat, etc)

New cards
18

bit depth in practice —> 8 bits

common in telephony and quantization noise is sometimes perceptible

New cards
19

bit depth in practice —> 16 bits

most high quality sound (CDs, MP3, etc)

New cards
20

bit depth in practice —> 24+ bits

even higher quality and dynamic range, often used before or during sound processing/editing (mastering)

New cards
21

bit rate

combines bit depth and sampling rate —> higher bit rate = better quality = larger file size

bit rate = bit depth x sample frequency x channels = # bits /sec

New cards
22

if sampling rate is 6 and bit depth is 2, what’s uncompressed bit rate?

6 × 2 × 1 (channel) = 12 bits/sec

New cards
23

if bit rate is 12 and sample frequency is 6, what’s bit depth?

bit depth = bit rate/sampling frequency x channel

= 12/6×1 = 2 bits

New cards
24

format of uncompressed audio

usually in .wav

New cards
25

audio compression technique —> lossless

similar to text compression techniques

New cards
26

audio compression technique —> lossy

removes imperceptible sounds (using psychoacoustic models) and reduces bit rate (less accurate reproduction of original)

New cards
27

audio compression technique —> codecs

combines techniques with compression and decompression algorithms for audio/video

New cards
28

portmanteau

is word combination of compressor (coder) and decompressor (decoder)

New cards
29

example codec - FLAC (free lossless audio codec)

lossless

62% compression ratio

archives high quality audio

New cards
30

example codec - MP3 (moving pictures expert group, layer 3)

lossy

23% ratio

uses psychoacoustics and huffman encoding

lower bit rates

mobile devices

New cards
31

example codec - AAC (advanced audio coding)

lossy

14% ratio

uses psychoacoustics, huffman encoding

lower bit rates

better perceived quality than MP3

apple devices and modern smartphones

New cards
32

representing colour

human retina has 4 types of light-sensitive cells

1 = low-light night vision rods

3 = s/m/l cones for regular vision (RGB in ASCII order)

New cards
33

what happens when all 3 cones are stimulated by light

causes a grey colour and the cones that stimulate RGB cones can form other colours by combination

New cards
34

bits for colour range

10 bits possible for high dynamic range, but 3 integers for a range of 0-255 reproduces colour

New cards
35
<p>CYMK</p>

CYMK

RGB forms Cyan, Yellow, Magenta, blacK

starts with white paper and subtracts individual components

New cards
36

HSL vs YUV

Hue, Saturation, Luminance

Luminance, Blue, Red

both similar to colour wheel and is how the brain sees colour

these are alternative colour models used in fields

New cards
37

representing colour with hexadecimal

each RGB is 1 byte

256 values = 1 byte = 8 bits = 16 hexadecimal digits

New cards
38

hexadecimal digits to represent colour

RRGGBB

<p>RRGGBB</p>
New cards
39

pixel

dots of colour in an image or display

New cards
40

resolution

number of pixels in an image that determines size

sometimes refers to pixel density (ppi = # pixels/density)

New cards
41

vector graphics

tells how an image is displayed, defined using equations, lines, curves, and polygons

lossless b/c no pixelation of images as instructions are encoded

New cards
42

how vector graphics works

can be enlarged without loss of detail or file size change

images created using drawing applications or text editors

New cards
43

scalable vector graphics (svg)

text-based then compressed accordingly

computer generates simple images through this

New cards
44

rester graphics

pixels are specified for complicated images using a matrix of pixels in a painting application

used for photographs but is lossy because suffers from pixelation

New cards
45

indexed colour

was popular for compressing images, and only represents useful or used colours

similar to compressing text with keyword encoding

New cards
46

GIF (graphics interface format)

lossless

indexed colours (256)

coding similar to Huffmans’

10% ratio

allows transparency and animation

less modern than PNG

New cards
47

PNG (portable network graphics)

lossless - encodes with high level of detail

indexed colours

RLE

7% ratio

allows transparency

New cards
48

GIF vs PNG

both used for line drawings, logos, or diagrams

PNG is too large but lossless

GIF is low quality but includes 256 colours

New cards
49

JPEG (joint photographic experts group)

ideal format for photos, but bad for images with text or sharp lines

lossy

1-10% ratio

divides entire image into blocks of 8×8 pixels but each block stores average intensity

New cards
50

guide to choosing image format

knowt flashcard image
New cards
51

video structure

comprised of frames of still images and audio

rapid succession gives appearance of motion (24 - 60 fps)

New cards
52

aspect ratio

16:9 = # pixels horizontally : # pixels vertically

New cards
53

uncompressed video occupation

takes up vast storage space, greater than 100 MB for full HD, but compression techniques are usually used

New cards
54

video compression

typically little change between successive video frames and use techniques to remove redundant information

New cards
55

spatial (intraframe) compression technique

M-JPEG

lossless or lossy

uses info within same frame to reduce file size

New cards
56

temporal (interframe) compression technique

MJPEG

lossy

uses data from before and after nearby frames to reduce file size

New cards
57

temporal (interframe) compression technique - key (I) frames

compressed using spatial techniques and can be reproduced independently

it’s inserted at scene changes and/or regular intervals to preserve quality of streaming or playback

New cards
58

P and B frames

Predictive and Bidirectional

other frames encoded by saving differences between it and previous key-frame

New cards
59

what P/B frames are used for

if a keyframe’s lost during streaming or skipped during fwd/bwd, the displayed video can be distorted, but it’s good for video distribution (not editing)

New cards
60

lossless codec

HuffYUV

New cards
61

lossy codecs

MPEG-2, H.264, H.265

New cards
62

file containers vs codecs

file containers puts video/audio into a file, but codecs compress

New cards
63

file containers

combines video and audio streams into one file and doesn’t indicate the codecs used

some allow additional data but containers indicated by file extension

New cards
64

.avi (audio video interface)

very old, not good for streaming

New cards
65

.mp4 (MPEG-4)

supports multiple audio/video streams and subtitles, but limited codecs (mobile devices)

New cards
66

.mkv (matroska)

like mp4, but supports unlimited streams and codecs and varying support on mobile devices

New cards
67

claude shannon

applied boolean logic to create digital computing machines (father of modern information age)

<p>applied boolean logic to create digital computing machines (father of modern information age)</p>
New cards
68

gate

device that performs basic operation on electric signals with transistors

New cards
69

circuits

gates combined to make more complicated tasks

New cards
70

boolean expressions

uses boolean algebra as a mathematical for expressed two-valued logic

New cards
71

logic diagrams

graphical representation of a circuit, each gate with it’s own symbol

New cards
72

truth tables

table showing possible input and output values

New cards
73

functional notation

uses function name with a list of arguments in place of operands used in boolean logic

New cards
74

transistor

trans-conductance variable resistor

either an amplifier or binary switch (bipolar)

New cards
75

how transistors work

implements logic function in hardware

passes in outputs to inputs for complex operations

New cards
76

pros of transistors

faster and smaller than relays, less fragile and consuming than vacuum tubes

New cards
77

NOT gate

outputs the inverted input value, accepts one value

<p>outputs the inverted input value, accepts one value </p>
New cards
78

*AND gate

if all 1’s, then = 1

if not then output is 0

<p>if all 1’s, then = 1</p><p>if not then output is 0</p>
New cards
79

*OR gate

if all 0, then = 0

otherwise output = 1

<p>if all 0, then = 0</p><p>otherwise output = 1</p>
New cards
80

NAND gate

if all are 1, then = 0

or else it = 1

<p>if all are 1, then = 0</p><p>or else it = 1</p>
New cards
81

NOR gate

if all 0, then = 1

or else = 0

<p>if all 0, then = 1</p><p>or else = 0</p>
New cards
82

*XOR gate

if both inputs same, then = 0

or else it’s 1

<p>if both inputs same, then = 0</p><p>or else it’s 1</p>
New cards
83

combinational circuits

uses output of one gate as input for another

<p>uses output of one gate as input for another </p>
New cards
84

adders

special circuits that carry out addition operations that’s performed in binary

New cards
85

half adder

circuit that computes sum of 2 bits and produces the correct carry bit

<p>circuit that computes sum of 2 bits and produces the correct carry bit</p>
New cards
86

full adder

circuit that computes sum of 2 bits and a carry in bit, then produces carry out bit

<p>circuit that computes sum of 2 bits and a carry in bit, then produces carry out bit</p>
New cards
87

CPU

central processing unit

New cards
88

RAM

random access memory

New cards
89

SDRAM

synchronous dynamic RAM (double data rate)

New cards
90

ROM

read only memory

New cards
91

PCI

peripheral component interconnect

replaced by PCIe

New cards
92

BUS

wires connecting CPU and other components

<p>wires connecting CPU and other components</p>
New cards
93

neumann architecture

created a simplified computing model w/

cpu

memory

I/O devices

maybe secondary storage

New cards
94

data flow

knowt flashcard image
New cards
95

hardware diagram

<p></p>
New cards
96

CPU

brains of computer

decodes instructions and carries out the corresponding arithmetic, logic, or control operations

sometimes replaceable in desktops, but usually soldered to motherboard

New cards
97

processing speed

computation occurs in cycles and simpler designed CPUs require more cycles/instruction

Hz = cycles/sec

New cards
98

storage space

data’s represented in bits

byte = 8 bits (GHz)

New cards
99

GHz and TB

measuring in base units are combined with metric or binary prefixes to represent larger magnitudes for contemporary computing

New cards
100

Bus

connection between components or devices in a computer, often a set of parallel wires

some modern designs have chip with CPU and memory in them

New cards

Explore top notes

note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 12 people
... ago
4.0(1)
note Note
studied byStudied by 6 people
... ago
4.5(2)
note Note
studied byStudied by 20 people
... ago
5.0(1)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 43 people
... ago
5.0(1)
note Note
studied byStudied by 67 people
... ago
5.0(3)
note Note
studied byStudied by 134 people
... ago
5.0(2)

Explore top flashcards

flashcards Flashcard (33)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (153)
studied byStudied by 12 people
... ago
5.0(1)
flashcards Flashcard (42)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (100)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (83)
studied byStudied by 10 people
... ago
4.0(1)
flashcards Flashcard (224)
studied byStudied by 16 people
... ago
5.0(1)
flashcards Flashcard (230)
studied byStudied by 11 people
... ago
5.0(1)
robot