Sound/Audio. Slides courtesy of Tay Vaughan Making Multimedia Work

Similar documents
Chapter 12. Preview. Objectives The Production of Sound Waves Frequency of Sound Waves The Doppler Effect. Section 1 Sound Waves

MUS 302 ENGINEERING SECTION

What is Sound? Simple Harmonic Motion -- a Pendulum

Fundamentals of Digital Audio *

Computer Audio. An Overview. (Material freely adapted from sources far too numerous to mention )

What is Sound? Part II

m208w2014 Six Basic Properties of Sound

CS 3570 Chapter 5. Digital Audio Processing

Sound waves. septembre 2014 Audio signals and systems 1

Copyright 2009 Pearson Education, Inc.

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Direct link. Point-to-point.

A mechanical wave is a disturbance which propagates through a medium with little or no net displacement of the particles of the medium.

Section 1 Sound Waves. Chapter 12. Sound Waves. Copyright by Holt, Rinehart and Winston. All rights reserved.

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

Final Exam Study Guide: Introduction to Computer Music Course Staff April 24, 2015

Chapter 4. Digital Audio Representation CS 3570

Chapter 14, Sound. 1. When a sine wave is used to represent a sound wave, the crest corresponds to:

A sound wave is introduced into a medium by the vibration of an object. Sound is a longitudinal, mechanical

Preview. Sound Section 1. Section 1 Sound Waves. Section 2 Sound Intensity and Resonance. Section 3 Harmonics

In this lecture. System Model Power Penalty Analog transmission Digital transmission

CHAPTER ONE SOUND BASICS. Nitec in Digital Audio & Video Production Institute of Technical Education, College West

CONTENTS. Preface...vii. Acknowledgments...ix. Chapter 1: Behavior of Sound...1. Chapter 2: The Ear and Hearing...11

P. Moog Synthesizer I

Media Devices: Audio. CTEC1465/2018S Computer System Support

Physics I Notes: Chapter 13 Sound

Introduction. TUNE Explained:

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Perception of pitch. Importance of pitch: 2. mother hemp horse. scold. Definitions. Why is pitch important? AUDL4007: 11 Feb A. Faulkner.

Chapter 2: Fundamentals of Data and Signals

Perception of pitch. Definitions. Why is pitch important? BSc Audiology/MSc SHS Psychoacoustics wk 5: 12 Feb A. Faulkner.

SOME PHYSICAL LAYER ISSUES. Lecture Notes 2A

Type pwd on Unix did on Windows (followed by Return) at the Octave prompt to see the full path of Octave's working directory.

PRINCIPLES OF COMMUNICATION SYSTEMS. Lecture 1- Introduction Elements, Modulation, Demodulation, Frequency Spectrum

CS101 Lecture 18: Audio Encoding. What You ll Learn Today

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

MUSC 316 Sound & Digital Audio Basics Worksheet

2. By convention, the minimum and maximum values of analog data and signals are presented as voltages.

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

Sound Design and Technology. ROP Stagehand Technician

Physical Layer: Outline

Physics 101. Lecture 21 Doppler Effect Loudness Human Hearing Interference of Sound Waves Reflection & Refraction of Sound

Chapter 4 Digital Transmission 4.1

Sound is the human ear s perceived effect of pressure changes in the ambient air. Sound can be modeled as a function of time.

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Simplex. Direct link.

A-110 VCO. 1. Introduction. doepfer System A VCO A-110. Module A-110 (VCO) is a voltage-controlled oscillator.

Chapter 2. Meeting 2, Measures and Visualizations of Sounds and Signals

MMO-3 User Documentation

RTFM Maker Faire 2014

A102 Signals and Systems for Hearing and Speech: Final exam answers

Data Communication. Chapter 3 Data Transmission

Chapter 3 Data Transmission COSC 3213 Summer 2003

Perception of pitch. Definitions. Why is pitch important? BSc Audiology/MSc SHS Psychoacoustics wk 4: 7 Feb A. Faulkner.

SNAKEBITE SYNTH. User Manual. Rack Extension for Propellerhead Reason. Version 1.2

Semi-modular audio controlled analog synthesizer

Cyber-Physical Systems ADC / DAC

Chapter 3. Data Transmission

PYKC 27 Feb 2017 EA2.3 Electronics 2 Lecture PYKC 27 Feb 2017 EA2.3 Electronics 2 Lecture 11-2

Chapter 2: Digitization of Sound

Properties and Applications

USER MANUAL DISTRIBUTED BY

MULTIMEDIA SYSTEMS

Introduction to Communications Part Two: Physical Layer Ch3: Data & Signals

Fundamentals of Music Technology

Chapter 3 Data and Signals

Math and Music: Understanding Pitch

Data and Computer Communications. Chapter 3 Data Transmission

Sound All sound begins with a vibrating object Ex. Vibrating tuning fork Vibrating prong sets molecules near it in motion

Synthesizer. Team Members- Abhinav Prakash Avinash Prem Kumar Koyya Neeraj Kulkarni

Engineering Discovery

AUDITORY ILLUSIONS & LAB REPORT FORM

Communications Theory and Engineering

CSE481i: Digital Sound Capstone

Contents. Telecom Service Chae Y. Lee. Data Signal Transmission Transmission Impairments Channel Capacity

GEN/MDM INTERFACE USER GUIDE 1.00

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

Chapter 3 Data Transmission

MMO-4 User Documentation

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

Technical Recording Data

Musical Acoustics, C. Bertulani. Musical Acoustics. Lecture 14 Timbre / Tone quality II

Table of Contents: Limited Warranty:

Music 171: Sinusoids. Tamara Smyth, Department of Music, University of California, San Diego (UCSD) January 10, 2019

Pulse Code Modulation

Data Communications & Computer Networks

Waves Homework. Assignment #1. Assignment #2

Sound PSY 310 Greg Francis. Lecture 28. Other senses

Chapter 8. Representing Multimedia Digitally

SGN Audio and Speech Processing

Sound Waves Speed Intensity Loudness Frequency Pitch Resonance Sound Waves

Complex Sounds. Reading: Yost Ch. 4

Mel Spectrum Analysis of Speech Recognition using Single Microphone

Chapter 2. Physical Layer

Sound. Production of Sound

Digitizing Color. Place Value in a Decimal Number. Place Value in a Binary Number. Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally

Final Project Specification MIDI Sound Synthesizer Version 0.5

RS380 MODULATION CONTROLLER

amplification: The process of increasing the strength of a radio signal.

6. has units of bits/second. a. Throughput b. Propagation speed c. Propagation time d. (b)or(c)

Dilpreet Singh 1, Parminder Singh 2 1 M.Tech. Student, 2 Associate Professor

Transcription:

Sound/Audio Slides courtesy of Tay Vaughan Making Multimedia Work

How computers process sound How computers synthesize sound The differences between the two major kinds of audio, namely digitised sound and MIDI music 2

The Nature of Sound Sound is a physical phenomenon produced by the vibration of matter and transmitted as waves. However, the perception of sound by human beings is a very complex process. It involves three systems: the source which emits sound; the medium through which the sound propagates; the detector which receives and interprets the sound. 3

Sounds we heard everyday are very complex. Every sound is comprised of waves of many different frequencies and shapes. But the simplest sound we can hear is a sine wave. Sound waves can be characterised by the following attributes: Period, Frequency, Amplitude, Bandwidth, Pitch, Loudness, Dynamic. 4

Pitch and Frequency Period is the interval at which a periodic signal repeats regularly. Pitch is a perception of sound by human beings. It measures how high is the sound as it is perceived by a listener. Frequency measures a physical property of a wave. It is the reciprocal value of period f = 1/P. The unit is Herts (Hz) or kilohertz (khz). Infra sound 0 20 Hz Human hearing range 20 20 khz Ultrasound 20 khz 1 GHz Hypersound 1 GHz 10 THz Musical instruments are tuned to produce a set of fixed pitches. 5

Loudness and Amplitude The other important perceptual quality is loudness or volume. Amplitude is the measure of sound levels. For a digital sound, amplitude is the sample value. The reason that sounds have different loudness is that they carry different amount of power. The unit of power is watt. The intensity of sound is the amount of power transmitted through an area of 1m 2 oriented perpendicular to the propagation direction of the sound. If the intensity of a sound is 1watt/m 2, we may start feel the sound. The ear may be damaged. 6

This is known as the threshold of feeling. If the intensity is 10 12 watt/m 2, we may just be able to hear it. This is know as the threshold of hearing. The relative intensity of two different sounds is measured using the unit Bel or more commonly decibel (db). It is defined by relative intensity in db = 10 log(i 2 /I 1 ) Very often, we will compare a sound with the threshold of hearing. 7

160 db Jet engine 130 db Large orchestra at fortissimo 100 db Car on highway 70 db Voice conversation 50 db Quiet residential areas 30 db Very soft whisper 20 db Sound studio 8

Dynamic and Bandwidth Dynamic range means the change in sound levels. For example, a large orchestra can reach 130dB at its climax and drop to as low as 30dB at its softest, giving a range of 100dB. Bandwidth is the range of frequencies a device can produce, or a human can hear. e.g. FM radio: Children s ears: Older ears: 50Hz 15kHz 20Hz 20kHz 50Hz 10kHz 9

Computer Representation of Sound Sound waves are continuous while computers are good at handling discrete numbers. In order to store a sound wave in a computer, samples of the wave are taken. Each sample is represented by a number, the code. This process is known as digitisation. This method of digitising sound is know as pulse code modulation (PCM). 10

According to Nyquist sampling theorem, in order to capture all audible frequency components of a sound, i.e., up to 20kHz, we need to set the sampling to at least twice of this. This is why one of the most popular sampling rate for high quality sound is 4410Hz. Another aspect we need to consider is the resolution, i.e., the number of bits used to represent a sample. Often, 16 bits are used for each sample in high quality sound. This gives the SNR of 96dB. 11

Quality versus File Size The size of a digital recording depends on the sampling rate, resolution and number of channels. S = R x (b/8) x C x D Higher sampling rate, higher resolution gives higher quality but bigger file size. S file size bytes R sampling rate samples per second b resolution bits C channels 1 mono, 2 stereo D recording duration seconds 12

For example, if we record 10 seconds of stereo music at 44.1kHz, 16 bits, the size will be: S = 44100 x (16/8) x 2 x 10 = 1,764,000bytes = 1722.7Kbytes = 1.68Mbytes Note: 1Kbytes = 1024bytes 1Mbytes = 1024Kbytes High quality sound files are very big, however, the file size can be reduced by compression. 13

Audio File Formats The most commonly used digital sound format in Windows systems is.wav files. Sound is stored in.wav as digital samples known as Pulse Code Modulation(PCM). Each.wav file has a header containing information of the file. type of format, e.g., PCM or other modulations size of the data number of channels samples per second bytes per sample There is usually no compression in.wav files. Other format may use different compression technique to reduce file size..vox use Adaptive Delta Pulse Code Modulation (ADPCM)..mp3 MPEG 1 layer 3 audio. RealAudio file is a proprietary format. 14

Audio Hardware Recording and Digitising sound: An analogue to digital converter (ADC) converts the analogue sound signal into digital samples. A digital signal processor (DSP) processes the sample, e.g. filtering, modulation, compression, and so on. Play back sound: A digital signal processor processes the sample, e.g. decompression, demodulation, and so on. A digital to analogue converter (DAC) converts the digital samples into sound signal. 15

All these hardware devices are integrated into a few chips on a sound card. Different sound card have different capability of processing digital sounds. When buying a sound card, you should look at: maximum sampling rate stereo or mono duplex or simplex 16

Audio Software Windows device driver controls the hardware device. Many popular sound cards are Plus and Play. Windows has drivers for them and can recognise them automatically. For cards that Windows does not have drivers, you need to get the driver from the manufacturer and install it with the card. If you do not hear sound, you should check the settings, such as interrupt, DMA channels, and so on. Device manager the user interface to the hardware for configuring the devices. You can choose which audio device you want to use You can set the audio volume 17

Mixer its functions are: to combine sound from different sources to adjust the play back volume of sound sources to adjust the recording volume of sound sources Recording Windows has a simple Sound Recorder. Editing The Windows Sound Recorder has a limiting editing function, such as changing volume and speed, deleting part of the sound. There are many freeware and shareware programs for sound recording, editing and processing. 18

Computer Music MIDI Sound waves, whether occurred natural or manmade, are often very complex, i.e., they consist of many frequencies. Digital sound is relatively straight forward to record complex sound. However, it is quite difficult to generate (or synthesize) complex sound. There is a better way to generate high quality music. This is known as MIDI Musical Instrument Digital Interface. 19

MIDI It is a communication standard developed in the early 1980s for electronic instruments and computers. It specifies the hardware connection between equipments as well as the format in which the data are transferred between the equipments. Common MIDI devices include electronic music synthesisers, modules, and MIDI devices in common sound cards. General MIDI is a standard specified by MIDI Manufacturers Association. To be GM compatible, a sound generating device must meet the General MIDI system level 1 performance requirement. 20

MIDI files When using computers to play MIDI music, the MIDI data are often stored in MIDI files. Each MIDI files contains a number of chunks. There are two types of chunks: Header chunk contains information about the entire file: the type of MIDI file, number of tracks and the timing. Track chunk the actual data of MIDI track. There three types of MIDI file: 0 single multi channel track 1 one or more simultaneous track of a sequence 2 one or more sequentially independent single track patterns 21

Tracks, channels and patches Multiple tracks can be played at the same time. Each track can be assigned to a different channel. Each channel can accept more than one track. Each channel is assigned a patch, therefore generates sound of a particular instrument. 22

How MIDI Sounds Are Synthesized A simplistic view is that: the MIDI device stores the characteristics of sounds produced by different sound sources; the MIDI messages tell the device which kind of sound, at which pitch is to be generated, how long the sound is played and other attributes the note should have. 23

There are two ways of synthesizing sounds: FM Synthesis (Frequency Modulation) Using one sine wave to modulate another sine wave, thus generating a new wave which is rich in timbre. It consists of the two original waves, their sum and difference and harmonics. The drawbacks of FM synthesis are: the generated sound is not real; there is no exact formula for generating a particular sound. Wave table synthesis It stores representative digital sound samples. It manipulates these samples, e.g., by changing the pitch, to create the complete range of notes. 24

MIDI Sound Attributes The shape of the amplitude envelop has great influence on the resulting character of sound. There are two different types of envelop: Diminishing sound gradually die out; Continuing sound sustain until turned off. 25

The Amplitude Envelop Delay the time between when a key is played and when the attack phase begins Attack the time from no sound to maximum amplitude Hold the time envelop will stay at the peak even before starting the decay phase Decay the time it takes the envelop to go from the peak level to the sustain level Sustain the level at which the envelop remains as long as a key is held down Release the time is takes for the sound to fade to nothing 26

MIDI software MIDI player for playing MIDI music. This includes: Windows media player can play MIDI files Player come with sound card Creative Midi player Freeware and shareware players and plug ins Midigate, Yamaha Midplug, etc. MIDI sequencer for recording, editing and playing MIDI Cakewalk Express, Home Studio, Professional Cubasis Encore Voyetra MIDI Orchestrator Plus Configuration Like audio devices, MIDI devices require a driver. Select and configure MIDI devices from the control panel. 27

Summary MIDI versus Digital Audio Digital Audio Digital representation of physical sound waves File size is large if without compression Quality is in proportion to file size More software available Play back quality less dependent on the sound sources Can record and play back any sound including speech 28

MIDI Abstract representation of musical sounds and sound effects MIDI files are much more compact File size is independent to the quality Much better sound if the sound source is of high quality Need some music theory Cannot generate speech 29