4.5 Fundamentals of data representation Flashcards
Why might you prefer to use sound synthesis over recording an orchestra?
- Sound synthesis produces smaller file sizes without loss of quality
- Sound synthesis allows for easy editing of files after they have been recorded
- Sound synthesis allows for sounds that would be unachievable using traditional instuments
Why might you not want to use sound synthesis?
- Sound synthesis struggles to recreate the sounds made by traditional instruments
- Sound synthesis struggles to recreate the human voice
What does MIDI stand for?
Musical Instrument Digital Interface
What does a MIDI File Consist of?
List of Event Messages that explain what notes must be played, when they must played, and how long or loud each note should be.
What are some examples of event messages?
- Digital signals that specify notation, pitch, and intensity
- Control signals for parameters such as volume and vibrato
- Clock signals to set the tempo
What number base is Denary/Decimal?
Base 10
What is Hexidecimal useful for?
Representing large numbers since you need fewer digits. 2 hex digits = 1 byte
i.e. Representing colours
What is Floating point binary?
When you have binary with a decimal point that can “float” meaning that it can be placed anywhere in the number.
What is fixed point binary
Binary where you have a decimal point in a fixed place, and fractional parts to the right of the point
What is binary?
Base 2, meaning it only uses 2 characters, 0 and 1, known as bits
What is 4 bits/half a byte called?
A nibble
What errors can you encounter when doing binary arithmetic?
Cancellation : Adding a very small number to a very large number will not change the result
Underflow : The result of a calculation is too small to fit into the available number of bits
Overflow : The result of a calculation is too big to fit into the available number of bits.
Rounding : Some number just can’t be represented using binary. Rounding errors can be represented in absolute, relative and percentage forms
What does it mean when deciding between range vs accuracy
Since we can never accurately represent some fractional numbers in binary (for instance 1/3), we often must accept a certain amount of inaccuracy. However, it is possible to change the position of the binary point to alter the balance between range and accuracy
How many permutations can you have in a byte?
256
How do you subtract binary?
Convert the number you’re subtracting into two’s compliment and then add the two numbers
How do you find the maximum values represented by a number base with a specific number of digits?
B^n
Where B is the number base and
n is the number of digits
How do you convert hexidecimal to denary
16^2 16^1 16^0
Use those headings, convert each hex digit to denary and then multiply by its heading.
Total each of the values you get at the end.