Trigonometric functions and sound

Similar documents
Computer Networks and Internets, 5e Chapter 6 Information Sources and Signals. Introduction

Yerkes Summer Institute 2002

Sound and stringed instruments

ARTICLE. Sound in surveillance Adding audio to your IP video solution

Copyright 2008 Pearson Education, Inc., publishing as Pearson Addison-Wesley.

Digitizing Sound Files

Using an Oscilloscope

Analog and Digital Signals, Time and Frequency Representation of Signals

AN-007 APPLICATION NOTE MEASURING MAXIMUM SUBWOOFER OUTPUT ACCORDING ANSI/CEA-2010 STANDARD INTRODUCTION CEA-2010 (ANSI) TEST PROCEDURE

7. Beats. sin( + λ) + sin( λ) = 2 cos(λ) sin( )

Basics of Digital Recording

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

Germanium Diode AM Radio

DIGITAL MUSIC DAY 1 WHAT IS SOUND? ANALOG AND DIGITAL EARLY RECORDING WAX FOR YOUR EARS ROUND BUT FLAT WIRE AND TAPE PURE SOUND

A Tutorial on the Decibel

Convention Paper Presented at the 112th Convention 2002 May Munich, Germany

Direct and Reflected: Understanding the Truth with Y-S 3

Experiment 1: SOUND. The equation used to describe a simple sinusoidal function that propagates in space is given by Y = A o sin(k(x v t))

EECC694 - Shaaban. Transmission Channel

Electrical Resonance

Ch 25 Chapter Review Q & A s

FOURIER TRANSFORM BASED SIMPLE CHORD ANALYSIS. UIUC Physics 193 POM

Waves: Recording Sound Waves and Sound Wave Interference (Teacher s Guide)

EDEXCEL NATIONAL CERTIFICATE/DIPLOMA UNIT 5 - ELECTRICAL AND ELECTRONIC PRINCIPLES NQF LEVEL 3 OUTCOME 4 - ALTERNATING CURRENT

Renaissance Bass. software audio processor. User s Guide

Audio Editing. Using Audacity Matthew P. Fritz, DMA Associate Professor of Music Elizabethtown College

Lesson 3 DIRECT AND ALTERNATING CURRENTS. Task. The skills and knowledge taught in this lesson are common to all missile repairer tasks.

CBS RECORDS PROFESSIONAL SERIES CBS RECORDS CD-1 STANDARD TEST DISC

Mathematical Harmonies Mark Petersen

Estimation of Loudness by Zwicker's Method

The Phase Modulator In NBFM Voice Communication Systems

The Calculation of G rms

Objectives. Lecture 4. How do computers communicate? How do computers communicate? Local asynchronous communication. How do computers communicate?

APPLICATION NOTE ULTRASONIC CERAMIC TRANSDUCERS

Voice---is analog in character and moves in the form of waves. 3-important wave-characteristics:

Analog Representations of Sound

Tuning Subwoofers - Calibrating Subwoofers

AM TRANSMITTERS & RECEIVERS

Welcome to the United States Patent and TradeMark Office

AP1 Waves. (A) frequency (B) wavelength (C) speed (D) intensity. Answer: (A) and (D) frequency and intensity.

The Tuning CD Using Drones to Improve Intonation By Tom Ball

Measuring Impedance and Frequency Response of Guitar Pickups

Auto-Tuning Using Fourier Coefficients

The Secret to Playing Your Favourite Music By Ear

AUDACITY SOUND EDITOR SOFTWARE A USER GUIDE FOR AUDIO-VISUAL WORKERS

Musical Analysis and Synthesis in Matlab

Your Hearing ILLUMINATED

Introduction to Digital Audio

Hear Better With FM. Get more from everyday situations. Life is on.

SIGNAL PROCESSING & SIMULATION NEWSLETTER

Solution Derivations for Capa #13

Analog vs. Digital Transmission

I + Understanding Impedances. Why do we need to know this?

Timing Errors and Jitter

APPLICATION NOTE AP050830

L and C connected together. To be able: To analyse some basic circuits.

physics 1/12/2016 Chapter 20 Lecture Chapter 20 Traveling Waves

What is Sound? Simple Harmonic Motion -- a Pendulum. The Unit Circle. Sine Waves. Frequency

B3. Short Time Fourier Transform (STFT)

TECHNICAL LISTENING TRAINING: IMPROVEMENT OF SOUND SENSITIVITY FOR ACOUSTIC ENGINEERS AND SOUND DESIGNERS

What Is Sound? 20 minutes. Materials For the teacher. 1 pr. *cymbals, large 1 pr. cymbals, small 1 xylophone *Not provided in kit

Resonance in a Closed End Pipe

Preservation Handbook

Lock - in Amplifier and Applications

E. K. A. ADVANCED PHYSICS LABORATORY PHYSICS 3081, 4051 NUCLEAR MAGNETIC RESONANCE

Video Conferencing Glossary of Terms

PRIMER ON PC AUDIO. Introduction to PC-Based Audio

Dr. Abdel Aziz Hussein Lecturer of Physiology Mansoura Faculty of Medicine

y cos 3 x dx y cos 2 x cos x dx y 1 sin 2 x cos x dx

CHAPTER 6 Frequency Response, Bode Plots, and Resonance

Little LFO. Little LFO. User Manual. by Little IO Co.

Speakers. Home Theater Speaker Guide

Imaging Systems Laboratory II. Laboratory 4: Basic Lens Design in OSLO April 2 & 4, 2002

Acoustics for Musicians

Physical Science Study Guide Unit 7 Wave properties and behaviors, electromagnetic spectrum, Doppler Effect

Aircraft cabin noise synthesis for noise subjective analysis

bel canto The Computer as High Quality Audio Source A Primer

Reading assignment: All students should read the Appendix about using oscilloscopes.

INTERFERENCE OF SOUND WAVES

University of Pennsylvania. Electrical & Systems Engineering Undergraduate Laboratories. ESE 112: Introduction to Electrical & Systems Engineering

INTERFERENCE OF SOUND WAVES

Acoustics: the study of sound waves

Modulation and Demodulation

Tutorial about the VQR (Voice Quality Restoration) technology

LeadingEdge Systematic Approach. Room Acoustic Principles - Paper One. The Standing Wave Problem

Data Transmission. Data Communications Model. CSE 3461 / 5461: Computer Networking & Internet Technologies. Presentation B

10EaZy SW White Paper Choosing the right hardware

The Effective Number of Bits (ENOB) of my R&S Digital Oscilloscope Technical Paper

Electromagnetic (EM) waves. Electric and Magnetic Fields. L 30 Electricity and Magnetism [7] James Clerk Maxwell ( )

Doppler. Doppler. Doppler shift. Doppler Frequency. Doppler shift. Doppler shift. Chapter 19

1 One Dimensional Horizontal Motion Position vs. time Velocity vs. time

AUDIO. 1. An audio signal is an representation of a sound. a. Acoustical b. Environmental c. Aesthetic d. Electrical

ARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME

Sound Pressure Measurement

DOLBY SR-D DIGITAL. by JOHN F ALLEN

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

Base Conversion written by Cathy Saxton

1. (Ungraded) A noiseless 2-kHz channel is sampled every 5 ms. What is the maximum data rate?

Step by step guide to using Audacity

Transcription:

Trigonometric functions and sound The sounds we hear are caused by vibrations that send pressure waves through the air. Our ears respond to these pressure waves and signal the brain about their amplitude and frequency, and the brain interprets those signals as sound. In this paper, we focus on how sound is generated and imagine generating sounds using a computer with a speaker. of oscillation We need to describe oscillations that occur many times per second. The graph of a sine function that oscillates through one cycle in a second looks like: sin( π t).5 Once cycle of sin(π t) A function that oscillates times per second will look more like this. Note that the time axis only runs to / of a second. We say that the oscillation is Hertz, or cycles per second..5...6.8 Time t in seconds Once cycle of sin(π t).5 Generating sound with a computer speaker A speaker usually consists of a paper cone attached to an electromagnet. By sending an oscillating electric current through the electromagnet, the paper cone can be made to oscillate back and forth. If you make a speaker cone oscillate times per second, it will...3..5 Time t in seconds sound like a pure A note. Click here to listen. If you make a speaker cone oscillate 88 times per second, it will sound like an A, but one octave higher. Click here to listen. We ll call this A. On a later page, there are graphs of the location of the speaker cone as a function of time, each for one twentieth of a second. Raising the frequency to 76 Hertz raises the pitch another octave to A3. Changing the amplitude of oscillation, that is, how high and how low the graph goes, or how far forward and backward the speaker cone goes, changes the volume of the sound. The middle graph on the next page shows the amplitude of an oscillation of 76 Hertz rising from to. Click here to listen to this increasing volume A3 four times. Chromatic and major scales The chromatic scale increases the frequency of oscillation by steps from one octave to another. Starting at A, the frequencies of the chromatic scale would be,,, K = 88 Each of the notes in between has a name of its own; they are: A, A#, B, C, C#, D, D#, E, F, F#, G, G#, A. The A major scale starts at Hertz, then increases over 8 steps to A, along the notes A (/), B (/), C# (/), D (5/), E (7/), F# (9/), G# (/) and A (/). A graph of how the speaker cone moves in an A-major scale can be found on a later page. Click here to listen to the A- major scale. sin( π t).5

Speaker location A ( Hz).5..5..5.3.35..5.5 Time (seconds) A (88 Hz).5..5..5.3.35..5.5. A (76 Hz) getting louder..5..5..5.3.35..5.5 A C# E chord (, 55, 659 Hz).5..5..5.3.35..5.5 5 A C# E A chord (, 55, 659, 88 Hz) 5.5..5..5.3.35..5.5

A major scale A Hz B 93.88 Hz.5.5...6.8....6.8. Time C# 55.37 Hz D 587.33 Hz.5.5....6.8.3.3.3.36.38. E 659.6 Hz F# 739.99 Hz.5.5....6.8.5.5.5.56.58.6 G# 83.6 Hz A 88 Hz.5.5.6.6.66.68.7.7.7.76.78.8 Speaker position

Chords and superposition of sounds A chord is formed by playing multiple notes at once. You could play a chord with three notes by putting three speakers side by side and making each oscillate at the right frequency for a different note. Or, you can add together the functions for each frequency to make a more complicated oscillatory function and make your speaker cone oscillate according to that function. For example, if you want to play an A C# - E chord, you can separately make three speakers oscillate according to the functions: sin( πt ), sin( πt ), sin( πt ) If you want one note louder or softer than the others, you can multiply the whole function by a constant to increase or decrease the volume of that note. Each speaker will make pressure waves in the air, and these pressure waves from different speakers will overlap as they move toward your ear. By the time they are at your ear, you will be unable to tell which speaker they came from; the pressure waves will have been superimposed on one another, or added to one another. Your ear is amazing at being able to respond to the different frequencies separately to perceive the three notes being played at once. This explains why you can simply add the three functions above and make the speaker cone of a single speaker oscillate following the sum: sin( πt ) + sin( πt) + sin( πt) Here again, if you want the different notes to have different volumes, you can multiply each sine wave by a constant. Click here to hear an A C# - E chord. Click here to hear an A C# - E A chord. The graphs on the preceding page show what happens when you add the three functions to make the A C# - E chord and the A C# - E A chord. spectrum The sounds we have generated so far are very simple, being sine functions or sums of a few sine functions, and they sound very much computer-generated. Real sounds are more complex, and it isn t entirely clear that sine functions have anything to do with them. However, it can be shown that any continuous sound (that is, a sound that is constant, or unchanging over time) can be reproduced as a sum of sine functions of different frequencies and amplitudes. That is, if a speaker is playing a continuous sound by making the speaker cone follow some function L(t) over the time interval from to second, then we can write L(t) as a sum of sine functions this way:, L( t) = a sin( k π t) k = The number k is the frequency, and for sounds that humans can hear, we should use frequencies from Hertz to about, Hertz. As we age, we can t hear sounds at, Hertz very well anymore. Click here for: Hz, 6 Hz, (the sound of mechanical devices that hum because of alternating current being 6 Hz) Hz, Hz, 6 Hz, Hz. Be aware that some of these may be outside the range of your speakers or your ears! The numbers easy to find the values of using integrals: a k k a k a k = sin( k π t) L( t) dt. 7 7 are called the amplitudes for frequency k. It is (Actually, this isn t the whole story for this to be exactly correct, you either need to use cosine functions or you need to be able to shift each sine function horizontally on the t axis, but this is close

enough to the truth that you can learn from it!) The point is that you can take a sound and think of it in terms of the different frequencies and amplitudes that it is made up of. The graph of ak versus k is called the frequency spectrum of the sound. It shows graphically which frequencies are present in the sound. On the next page, there are graphs of the frequency spectrum for a variety of sounds that we have seen so far, and some new ones. First, below the graph of the pure Hz A is the graph of the frequency spectrum. The amplitudes a k are zero except when k is, the frequency of the oscillation. Next, below the graph of the A C# - E chord is its frequency spectrum, concentrated at the three frequencies present in that chord. Some frequencies near the C# and E frequency are also present due to the numerical technique that finds the frequency spectrum. The next four graphs are the frequency spectra of Dr. Craig Zirbel saying the continuous sounds long A, long E, long O, and OO. These were all spoken at the same pitch, so they all have frequency spikes at similar frequencies. The difference between these sounds is in the relative heights of the peaks. If you wanted to make a computer recognize and differentiate between these sounds, you could train it to pay attention to the relative heights of the different peaks. Click here to listen to the long A, long E, long O, and OO.

Speaker cone location.5.5 Pure A ( Hz)...3..5 Time 5 3 Pure A 6 8.8.6.. spectrum for pure A 6 8.5..3.. spectrum for spoken long A spectrum for spoken long O 6 8 Speaker cone location.5.5.5.5 A C# E chord (, 55, 659 Hz)...3..5 Time spectrum for A C# E chord A C# E chord 6 8.8.6.. spectrum for spoken long E 6 8.8.6.. spectrum for spoken OO 6 8

Telephones In the past, telephone companies would lay down copper wire or fiber optic cables, or use radio, to carry telephone conversations. By varying the voltage in a copper wire, the telephone company could send audio signals over long distances. Varying the voltage corresponds directly to varying the speaker location (and thus the air pressure). However, electronic devices are capable of making much finer voltage variations, and of measuring much finer variations, than the human ear can. As a consequence, telephone companies can send multiple conversations over the same channel, essentially by converting your conversation into a frequency representation, and then shifting the frequencies, say, all by Hz, and sending other phone calls through with a shift of Hz, 3 Hz, etc. At the other end, these are shifted back into the normal range and sent to the receiving telephone. This is called multiplexing. In order to do this, however, the frequency range available for YOUR telephone conversation has to be limited. Telephone companies would do this by chopping off (setting to zero) the frequency components at the low and high ends of the frequency spectrum. This is why your voice sounds strange over a telephone. The limited bandwidth is also what prevents computer modems from transferring information more quickly over copper wires. There is no inherent limitation in the wires; copper wires also supply broadband internet. The difference is that the telephone company limits the range of frequencies that can be used, which has the effect of limiting the rate at which information can be pumped through the circuit. Digital audio Actual audio occurs in continuous time, from instruments, voices, etc. See the next page. Listen to the snippet shown. Listen to it several times. CD audio. To make a compact disc, a digital device measures and records the microphone location times per second and stores the number using 6 bits (^6 = 65536 possible values). This number is stored directly on an audio CD. A 7 minute CD would require: 7 minutes * 6 seconds per minute * data values per second * bytes per value * audio channels = 788 bytes = 77 megabytes, which is about what a CD can hold. Sampling at, times per second means the upper limit on the frequency that can be accurately reproduced is,5, which is beyond the range of the human ear. MP3 audio. Since the late 97 s, the game has been to try to use fewer megabytes to store music. There are a variety of approaches one could try. The most successful ones so far take into account the fact that music can be decomposed into various frequencies, as we have discussed above. The frequencies that are outside the range of human hearing can be discarded, and so one can store the sound using fewer bytes of data. Several other observations from the field of psychoacoustics allow one to throw away even more data without (significantly) compromising sound quality. For example, in a certain snippet of music, a certain frequency may play very softly. If this is below the audible threshold for that frequency, that part of the music need not be stored. If other frequencies are being played very loud at that moment, again the ear cannot hear the quiet frequency, and there is no need to store the data that that frequency is being played. The quiet frequency is masked by the louder frequencies. In addition, the human ear cannot distinguish sounds with very similar frequencies, so this limits how many different frequencies need to be stored.

. Snippet of a piece of music Speaker position.5.5..5..5..5.3.35..5.5 Time in seconds. Digital samples are taken times per second Speaker position.5.5..5..5..5.3.35..5.5 Time in seconds This handout is available at http://www-math.bgsu.edu/z/sound