6. Memory and data storage Flashcards
How does a midi file work?
Consists of list of commands that instruct a device how to produce a particular sound or musical note.
Each midi command has a particular sequence of bytes. The first byte is the status byte which tells the device which function to perform and the midi channel which is a number between 0 and 15.
Examples of commands include note on or off or key pressure.
Two additional bytes are required – the pitch byte and velocity byte (tells device how loud to play not how fast).
When the midi file is played back through a device it is played in an identical way to the original.
To play it though an instrument you need a sequencer software as the guitar won’t understand the instructions.
Why use a midi file?
Smaller size than mp3
Plays music back the same way as the original.
How does an mp3 file work?
Uses lossy compression algorithms with perceptual music shaping which remove sounds the human ear cannot hear properly to reduce file size.
What is the difference between mp3 and mp4?
mp4 allows storage of multimedia files such as music, videos and photos whereas mp3 only stores sound.
How can text documents be compressed?
Common repeated words and word sections can be put in a data dictionary and replaced by numbers.
What is the difference between lossy and lossless compression?
In lossless sections of data are reconstructed when the file is uncompressed whereas in lossy compression sections of data are deleted.
What are the features of RAM?
Volatile
Stores parts of the os currently in use
Contents can be changed
What type of storage do buffers commonly use?
RAM
What are the advantages of DRAM?
Cheaper
Consume less power
Higher storage capacity
What are the advantages of SRAM?
Doesn’t need to be constantly refreshed.
Faster
How does DRAM work?
Contains capacitors (store data) and transistors (allows computer to change value in capacitor)
Why does DRAM have to be refreshed?
The charge leaks away from the capacitors so all would be left with the value 0.
How does SRAM work?
Uses ‘flip-flops’ which hold each bit of memory.
What are the features of ROM?
Non volatile
Stores the boot code
Contents cannot be changed
How does a hard disk drive work?
Data is stored on the magnetic surfaces (usually two surfaces) of a number of disks in tracks (areas going round the disk) and sectors. The disks spin and read-write heads can access all of the surfaces on the disk.
What is the main disadvantage of HDDs?
Can be slow as many applications require the read-write heads to constantly look for the right data. This leads to problems with latency (the time taken for a block of data to rotate to the read-write head).
What are the advantages of SSDs over HDDs?
SSDs have no moving parts - more reliable Lighter Don't have to 'get up to speed' Use less power Run cooler Very thin Faster
What is the main disadvantage of SSDs?
Questionable longevity
What is the difference between flash and EEPROM?
Flash uses NAND chip, EEPROM uses NOR chips.
EEPROM is more expensive.
EEPROM allows data to be read or erased one byte at a time whilst flash only allows data to be manipulated in blocks.
How do CDs and DVDs work?
Use a thin layer of metal alloy or light sensitive dye to store the data in a spiral. A red laser is used to read and write the data is ‘pits’ and ‘bumps’ in the track.
What is the difference between CDs and DVDs?
DVDs have a higher storage as they use dual layering. This means there are two recording layers, one above the other with a transparent spacer and thin reflector in between. A second red laser is used to read and write the second layer.
DVDs also use a smaller wavelength of light which means the ‘pits’ and ‘bumps’ are smaller so more data can be stored.
How does a DVD-RAM disc work?
Uses concentric tracks
Allows read and write operations to happen simultaneously
Allow more read and write operations
Have great longevity
What is the difference between DVD and Blu-ray?
Blu-ray uses a blue laser so has a greater capacity.
Uses a single layer so stops birefringence (where light is refracted into two beams causing errors)
Automatically comes with secure encryption system which helps to prevent piracy.
Advantages of using USB flash memory
Small and lighweight
Can be used as a dongle (contains extra applications that must be used for software to work)
No moving parts
What is the main disadvantage of using flash memory?
Have to wait for message before removing as otherwise data may become corrupted.
How much storage does one ASCII character take up?
One byte
How much storage does one pixel take up?
Three bytes