Sega 500 Audio in UT2003 Jeff “Ezeikeil” Giles

Slides:



Advertisements
Similar presentations
Introduction to Digital Audio
Advertisements

Digital Signal Processing
Sound in multimedia How many of you like the use of audio in The Universal Machine? What about The Universal Computer? Why or why not? Does your preference.
Sound can make multimedia presentations dynamic and interesting.
Basic Computer 101 and Basic Digital Audio basic is a relative term.
Speech Compression. Introduction Use of multimedia in personal computers Requirement of more disk space Also telephone system requires compression Topics.
Analog to Digital Conversion. 12 bit vs 16 bit A/D Card Input Volts = A/D 12 bit 2 12 = Volts = Volts = 2048 −10 Volts = 0 Input Volts.
Comp 1001: IT & Architecture - Joe Carthy 1 Review Floating point numbers are represented in scientific notation In binary: ± m x 2 exp There are different.
Digital Audio.
Image and Sound Editing Raed S. Rasheed Sound What is sound? How is sound recorded? How is sound recorded digitally ? How does audio get digitized.
Fundamentals of Digital Audio. The Central Problem n Waves in nature, including sound waves, are continuous: Between any two points on the curve, no matter.
SIMS-201 Audio Digitization. 2  Overview Chapter 12 Digital Audio Digitization of Audio Samples Quantization Reconstruction Quantization error.
Representing Sound in a computer Analogue  Analogue sound is produced by being picked up by a transducer (microphone) and converted in an electrical current.
 Principles of Digital Audio. Analog Audio  3 Characteristics of analog audio signals: 1. Continuous signal – single repetitive waveform 2. Infinite.
Analogue and Digital Signals SL – Option C.1. Signals When talking about electronics we will talk about ‘signals’ –This is simply the transfer of information.
Introduction to Sound Sounds are vibrations that travel though the air or some other medium A sound wave is an audible vibration that travels through.
Digital audio. In digital audio, the purpose of binary numbers is to express the values of samples that represent analog sound. (contrasted to MIDI binary.
Fall 2004EE 3563 Digital Systems Design Audio Basics  Analog to Digital Conversion  Sampling Rate  Quantization  Aliasing  Digital to Analog Conversion.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
Radio production worktext.  Analog to Digital  Analog signal – continuously variable electrical signal whose shape is determined by the shape of the.
(2.1) Fundamentals  Terms for magnitudes – logarithms and logarithmic graphs  Digital representations – Binary numbers – Text – Analog information 
Lecture # 22 Audition, Audacity & Sound Editing Sound Representation.
DTC 354 Digital Storytelling Rebecca Goodrich. Wave made up of changes in air pressure by an object vibrating in a medium—water or air.
COMP Representing Sound in a ComputerSound Course book - pages
Art 321 Sound, Audio, Acoustics Dr. J. Parker. Sound What we hear as sound is caused by rapid changes in air pressure! It is thought of as a wave, but.
Computer Some basic concepts. Binary number Why binary? Look at a decimal number: 3511 Look at a binary number: 1011 counting decimal binary
Announcements Chapter 11 for today No quiz this week Instructor got behind…. We'll be back in MGH389 on Friday.
Russell Taylor. How Sound Works Sound “source” creates variations in air pressure Main source output is Speakers Use vibrating cones which mimic the signal.
Digital Recording Theory Using Peak. Listening James Tenney, Collage #1 (“Blue Suede”),  Available in Bracken Library, on James Tenney Selected.
Sound and audio. Table of Content 1.Introduction 2.Properties of sound 3.Characteristics of digital sound 4.Calculate audio data size 5.Benefits of using.
COSC 1P02 Introduction to Computer Science 4.1 Cosc 1P02 Week 4 Lecture slides “Programs are meant to be read by humans and only incidentally for computers.
Introduction to SOUND.
Digital Sound Actual representation of sound Stored in form of thousands of individual numbers (called samples) Not device dependent Stored in bits.
Sound Vibration and Motion.
Audio / Sound INTRODUCTION TO MULTIMEDIA SYSTEMS Lect. No 3: AUDIO TECHNOLOGY.
Georgia Institute of Technology Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Sept 2005.
1 Introduction to Information Technology LECTURE 6 AUDIO AS INFORMATION IT 101 – Section 3 Spring, 2005.
Digital Recording. Digital recording is different from analog in that it doesn’t operate in a continuous way; it breaks a continuously varying waveform.
Analogue & Digital. Analogue Sound Storage Devices.
Day 4 Encoding Data. So… We have analog and digital data, and analog and digital signals. –We can use any combination of the above –Why? Shouldn’t we.
1 Rev 07/28/2015.  Describe: examples, definition,? 2.
Sound and Digital Sound v © Allan C. Milne Abertay University.
Chapter 21 Musical Sounds.
Chapter 2 Basic Science: Analog and Digital Audio.
Digital Audio. Acknowledgement Some part of this lecture note has been taken from multimedia course made by Asst.Prof.Dr. William Bares and from Paul.
Intro-Sound-part1 Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Oct 2009.
Binary! Objectives How sound is stored in digital format What is meant by “sample interval” and how it affects quality The trade off between file size.
1 Sound waves travel through a medium and can be visualized by Longitudinal or Compressional waves. As the sound moves through the medium, the particles.
Recording Arts…Audio Sound Waves Fall What does this all mean to you in this class? You are always working with sound waves – it is important to.
Multimedia Sound. What is Sound? Sound, sound wave, acoustics Sound is a continuous wave that travels through a medium Sound wave: energy causes disturbance.
Session 18 The physics of sound and the manipulation of digital sounds.
Digital Audio I. Acknowledgement Some part of this lecture note has been taken from multimedia course made by Asst.Prof.Dr. William Bares and from Paul.
Audio Revamped Version. Introduction All sound waves are analog in nature, made of an unbroken line without individually distinguishable pieces or components.
The physics of hearing and other odds and ends. The range of human hearing The range of average human hearing is from about 15Hz to about 15,000Hz. Though.
Introduction to Digital Audio
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Data Representation.
Multimedia: making it Work
Lesson Objectives Explain how sound can be sampled and stored in digital form Explain how sampling intervals and other considerations affect the size of.
Multimedia Systems and Applications
Analogue & Digital.
Introduction to Digital Audio
Introduction to Digital Audio
Introduction to Digital Audio
Introduction to Digital Audio
General Knowledge Science Quiz
Representing Sound 2.6 – Data Representation.
COMS 161 Introduction to Computing
Assist. Lecturer Safeen H. Rasool Collage of SCIENCE IT Dept.
Introduction to Digital Audio
Recap In previous lessons we have looked at how numbers can be stored as binary. We have also seen how images are stored as binary. This lesson we are.
Presentation transcript:

Sega 500 Audio in UT2003 Jeff “Ezeikeil” Giles

The plan The goal for today is to cover the basics of what’s required to get sound files into UT2003 and see how they are used.

But first, As always, UT has some specific requirements for how it likes its sound files. Hence, there are a few things that we have to be aware of to make sure that we’re doing them right.

Digital Audio theory A crash course. Starting with:

A Little Sound theory. So what is sound?...Well…if you can hear me you already have *some* idea. But the real question is how does it “work” and what are the terms used to describe it.

Sound theory An object produces sound when it vibrates in matter. This could be a solid, such as earth; a liquid, such as water; or a gas, such as air. In this way, a vibrating object sends a wave of pressure fluctuation through the atmosphere.

Sound theory We hear different sounds from different vibrating objects because of variations in the sound wave frequency. A higher wave frequency simply means that the air pressure fluctuation switches back and forth more quickly.

Sound theory The frequency of a sound is measured in Hertz or Hz. The human ear is able to discern frequencies between 20Hz-20000Hz.

Sound theory A higher wave frequency simply means that the air pressure fluctuation switches back and forth more quickly. We hear this as a higher pitch. When there are fewer fluctuations in a period of time, the pitch is lower.

Sound theory The level of air pressure in each fluctuation, the wave's amplitude, determines how loud the sound is. Measured in decibel’s or db’s.

Sound theory The decibel is the unit used to measure the intensity of a sound. The decibel scale is a little odd because the human ear is incredibly sensitive.

Sound theory The calculation of a decibel is a RELATIONSHIP between two values of POWER. Want to know the math? Link hereLink here

Sound theory On the decibel scale, the smallest audible sound (near total silence) is 0 dB. A sound 10 times more powerful is 10 dB. A sound 100 times more powerful than near total silence is 20 dB. A sound 1,000 times more powerful than near total silence is 30 dB.

Sound theory Climbing logarithmically. This means that as decibel intensity increases by units of 10, each increase is 10 times the lower figure. Thus, 20 decibel is 10 times the intensity of 10 decibels, and 30 decibels is 100 times as intense as 10 decibels.

Sound theory Here are some good examples Near total silence - 0 dB A whisper - 15 dB Normal conversation - 60 dB A lawnmower - 90 dB A car horn dB A rock concert or a jet engine dB A gunshot or firecracker dB

Sound theory Any sound above 85 dB can cause hearing loss, and the loss is related both to the power of the sound as well as the length of exposure. You know that you are listening to an 85- dB sound if you have to raise your voice to be heard by somebody else.

Sound theory any exposure to 140-dB sound causes immediate damage (and causes actual pain).

Digital Sound theory So how does this relate to the computer? Well, it makes sound…

Digital Sound theory True, it does. But there are some key distinctions to make between Analogue and Digital sound. This difference is incurred due to how the computer stores it’s data.

Digital Sound theory Analogue sound is best described as continuous sound.

Digital Sound theory As were digital stores the sound data as a set of binary data…a 1 or 0…on or off.

Digital Sound theory The "sound" one wants to digitize is an analog electrical continuous signal. Digital recording systems are discontinuous, made from a long succession of logical "0" and "1". It is then necessary to "cut" the continuous analog signal into small parts in order to quantify its value at regular times.

Digital Sound theory This conversion is done by a device called an analog-to-digital converter (ADC).

Digital Sound theory Once processed by the ADC, this succession of values will then be recorded on the hard drive. How its recorded is detemined by two factors:

Digital Sound theory The sampling rate Controls how many samples are taken per second. The sampling precision Controls how many different gradations (quantization levels or resolution) are possible when taking the sample.

Digital Sound theory In a graph these are represented as: Precision (bits) Rate (frequency)

Digital Sound theory The sample rate of a piece of digital audio is defined as 'the number of samples recorded per second'. Sample rates are measured in Hz, or kHz (kiloHertz, a thousand samples per second). The most common sample rates used in multimedia applications are:

Digital Sound theory 8000hz Really low 11025hz Not much better 22050hz It will do 32000hz Good, but not common 44100hz CD quality 48000hz some audio cards, DAT recorders

Digital Sound theory To put this another way…

Digital Sound theory

Right, so we’ve talked about sampling rates and bits have been mentioned… what does this mean to us?

Digital Sound theory Going back to this graph, the red line is the analogue signal an the green bars are a digital approximation. Let's assume for this graph that the sampling rate is 1,000 per second and the precision is 10:

Digital Sound theory When the digital-to-analog converter (DAC) recreates the wave from these numbers during play back, you get the blue line shown in the following figure.

Digital Sound theory You can see that the blue line lost quite a bit of the detail originally found in the red line, and that means the fidelity of the reproduced wave is not very good. This is the sampling error.

Digital Sound theory You reduce sampling error by increasing both the sampling rate and the precision to better approximate the analogue signal.

Digital Sound theory Here, both the rate and the precision have been improved by a factor of 2 (20 gradations at a rate of 2,000 samples per second)

Digital Sound theory Right, I get how the frequency works into this, but what’s this about bits? The number of bits provide how much resolution we have in our samples.

Digital Sound theory What is the practical significance of the resolution? The higher the resolution with which you record a sound, the greater your ability to record the finest details.

Digital Sound theory The max precision corresponds to the smallest sample. This gives the dynamic one the ability to reproduce the difference between the smallest sample and the max digital value.

Digital Sound theory So think about it this way. The resolution (in bits) is how many steps there are between full on and off. Also known as our dynamic range.

Digital Sound theory So for an 8bit resolution, ( 2 to the power of 8 ) we have 256 levels of sound levels for 16 bits. And so on….

Digital Sound theory So how does this translate into our usage?

Digital Sound theory The first thing we must note is the size of our sound file. Take CD’s for example (also using digital format).

Digital Sound theory In the case of CD sound, fidelity is an important goal, so the sampling rate is 44,100 samples per second and the number of gradations is 65,536. (16 bits) At this level, the output of the DAC so closely matches the original waveform that the sound is deemed essentially "perfect“.

Digital Sound theory There are two sound streams being recorded (one for each of the speakers on a stereo system). A CD can store up to 74 minutes of music, so the total amount of digital data that must be stored on a CD is: 44,100 samples/channel/second * 2 bytes/sample * 2 channels * 74 minutes * 60 seconds/minute = 783,216,000 bytes

Digital Sound theory That’s 780MB!!! That’s huge. The size of the recording depends on its nature (mono or stereo), its sampling frequency and its resolution. The information stream S is: S=(KxFsxR )/8000 ( given in KiloBits per second; K=1 for mono, 2 for stéréo)

Digital Sound theory

A very simple rule to follow is this: the higher the sampling frequency and the greater the resolution, the larger the recording will be. Similarly, a stereo recording is twice the size of a mono one.

Digital Sound theory Whiew! That’s lots of theory in a small space. But how does this relate to UT2003?

Sound in UT2k3 Well, as mentioned, UT rather specific requirements of how it likes it’s sounds to be imported. Note, we’ll be dealing with music separately, for now just sound which will be used for in game effects.

Sound in UT2k3 USound contains a sound sample with the following characteristics:.WAV format. 8-bit or 16-bit format. Monaural. Either one-shot or looped

Sound in UT2k3 And we have 2 method to choose from for importing: Editor into a *.uax Script into a compiled *.u

Sound in UT2k3 I’ve included a number of version of versions of the same sound. The original was 16 bits at 48000hz The other the others have been resampled at various rates and bit depths…

Sound in UT2k3 Now, sound forge does a nice job at resampling, but if you listen carefully, you can hear some white noise (a hiss) that wasn’t present in the original.

Sound in UT2k3 Starting with the editor. Importing from here will provide us with a nice, hand held / step by step import that gets saved out into a *.uax file.

Sound in UT2k3 Select the sound browser from the top menu.

Sound in UT2k3 This should bring up this menu which is a list of all the currently loaded sounds. Under file, select import.

Sound in UT2k3 From here you’ll have an import menu. Navigate to where you sounds are and simply select those you want to import.

Sound in UT2k3 Once you get your import menu, name your sounds and groups.

Sound in UT2k3 And poof! You sounds are in. Notice that the browser provides information on the bit resolution and frequency.

Sound in UT2k3 And don’t forget to save before you close the browser. No, it’s not automatic. If you forget, you’ll have to reimport.

Sound in UT2k3 And now from script. This is actually really easy. We just use the #exec import command

Sound in UT2k3 Just like importing a texture. #exec AUDIO IMPORT FILE=Sounds\accessdenied.wav name=Access22 #exec AUDIO IMPORT FILE=Sounds\accessdenied11.wav name=Access11 #exec AUDIO IMPORT FILE=Sounds\accessdenied44.wav name=Access44

Sound in UT2k3 Note: if we wanted, we could also assign a group definition to the imported sounds by adding group=denied To the end of the line. This is how I left it in code. Both work fine.

That’s a wrap We’ve covered a tone of theory and got the imports down.

Tomorrow We’ll talk a look at the specifics of how the sound system works in UT2003 so that we can take full advantage of it.