Audio 1 Subject:T0934 / Multimedia Programming Foundation Session:8 Tahun:2009 Versi:1/0.

Slides:



Advertisements
Similar presentations
3.01C Multimedia Elements and Guidelines 3.01 Explore multimedia systems, elements and presentations.
Advertisements

Tamara Berg Advanced Multimedia
Digital Audio Teppo Räisänen LIIKE/OAMK. General Information Auditive information is transmitted by vibrations of air molecules The speed of sound waves.
A stereo audio file 1. Audio Channels Number of audio channels determines number of waveforms in a recording Two relevant types of recording Stereo recording.
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.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
2 Information Processing
1. Digitization of Sound What is Sound? Sound is a wave phenomenon like light, but is macroscopic and involves molecules of air being compressed and expanded.
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.
4.2 Multimedia Elements Audio 1. Learning Outcomes: At the end of the lesson, students should be: a) describe the purpose of using audio in multimedia.
Information Sources And Signals
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
Multimedia Network Communications Subject:T0934 / Multimedia Programming Foundation Session:13 Tahun:2009 Versi:1/0.
Audio 2 Subject:T0934 / Multimedia Programming Foundation Session:9 Tahun:2009 Versi:1/0.
Chapter 5-Sound.
I Power Higher Computing Multimedia technology Audio.
SWE 423: Multimedia Systems Chapter 3: Audio Technology (2)
5/4/20151 Lesson 5 Sound. 5/4/20152 Overview Introduction to sound. Multimedia system sound. Digital audio. MIDI audio. Audio file formats.
EET 450 Chapter 18 – Audio. Analog Audio Sound is analog Consists of air pressure that has a variety of characteristics  Frequencies  Amplitude (loudness)
Animation and Sound Pertemuan 02 Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
5. Multimedia Data. 2 Multimedia Data Representation  Digital Audio  Sampling/Digitisation  Compression (Details of Compression algorithms – following.
Chapter 9 Audio.
Chapter 14 Recording and Editing Sound. Getting Started FAQs: − How does audio capability enhance my PC? − How does your PC record, store, and play digital.
Digital Audio Multimedia Systems (Module 1 Lesson 1)
 Continuous sequence of vibrations of air  (Why no sound in space? Contrary to Star Wars etc.)  Abstraction of an audio wave:  Ear translates vibrations.
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.
1 1 Multimedia. 2 What is SOUND? Sound comprises the spoken word, voices, music and even noise. It is a complex relationship involving: a vibrating object.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
MIDI. A protocol that enables computers, synthesizers, keyboards, and other musical devices to communicate with each other. Instead of storing actual.
Multimedia Technology Digital Sound Krich Sintanakul Multimedia and Hypermedia Department of Computer Education KMITNB.
By Frankie, K. F. Yip Chapter 6 Speech. By Frankie, K. F. YipLecture 6 - Sound2 Sound Waves.
COMP Representing Sound in a ComputerSound Course book - pages
1 Week 10: Audio Recording. 2 Overview  What is sound?  What does analogue mean?  Analogue-to-Digital conversion  Key terms in digital audio  Compression.
1 CP586 © Peter Lo 2003 Multimedia Communication Introduction to Sound.
Media Representations - Audio
CHAPTER SEVEN SOUND. CHAPTER HIGHLIGHTS Nature of sound – Sine waves, amplitude, frequency Traditional sound reproduction Digital sound – Sampled – Synthesized.
AUDIO MEDIA 1 Created } “Borrowed” } Microphone MIDI keyboard CD’s & flash drives Internet Audio Sources 2.
Signal Digitization Analog vs Digital Signals An Analog Signal A Digital Signal What type of signal do we encounter in nature?
Sound or Audio, whichever you prefer –MIDI Files.midi or.mid (Musical Instrument Digital Interface) use for instrumental music. –This format is supported.
Multimedia Elements: Sound, Animation, and Video.
Modication by tuti 1 LECTURE 7 THE USES OF DIGITAL AUDIO IN MULTIMEDIA.
Overview of Multimedia A multimedia presentation might contain: –Text –Animation –Digital Sound Effects –Voices –Video Clips –Photographic Stills –Music.
Multimedia Technology and Applications Chapter 2. Digital Audio
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 9 This presentation © 2004, MacAvon Media Productions Sound.
Sound element Week - 11.
Audio / Sound INTRODUCTION TO MULTIMEDIA SYSTEMS Lect. No 3: AUDIO TECHNOLOGY.
© 2011 The McGraw-Hill Companies, Inc. All rights reserved Chapter 4: Sound.
Sound in Multimedia Psychology of sound what do you use it for? what techniques for its communication exist? Science of sound why does it exist? how it.
CSCI-100 Introduction to Computing Hardware Part II.
Data dan Teknologi Multimedia Sesi 05 Nofriyadi Nurdam.
Music files in PowerPoint 2007? By Ashley Wiger.
Sound Pertemuan 11 & 12 Matakuliah: O Computer / Multimedia Tahun: Feb
Audio Streaming © Nanda Ganesan, Ph.D.. Audio File Features Audio file is a record of captured sound that can be played back –The WAV File is an example.
Video 2 Subject:T0934 / Multimedia Programming Foundation Session:11 Tahun:2009 Versi:1/0.
© 2011 The McGraw-Hill Companies, Inc. All rights reserved Chapter 4: Sound.
XP Practical PC, 3e Chapter 14 1 Recording and Editing Sound.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Chapter 4 Fundamentals of Digital Audio
Objective % Explain concepts used to create digital audio.
Introduction to Multimedia
Objective % Explain concepts used to create digital audio.
Sound Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
3.01C Multimedia Fair Uses Guidelines and Elements
3.01C Multimedia Elements and Guidelines
3.01C Multimedia Fair Uses Guidelines and Elements
3.01C Multimedia Fair Uses Guidelines and Elements
3.01C Multimedia Elements and Guidelines
3.01C Multimedia Fair Uses Guidelines and Elements
Digital Audio Application of Digital Audio - Selected Examples
Chapter 9 Audio.
Presentation transcript:

Audio 1 Subject:T0934 / Multimedia Programming Foundation Session:8 Tahun:2009 Versi:1/0

Bina Nusantara Learning Outcomes In the end of this session, students must be able to: –Understand the basic principal of audio digitization and enhancement –Identify Java Sound API syntax to manipulate basic audio properties

Outline Audio Digitization MIDI Audio Quantization and Transmission Java Sound API Bina Nusantara

A Typical Audio Architecture Bina Nusantara

Sound Sound are rapid vibrations that are transmitted as variations in air pressure To use sound digitally, we must digitize (converse to a stream of numbers) the analog sound first Bina Nusantara Time Amplitude Analog signal of sound

Sound Digitization To fully digitize the sound, we have to sample in Time (Sampling) and in Amplitude (Quantization) Bina Nusantara Sampling Quantization

Sampling –Measuring at evenly spaced intervals Sampling Rate –Known as sampling frequency, measured in Hertz (Hz) Nyquist Rate –To have a correct sampling, sampling rate should equal to at least twice the maximum frequency –If sampling rate is lower than Nyquist rate, it will result in false (alias) frequency Bina Nusantara

Quantization Sampling in the amplitude dimension, represented in fixed numbers of bits (8, 12, or 16 bits) Bina Nusantara Results in a loss of precision which is called distortion (or called quantization noise) Dithering (adding random noise to quantized audio) can be used to remove some of the distortion Original audio wave Quantization error wave Quantized audio wave

Common Rates QualitySample Rate (kHz) QuantizationMono/StereoFrequency Range Telephone88Mono AM Radio11,0258Mono FM Radio22,0516Stereo CD44,116Stereo DAT4816Stereo DVD audio192 (max)24 (max)Up to 6 channels (max) Bina Nusantara

Sampled Audio Format Bina Nusantara File Type Acronym For Originally Created By Type of CompressionPlatforms.aiff Audio Interchange File Format Apple, adopted later by Silicon Graphics usually not compressed, but has a compressed version Apple Macintosh and Silicon Graphics computers, and now also on Windows.wav IBM and Microsoft supports a number of different compression formats primarily for Windows, but can be run on in other systems.au and.snd Also called mu-law or Sun mu-law format Sun and NeXT mu-law encoding compresses the file at a ratio of 2:1; slow decompression Sun, NeXT, Unix or Linux operating system.mp3MPEG audio layer 3 Moving Pictures Experts Group good compression rate with high quality sound cross-platform

Synthesizing Sounds Frequency Modulation (FM) –Producing new audio signal using a source waveform’s frequency is changed by a modulating frequency –Based on the same principles used for FM radio trasmission –Used in low-end versions of Creative Sound Blaster PC sound card Wave-Table –More accurate way reproducing sound –Using actual samples of real instruments –More expensive than FM synthesis (partly because of larger data storage) Bina Nusantara

MIDI Musical Instrument Digital Interface A scripting language that codes events (MIDI messages + timings) Enable computers, synthesizers, keyboards, and other musical devices to communicate with each others. Bina Nusantara

A Possible MIDI Configuration Bina Nusantara

Synthesizers A sound generator that can vary pitch, loudness, and tone color. Now included on PC sound cards. The units that generate sound are called tone/sound modules. Bina Nusantara

Sequencers In the beginning, a special hardware device for storing and editing a sequence of musical events (MIDI data) Now, a software music editor on the computer Bina Nusantara

MIDI keyboards A keyboard that produces MIDI messages, not sound Bina Nusantara

MIDI Messages Sequences of MIDI instructions Bina Nusantara MIDI messages Channel messages Voice messages Mode messages System messages Common messages Real-time messages Exclusive messages

Channel Messages Voice Messages –Sends information of which note to play –Used to control sustain, vibrato, tremolo, and pitch Mode Messages –Determines how an instrument processes MIDI voice messages (to respond all messages, respond just to correct channel, don’t respond at all, etc) Bina Nusantara

System Messages For commands that are not channel- specific Common messages –Relates to timing or positioning Real-time messages –Relates to synchronization Exclusive messages –Included so manufacturers can extend the MIDI standard Bina Nusantara

MIDI standard General MIDI (GM1) –Standard for assigning instruments to patch numbers so MIDI music can sound more or less the same on every machine –Ex : patch no.1 = piano General MIDI level 2 (GM2) –Extended General Midi, with SMF (Standard MIDI File) format defined. –Includes extra character of information such as karaoke lyrics –Increases the number of available sounds –Increases the amount of control available for sound editing and musical performance General MIDI Lite (GML) –For mobile applications Bina Nusantara

Standard MIDI Files a digital file that contains MIDI events was developed in 1990 for file exchange between MIDI sequencers The information in a standard MIDI file is referred to as a sequence contains one or more tracks which each typically contains the notes of a single instrument Bina Nusantara

Java Sound API Supports both sampled audio and MIDI data javax.sound.sampled –This package specifies interfaces for capture, mixing, and playback of digital (sampled) audio. javax.sound.midi –This package provides interfaces for MIDI synthesis, sequencing, and event transport. Bina Nusantara

Playing Sound Bina Nusantara Full code downloadable in Additional Materi.

Playing MP3 Bina Nusantara Create mp3 player Open MP3 file and start player

Playing MP3 Bina Nusantara Getting controller component Result Note : This program use JMF to play MP3 file. Full code is downloadable in Additional Materi

Playing WAV Bina Nusantara Create player from file Open WAV file Getting music length

Playing WAV Bina Nusantara Setting control for control the music

Playing MIDI Bina Nusantara Full code downloadable in Additional Materi.

References Basics of Digital Audio Developing a Strategy for Creating and Assessing Digital Media Curriculum Material Midi Trail: Sound The Java Sound API Sound Bina Nusantara