1 Section 5.4 Digital Sound Processing Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.

Slides:



Advertisements
Similar presentations
Introduction to Digital Audio
Advertisements

Digital Signal Processing
Digital Audio Teppo Räisänen LIIKE/OAMK. General Information Auditive information is transmitted by vibrations of air molecules The speed of sound waves.
Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
CNIT 132 – Week 9 Multimedia. Working with Multimedia Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each.
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.
1 Multimedia on the Web: Issues of Bandwidth Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each second.
Int 2 Multimedia Revision. Digitised Sound Analogue sound recorded from person, or real instruments.
Technology ICT Option: Audio.
Chapter 10 Introduction to Arrays
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
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.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
The audacious program Audacity Audacity might be worth a look. Suggest... Audacity is an easy to use audio production and mixing program, which enables.
Computer Science 101 Introduction to Programming with Sounds.
Introduction to Digital Audio
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.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
Computer Some basic concepts. Binary number Why binary? Look at a decimal number: 3511 Look at a binary number: 1011 counting decimal binary
Chapter 5 Using Classes and Objects in Media Computing
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Interest Calculator Application Introducing the For...Next Repetition Statements.
Chapter 11 Audio © 2013 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in.
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.
Sound or Audio, whichever you prefer –MIDI Files.midi or.mid (Musical Instrument Digital Interface) use for instrumental music. –This format is supported.
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
Alice Workshop Working with Sound. Sound Working with sound is appealing to students Demo: Penguin Sound.
Objective Understand digital audio production methods, software, and hardware. Course Weight : 6%
More Meaningful Jargon Or, All You Need to Know to Speak Like a Geek Sound.
Georgia Institute of Technology Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Sept 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.
1 ENGI 2420 Structured Programming (Lab Tutorial 7) Memorial University of Newfoundland.
Number Representation (Part 1) Computer Architecture (Fall 2006)
Intro-Sound-part1 Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Oct 2009.
 Audacity has many different uses  Record live audio  Copy or splice sound tracks together  Change the speed or pitch of a recording  Import and.
Adobe AuditionProject 4 guide © 2012 Adobe Systems IncorporatedOverview of Adobe Audition workspace1 Adobe Audition is an audio application designed for.
Adobe AuditionProject 4 guide © 2012 Adobe Systems IncorporatedHow to compose multiple-track recordings1 When creating an audio track, you will often want.
1 ENGI 2420 Structured Programming (Lab Tutorial 7) Memorial University of Newfoundland.
Multimedia Sound. What is Sound? Sound, sound wave, acoustics Sound is a continuous wave that travels through a medium Sound wave: energy causes disturbance.
Editing Digital AudioLab#7 Audacity is a free, easy-to-use and an open source platform audio editor and recorder for Windows, Mac OS, Linux and other operating.
1 Sections 5.1 – 5.2 Digital Image Processing Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Introduction to Digital Audio
1 Section 3.2b Arithmetic Operators Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
1 Section 1.3 Binary Number Systems Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Sections 10.1 – 10.4 Introduction to Arrays
Fundamentals of Java: AP Computer Science Essentials, 4th Edition
Multimedia: making it Work
Lec 3: Data Representation
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Data representation – Sound.
Pre-Production Determine the overall purpose of the project.
Fundamentals of Java: AP Computer Science Essentials, 4th Edition
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Fundamentals of Java: AP Computer Science Essentials, 4th Edition
Introduction to Digital Audio
Section 3.2c Strings and Method Signatures
Technology ICT Option: Audio.
Introduction to Digital Audio
Introduction to Digital Audio
Pre-Production Determine the overall purpose of the project.
Introduction to Digital Audio
Digital Music Scott Bennett 1/3/2019.
Representing Sound 2.6 – Data Representation.
Technology ICT Option: Audio.
COMS 161 Introduction to Computing
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:

1 Section 5.4 Digital Sound Processing Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne

22 Introduction to Digital Sound Processing Sounds are prepared for computer processing using an analog-to-digital converter. – Samples a sound thousands of times per second. – Each analog input is assigned an integer. – The set of samples is called a sound clip. – The greater the number of samples, the more precise the representation of the original sound. 2

33 Introduction to Digital Sound Processing (continued) Digital sound and images are different: – Sample values are arranged in a linear sequence, not a grid. – Sound samples are atomic. Each records a sound’s volume at a given moment. – A sequence of sound samples approximates the waveform of the analog sound information. Positive values above horizontal axis, negative below. 3

44 Introduction to Digital Sound Processing (continued) Digital sounds’ simple format make their algorithms easier to design. Programs that compose or edit music: – Increase or decrease the volume. – Dampen hiss or remove static. – Remove or insert segments of other sounds. – Blend sounds, add echoes, or repeat (loop) a sound. 4

55 Introduction to Digital Sound Processing (continued) Basic Sound-Manipulation Operations: File formats: WAVE, AU, AIFF, MP3. Sampling rate: number of samples per second. – A high rate leads to a better sound and larger file. Sample size: value in bits represent the range of possible integer sample values (amplitudes). Number of channels: stereo (two), mono (one). – Modern DVDs supports six-channel sound. 5

66 The sounds Package Supports two interrelated capabilities: – A GUI in which sound clips can be manipulated. Record new clips, open clip files, save sound clips in files, and play a loaded clip. – Methods for writing programs that manipulate sound clips and display the GUI. APSoundClip : represents sound as a list of Sample objects. Sample : A single 16-bit signed integer. 6

77 The sounds Package (continued) Using the sounds package: Example: import the APSoundClip class, create a new, empty sound clip object with the variable clip, and display the clip’s window with waveform and commands. 7

88 The sounds Package (continued) A sound clip’s waveform after recording 8

99 The sounds Package (continued) Adjusting a Sound Clip’s Volume: Volume is reflected in the amplitude (height and depth) of its waveform at a given point. To increase or decrease volume, increase or decrease the size of the sample value. – Algorithm resets the value of each sample by multiplying its old value by a given factor. – Greater than 1, volume increases, and vice versa. 9

10 The sounds Package (continued) Adjusting a Sound Clip’s Volume (cont): Must address the possibility that samples fall out of the legitimate range. – Use the maximum of the product and the minimum possible sample if the sample is negative. – Use the minimum of the product and the maximum possible sample if the sample is not negative. 10

11 The sounds Package (continued) Splicing Sound Clips: Spicing places one clip after another to form a new sound. New clip represents the concatenation of two other clips, similar to concatenating strings. A loop visits each sample in a clip and copies its value to the appropriate sample and position in the new sound clip. 11

12 The sounds Package (continued) Composing Sound Clips: Blending two sound clips to form a new sound clip so that they play simultaneously. Must account for unequal length for clips. 12

13 The sounds Package (continued) Echoing Sound Clips: An effect where an earlier part of a clip is heard concurrently with the sound at the present. Algorithm retrieves samples that occur earlier in the clip and blend with sounds that occur later. – An obvious echo has delay between sample pairs. – The inputs are a sound clip and an integer delay. – The resulting sample is a new clip. 13

14