Audio and Other Waveforms

Similar documents
Professor Laurence S. Dooley. School of Computing and Communications Milton Keynes, UK

Ch. 1: Audio/Image/Video Fundamentals Multimedia Systems. School of Electrical Engineering and Computer Science Oregon State University

ELEC 691X/498X Broadcast Signal Transmission Fall 2015

Lesson 2.2: Digitizing and Packetizing Voice. Optimizing Converged Cisco Networks (ONT) Module 2: Cisco VoIP Implementations

Digital Signal. Continuous. Continuous. amplitude. amplitude. Discrete-time Signal. Analog Signal. Discrete. Continuous. time. time.

EarStudio: Analog volume control. The importance of the analog volume control

Video 1 Video October 16, 2001

Digital Representation

Introduction to Data Conversion and Processing

Report. Digital Systems Project. Final Project - Synthesizer

Digital Television Fundamentals

SingMai Electronics SM06. Advanced Composite Video Interface: HD-SDI to acvi converter module. User Manual. Revision 0.

Implementation of an MPEG Codec on the Tilera TM 64 Processor

Digital Video Telemetry System

SingMai Electronics SM06. Advanced Composite Video Interface: DVI/HD-SDI to acvi converter module. User Manual. Revision th December 2016

QUIZ. Explain in your own words the two types of changes that a signal experiences while propagating. Give examples!

Announcements. Project Turn-In Process. and URL for project on a Word doc Upload to Catalyst Collect It

Tiptop audio z-dsp.

ATSC vs NTSC Spectrum. ATSC 8VSB Data Framing

Hugo Technology. An introduction into Rob Watts' technology

Software Analog Video Inputs

8/30/2010. Chapter 1: Data Storage. Bits and Bit Patterns. Boolean Operations. Gates. The Boolean operations AND, OR, and XOR (exclusive or)

Introduction to image compression

MPEG + Compression of Moving Pictures for Digital Cinema Using the MPEG-2 Toolkit. A Digital Cinema Accelerator

Multiband Noise Reduction Component for PurePath Studio Portable Audio Devices

PCM ENCODING PREPARATION... 2 PCM the PCM ENCODER module... 4

Display Interfaces. Display solutions from Inforce. MIPI-DSI to Parallel RGB format

1/29/2008. Announcements. Announcements. Announcements. Announcements. Announcements. Announcements. Project Turn-In Process. Quiz 2.

Announcements. Project Turn-In Process. Project 1A: Project 1B. and URL for project on a Word doc Upload to Catalyst Collect It

EEC-682/782 Computer Networks I

8500 Composite/SD Legalizer and Video Processing Frame Sync

Area-Efficient Decimation Filter with 50/60 Hz Power-Line Noise Suppression for ΔΣ A/D Converters

Lossless Compression Algorithms for Direct- Write Lithography Systems

Information Transmission Chapter 3, image and video

A Big Umbrella. Content Creation: produce the media, compress it to a format that is portable/ deliverable

So far. Chapter 4 Color spaces Chapter 3 image representations. Bitmap grayscale. 1/21/09 CSE 40373/60373: Multimedia Systems

IQDEC01. Composite Decoder, Synchronizer, Audio Embedder with Noise Reduction - 12 bit. Does this module suit your application?

Department of Communication Engineering Digital Communication Systems Lab CME 313-Lab

MULTIMEDIA TECHNOLOGIES

Fundamentals of DSP Chap. 1: Introduction

Distributed Multimedia Systems. 2.Coding. László Böszörményi Distributed Multimedia Systems Coding - 1

Video compression principles. Color Space Conversion. Sub-sampling of Chrominance Information. Video: moving pictures and the terms frame and

MULTIMEDIA COMPRESSION AND COMMUNICATION

OVE EDFORS ELECTRICAL AND INFORMATION TECHNOLOGY

Dual Digital BTSC Encoder with Integrated DAC AD71028

Chapter 14 D-A and A-D Conversion

ADSR AMP. ENVELOPE. Moog Music s Guide To Analog Synthesized Percussion. The First Step COMMON VOLUME ENVELOPES

Sensor Development for the imote2 Smart Sensor Platform

1 Introduction to PSQM

How do you make a picture?

AN MPEG-4 BASED HIGH DEFINITION VTR

Digital Audio Design Validation and Debugging Using PGY-I2C

Music Representations

Clock Jitter Cancelation in Coherent Data Converter Testing

Introduction This application note describes the XTREME-1000E 8VSB Digital Exciter and its applications.

Lab 5 Linear Predictive Coding

Data Converter Overview: DACs and ADCs. Dr. Paul Hasler and Dr. Philip Allen

CM3106 Solutions. Do not turn this page over until instructed to do so by the Senior Invigilator.

Computer Audio and Music

Lecture 23: Digital Video. The Digital World of Multimedia Guest lecture: Jayson Bowen

Digital Effects Pedal Description Ross Jongeward 10 December 2014

DNT0212 Network Processor

C8000. switch over & ducking

CAP240 First semester 1430/1431. Sheet 4

Calibrate, Characterize and Emulate Systems Using RFXpress in AWG Series

GALILEO Timing Receiver

DNT0212 Network Processor

Colour Reproduction Performance of JPEG and JPEG2000 Codecs

AM-4 Audio Monitor. Videoquip Research Limited 595 Middlefield Road, Unit #4 Scarborough, Ontario, Canada. MIV 3S2

DIGITAL COMMUNICATION

DIRECT DIGITAL SYNTHESIS AND SPUR REDUCTION USING METHOD OF DITHERING

GAMBIT DAC1 OPERATING MANUAL

Synthesized Clock Generator

Digital Fundamentals. Introduction to Digital Signal Processing

y AW4416 Audio Workstation Signal Flow Tutorial

Hello, and welcome to this presentation of the STM32 Serial Audio Interface. I will present the features of this interface, which is used to connect

Specifications for Thermopilearrays HTPA8x8, HTPA16x16 and HTPA32x31 Rev.6: Fg

Understanding Sampling rate vs Data rate. Decimation (DDC) and Interpolation (DUC) Concepts

Digital Media. Daniel Fuller ITEC 2110

Analog Input & Output

Tutorial on Technical and Performance Benefits of AD719x Family

Advance Certificate Course In Audio Mixing & Mastering.

Experiment 9 Analog/Digital Conversion

NanoGiant Oscilloscope/Function-Generator Program. Getting Started

Stereo Box Pre Box Amp Box Amp Box Mono Switch Box. Tuner Box Dock Box F / V Phono Box MM Record Box USB Phono Box II

NTE1416 Integrated Circuit Chrominance and Luminance Processor for NTSC Color TV

Nutaq. PicoDigitizer-125. Up to 64 Channels, 125 MSPS ADCs, FPGA-based DAQ Solution With Up to 32 Channels, 1000 MSPS DACs PRODUCT SHEET. nutaq.

Midterm Review. Yao Wang Polytechnic University, Brooklyn, NY11201

DVM-3000 Series 12 Bit DIGITAL VIDEO, AUDIO and 8 CHANNEL BI-DIRECTIONAL DATA FIBER OPTIC MULTIPLEXER for SURVEILLANCE and TRANSPORTATION

Fortissimo. Afgroup srl. Integrated amplifier. AFGROUP srl. Issue Date: April Fortissimo Integrated amplifier 1 / 7

Dithering in Analog-to-digital Conversion

CD - SACD - DVD Player - PULSAR SADV 1250 R HD

Installation & Operational Manual

QRF5000 MDU ENCODER. Data Sheet

SMPTE x720 Progressive Image Sample Structure - Analog and Digital representation and Analog Interface

CEDAR Series. To learn more about Ogden CEDAR series signal processing platform and modular products, please visit

S1 Digital/Analogue Radio Broadcast Mixer

CPLUS-V2PE 4K UHD+ HDMI to Dual HDMI Scaler with Audio De-Embedding & Test Patterns

Research Results in Mixed Signal IC Design

DQT1000 MODEL DIGITAL TO QAM TRANSCODER WITH DIGITAL PROCESSING AND MULTIPLEXING

Transcription:

Audio and Other Waveforms Stephen A. Edwards Columbia University Spring 2016

Waveforms Time-varying scalar value Commonly called a signal in the control-theory literature Sound: air pressure over time f(t) t Raster video: brightness over time Speed over time, position over time, etc.

The Fourier Series Any periodic function can be expressed as a sum of harmonics For a smooth function f(t) with period T, i.e., f(t) = f(t + T), there exists coefficients a n, b n such that f(t) = a 0 + m=1 a m cos 2πmt T + b m sin 2πmt T

The Fourier Series for a Square Wave f(t) = 4 π ( sin t ) f(t) 1 1 π 2π t

The Fourier Series for a Square Wave f(t) = 4 π ( sin 3t sin t + 3 ) f(t) 1 1 π 2π t

The Fourier Series for a Square Wave f(t) = 4 π ( sin 3t sin 5t sin t + + 3 5 ) f(t) 1 1 π 2π t

The Fourier Series for a Square Wave f(t) = 4 π ( sin 3t sin 5t sin 7t sin t + + + 3 5 7 ) f(t) 1 1 π 2π t

The Fourier Series for a Square Wave f(t) = 4 π ( sin 3t sin 5t sin 7t sin 9t sin t + + + + 3 5 7 9 ) f(t) 1 1 π 2π t

The Fourier Series for a Square Wave f(t) = 4 π ( ) sin 3t sin 5t sin 7t sin 9t sin t + + + + + 3 5 7 9 f(t) 1 1 π 2π t

Bandwidth-Limited Signals Basic observation: nothing changes infinitely fast Bounding the rate of change sets the bandwidth of a signal Hertz or Hz: per second Source: Stereophile magazine: Marantz SM-11S1, small-signal 10kHz squarewave into 8 ohms. A $4000 audiophile amplifier rated 5 Hz 120 khz.

The Bandwidth of Sound Human ears are almost a Fourier transform Source: Encyclopedia Britannica The Organ of Corti inside the Cochlea

Human Hearing Empirically, humans hear 20 Hz 20 khz Highest frequency limit tends to decrease with age

Nyquist Theorem To reconstruct a bandwidth-limited signal from samples, you need to sample at least twice the maximum frequency. Sampling at 8 f

Nyquist Theorem To reconstruct a bandwidth-limited signal from samples, you need to sample at least twice the maximum frequency. Sampling at 4 f

Nyquist Theorem To reconstruct a bandwidth-limited signal from samples, you need to sample at least twice the maximum frequency. Sampling at 2 f

Nyquist Theorem To reconstruct a bandwidth-limited signal from samples, you need to sample at least twice the maximum frequency. Sampling at 4/3 f

Nyquist Theorem To reconstruct a bandwidth-limited signal from samples, you need to sample at least twice the maximum frequency. Sampling at 1 f

Audio Sampling Rates CD-quality audio: 44.1 khz Telephone-quality audio: 8 khz

Signal-to-Noise Ratio You can t always get what you want / but if you try sometimes you might find / you get what you need The Rolling Stones Signals are never pure: there s always something that makes them deviate from the ideal. Signal-to-Noise ratio: SNR = Signal Power Noise Power Usually measured using a log scale, i.e., db = 10 log 10 P signal P noise

Human Hearing db, SNR, and bits n 6.02 + 1.76 = SNR in db CD samples: 16 bits = 98 db Near the limit of human hearing

The CODEC on the SoCKit: Analog Devices SSM2603 encoder/decoder: analog-to-digital converter (ADC) + digital-to-analog converter (DAC) AVDD VMID AGND DBVDD DGND DCVDD HPVDD PGND MICBIAS BYPASS SSM2603 34.5dB TO +33dB, 1.5dB STEP SIDETONE 6dB TO 15dB/MUTE 3dB STEP 73dB TO +6dB, 1dB STEP RLINEIN MUX ADC DAC RHPOUT MICIN DIGITAL PROCESSOR ROUT 0dB/20dB BOOST LOUT MUX ADC DAC LLINEIN LHPOUT 34.5dB TO +33dB, 1.5dB STEP SIDETONE 6dB TO 15dB/MUTE 3dB STEP 73dB TO +6dB, 1dB STEP BYPASS CLK DIGITAL AUDIO INTERFACE CONTROL INTERFACE MCLK/ XTI XTO CLKOUT PBDAT RECDAT BCLK PBLRC RECLRC MUTE CSB SDIN SCLK Two 24-bit ADCs; two 24-bit DACs + 7 mw headphone amp Sampling rates: 22.05, 24, 32, 44.1, 48, 88.2, and 96 khz

SoCKit Interface to the Audio Codec Figure 3-16 Connections between FPGA and Audio CODEC Table 3-14 Pin Assignments for Audio CODEC Signal Name FPGA Pin No. Description I/O Standard AUD_ADCLRCK PIN_AG30 Audio CODEC ADC LR Clock 3.3V AUD_ADCDAT PIN_AC27 Audio CODEC ADC Data 3.3V AUD_DACLRCK PIN_AH4 Audio CODEC DAC LR Clock 3.3V AUD_DACDAT PIN_AG3 Audio CODEC DAC Data 3.3V AUD_XCK PIN_AC9 Audio CODEC Chip Clock 3.3V AUD_BCLK PIN_AE7 Audio CODEC Bit-Stream Clock 3.3V AUD_I2C_SCLK PIN_AH30 I2C Clock 3.3V AUD_I2C_SDAT PIN_AF30 I2C Data 3.3V AUD_MUTE PIN_AD26 DAC Output Mute, Active Low 3.3V I 2 C bus for configuration: data format, volume levels, etc. Synchronous serial protocol (data + L/R + bit clock) for data

Storing Waveforms If you store each sample, samples second Total memory consumption: bits sample channels = bits seconds = bits seconds bits second E.g., CD-quality audio: 44.1 khz, 16 bits/sample, 2 channels A 74-minute CD: 44.1 khz 16 2 = 1.4 Mbps = 175 KB/s 1.4 Mbps 60 seconds minute byte 74 minutes = 783 MB 8 bits

Reducing Memory: Sample Less; Use Fewer Bits 74 minutes of CD-quality audio (16 bits/sample, stereo, 44.1 khz) 44.1 khz 32 bits 60 sec/min 74 min 8 bits/byte = 783 MB 74 minutes of telephone-quality audio: (8 bits/sample, mono, 8 khz) 8 khz 8 bits 60 sec/min 74 min 8 bits/byte = 35 MB

Reducing Memory: Lossy Compression (Companding) µ-law and A-law compression Logarithmic encoding of 12 bit samples in 8 bits Trades dynamic range for quantization noise 0-10 Encoded Signal (dbfs) -20-30 -40-50 -60 10 No Companding μ-law μ-law Quantized A-Law A-Law Quantized 0-10 -20-30 -40-50 -60-70 -80 Linear Signal (dbm0) Source: Ozhiker, Wikimedia commons

ADPCM: Adaptive Predictive Pulse Code Modulation Uses 4 bits/sample to reconstruct 8-bit samples Encodes the difference between the next sample and its predicted value

MPEG Layer 3 Compression: Perceptual Coding Carefully reproduce what we hear well and worry less about what we can t (soft sounds masked by loud ones)

Sound Synthesis: Analog Modular analog sound synthesis c. 1968 Oscillators + noise sources + envelope generators + filters Moog synthesizer

Subtractive Synthesis Start with a saw, square, or triangle wave, then filter

The AY-3-8912 Programmable Sound Generator

FM Synthesis What does it sound like? Any pop music from the 1980s

Summary of Audio Waveform Generation Direct sampling (Pulse Code Modulation) Consider sampling frequency, bits/sample Lossy Compression Companding (µ-law, A-law) ADPCM Perceptual Coding (MP3 et al.) Synthesis Subtractive (oscillators, filters, envelopes) FM (Carrier modulator, envelopes) Wavetable/sampling (sound snippets + note events)

Representing Images Same story; two dimensional waveforms E.g., a single frame of VGA/standard definition television: 640 480 24 bits = 900 KB pixel HD is terrifying: 1920 1080 24 bits = 5.9 MB pixel

JPEG: Still Image Compression 0 1010011 010 8 8 0 1 0 100 1 1 11 blocks 00 Huffman 1 Zig-zag 1 Quantize 1 DCT 1 YCbCr-to-RGB Colorspace conversion Space-to-frequency domain conversion Quantization Zig-zag encoding Huffman encoding