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.