190 likes | 289 Views
Recording and encoding analog data. S kills : Set sample size and rate in Audacity C oncepts : analog versus digital data, analog to digital conversion, digital to analog conversion, sample rate, sample size, quality-file size trade off.
E N D
Recording and encoding analog data Skills: Set sample size and rate in Audacity Concepts: analog versus digital data, analog to digital conversion, digital to analog conversion, sample rate, sample size, quality-file size trade off This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
Where does this topic fit? • Internet concepts • Applications • Technology • Implications • Internet skills • Application development • Content creation • User skills
Analog data But, computers require digital data …
Which clock is digital? Analog? http://som.csudh.edu/fac/lpress/presentations/clocks/clocks.html
A digital clock … 03 02 01 00 04 01.49
Recording and playing sound Computer 10010110 (150) 11001001 (201) 11000111 (199) … Analog to digital converter Computer 10010110 (150) 11001001 (201) 11000111 (199) … Digital to analog converter
Reading and adjusting temperature Computer 10010110 (150) 11001001 (201) 11000111 (199) … Analog to digital converter Computer 10010110 (150) 11001001 (201) 11000111 (199) … Digital to analog converter
Sensors for all sorts of things • Speed • Rate of flow • Pressure • Altitude • Acceleration • Motion • Rotation • Temperature • Light level • Sound • Compass direction • Blood pressure • Heart rate • And more … • The Internet of things
Sampling an analog signal How can we improve the fit of the digital curve? (Hint: 2 ways)
1. Increase the sampling rate What is the second thing we can increase? Hint: how did we increase the variety of colors in images or symbols in text?
Recording tradeoffs Increase sample rate → quality ↑ file size ↑ Increase sample size → quality ↑ file size ↑
Increase code bits → quality ↑ file size ↑ Text 2-bits/character Image 1-bit/pixel Sound 2-bits/sample
Set default sample rate and size Edit > Preferences > Quality
Analog Digital What other real world phenomena can we sample and input to a computer?
Self-study questions At a sampling rate of 8,000 16-bit mono samples per second, what would be the file size for a one minute recording? How much larger would a stereo recording be? How much larger would the file size be if we were to sample at 48,000 samples per second? How much larger would the file size be if the samples were 32 bits each?
Resources Wikipedia analog: http://en.wikipedia.org/wiki/Analog_signal Wikipedia digital: http://en.wikipedia.org/wiki/Digital A more detailed tutorial: http://www.planetoftunes.com/digiaudio/how_a_to_d.html