Types of Data. Numbers Text Pictures Sound Video.

23
Types of Data

Transcript of Types of Data. Numbers Text Pictures Sound Video.

Page 1: Types of Data. Numbers Text Pictures Sound Video.

Types of Data

Page 2: Types of Data. Numbers Text Pictures Sound Video.

Types of Data

Numbers Text Pictures Sound Video

Page 3: Types of Data. Numbers Text Pictures Sound Video.

Numbers

Computers use Binary Eg 10000110 in binary is

8 bits (a byte) can only hold numbers up to 255, so how do you hold bigger numbers?– Use more than one byte!

Page 4: Types of Data. Numbers Text Pictures Sound Video.

Sound

Sound can be drawn on a graph

Tim e

Vo

lum

e

Page 5: Types of Data. Numbers Text Pictures Sound Video.

Digitizing Sound

Time is spit into units called the sampling rate

Tim e

Vo

lum

e

Tim e

Vo

lum

e

As seen increasing the sampling rate makes the digitised data more accurate

Page 6: Types of Data. Numbers Text Pictures Sound Video.

Sampling Rate

As the sampling rate increases the quality of the digitised sound increases

Tim e

Vo

lum

e

Page 7: Types of Data. Numbers Text Pictures Sound Video.

Converting to Digital

Tim e

Vo

lum

e

1111111011011100

000000010010001101000101011001111000100110101011

Page 8: Types of Data. Numbers Text Pictures Sound Video.

Conversion Example

Tim e

Vo

lum

e

1111111011011100

000000010010001101000101011001111000100110101011

Page 9: Types of Data. Numbers Text Pictures Sound Video.

Final Data

This little segment of music has the following code

1011,1101,1101,1100,1010,1000,0110,0011,0010,0001,0001,0011,0100,0110,0111,0110,0100

Without the commas 101111011101110010101000011000110010

00010001001101000110011101100100 This is just for a split second CD’s are sampled at 44KHz, ie 44000 times a

second!

Page 10: Types of Data. Numbers Text Pictures Sound Video.

Hardware

An Analogue to Digital converter is used to do this digitising.

To play back sound a sound card is needed– Converts the digital data back into an

analogue sound

Page 11: Types of Data. Numbers Text Pictures Sound Video.

Midi(Musical Instrument Digital Interface)

Electronic instruments use this standard to store data on notes.

Allows keyboard to communicate with Guitar!

Data stored includes– Pitch– Length– Dynamics– Type of sound– Very small file size (stores via ASCII)

Page 12: Types of Data. Numbers Text Pictures Sound Video.

Midi Examples

Page 13: Types of Data. Numbers Text Pictures Sound Video.

Midi

PC’s can work with Keyboards and other Midi instruments

Songs stored on disk then played through Keyboard etc

Editing the song then becomes extremely easy via the PC

Page 14: Types of Data. Numbers Text Pictures Sound Video.

Images

Two ways of creating an image on a PC

Bit-map Vector

Page 15: Types of Data. Numbers Text Pictures Sound Video.

Bit-map

Image made up of dots called pixels Each dot can have a colour assigned

to it The number of possible colours

depends upon the quality of the image Low quality = 2 colours ie black and

white High quality = over 4 billion colours

Page 16: Types of Data. Numbers Text Pictures Sound Video.

Example

Each pixel can be assigned either 0 for black or 1 for whiteThis graphic has the value

000111100010111111011101111011111011011111110011111111001111111011011111011110110101111110101110000111

All this for one 10 x 10 black and white picture

Page 17: Types of Data. Numbers Text Pictures Sound Video.

The Maths

10 x 10 pixels = 100 ones and zeros If you have a high quality image with lots of

colours you need 32 ones and zeros for each pixel!

10 x 10 x 32 = 320 ones and zeros This screen is 800 x 600 pixels! 800 x 600 x 32 = 15360000 ones and zeros

approx 15Mb of memory! (This is why graphics cards need lots of memory!)

Page 18: Types of Data. Numbers Text Pictures Sound Video.

Bit-maps

Used for photographs Jpeg, Giff, Tiff Easy to edit

– Brush / spray

Zoom / Resize problem!

Page 19: Types of Data. Numbers Text Pictures Sound Video.

Zoom / Resize Problems

Page 20: Types of Data. Numbers Text Pictures Sound Video.

Vectors

Sometimes called Object Orientated Drawing

Image made up of objects (shapes) Eg

– Lines– Rectangles– Circles

The shapes are mathematically stored in memory

Page 21: Types of Data. Numbers Text Pictures Sound Video.

Example

A rectangle can be stored with two points plus information about line type and fill.

(0,0)

(4,2)

Page 22: Types of Data. Numbers Text Pictures Sound Video.

Vectors

Very small memory overheads Device-independent Scalable

Page 23: Types of Data. Numbers Text Pictures Sound Video.

Any Questions