Signal Processing. Case Study - 3. It s Too Loud. Hardware. Sound Levels

Similar documents
Getting Started with the LabVIEW Sound and Vibration Toolkit

ECE 4220 Real Time Embedded Systems Final Project Spectrum Analyzer

Experiment 9 Analog/Digital Conversion

Calibrating the timecode signal input

RF Level Test System +20 dbm to 130 dbm

Natural Radio. News, Comments and Letters About Natural Radio January 2003 Copyright 2003 by Mark S. Karney

LabView Exercises: Part II

Math and Music: The Science of Sound

Chapter 1. Introduction to Digital Signal Processing

REPORT DOCUMENTATION PAGE

The Physics Of Sound. Why do we hear what we hear? (Turn on your speakers)

Standard Definition. Commercial File Delivery. Technical Specifications

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

Using the BHM binaural head microphone

Using the new psychoacoustic tonality analyses Tonality (Hearing Model) 1

Calibration of auralisation presentations through loudspeakers

Performing a Measurement/ Reading the Data

1.2 General Description

inter.noise 2000 The 29th International Congress and Exhibition on Noise Control Engineering August 2000, Nice, FRANCE

Sonoris Meter VST 2.0

Calibrate, Characterize and Emulate Systems Using RFXpress in AWG Series

The Definition of 'db' and 'dbm'

HEAD. HEAD VISOR (Code 7500ff) Overview. Features. System for online localization of sound sources in real time

MIE 402: WORKSHOP ON DATA ACQUISITION AND SIGNAL PROCESSING Spring 2003

The TASA Standard (Updated 2013)

Experiment 13 Sampling and reconstruction

What is the minimum sound pressure level iphone or ipad can measure? What is the maximum sound pressure level iphone or ipad can measure?

RF (Wireless) Fundamentals 1- Day Seminar

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

Musical Signal Processing with LabVIEW Introduction to Audio and Musical Signals. By: Ed Doering

INSTRUCTION SHEET FOR NOISE MEASUREMENT

Performing a Sound Level Measurement

ENGINEERING COMMITTEE Interface Practices Subcommittee AMERICAN NATIONAL STANDARD ANSI/SCTE Composite Distortion Measurements (CSO & CTB)

Voice Controlled Car System

Please feel free to download the Demo application software from analogarts.com to help you follow this seminar.

A Simple Noise Measurement Amplifier and Filter

E X P E R I M E N T 1

Getting Started. Connect green audio output of SpikerBox/SpikerShield using green cable to your headphones input on iphone/ipad.

DESIGNING OPTIMIZED MICROPHONE BEAMFORMERS

Signal Stability Analyser

Experiment 2: Sampling and Quantization

ENGINEERING COMMITTEE

Introduction To LabVIEW and the DSP Board

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

Interface Practices Subcommittee SCTE STANDARD SCTE Composite Distortion Measurements (CSO & CTB)

Figure 1: Feature Vector Sequence Generator block diagram.

Troubleshooting EMI in Embedded Designs White Paper

The high-end network analyzers from Rohde & Schwarz now include an option for pulse profile measurements plus, the new R&S ZVA 40 covers the

Hello and welcome to this presentation of the STM32L4 Analog-to-Digital Converter block. It will cover the main features of this block, which is used

Loudness and Pitch of Kunqu Opera 1 Li Dong, Johan Sundberg and Jiangping Kong Abstract Equivalent sound level (Leq), sound pressure level (SPL) and f

MCP Signal Extraction and Timing Studies. Kurtis Nishimura University of Hawaii LAPPD Collaboration Meeting June 11, 2010

Understanding the Limitations of Replaying Relay-Created COMTRADE Event Files Through Microprocessor-Based Relays

BER MEASUREMENT IN THE NOISY CHANNEL

Swept-tuned spectrum analyzer. Gianfranco Miele, Ph.D

OWNERS MANUAL LUNATEC V3 MICROPHONE PREAMPLIFIER AND A/D CONVERTER

ANSI/SCTE 40 Conformance Testing Using the R&S SFU, R&S SFE and R&S SFE100

Dither Explained. An explanation and proof of the benefit of dither. for the audio engineer. By Nika Aldrich. April 25, 2002

Live Sound System Specification

Analysis of the effects of signal distance on spectrograms

Abbey Road TG Mastering Chain User Guide

Loudnesscontrol. A Loudness adapter. at the television playout stage. John Emmett EBU project Group P/AGA

Case Study: Can Video Quality Testing be Scripted?

Channel calculation with a Calculation Project

OTR-3550 FREQUENCY AGILE - F.C.C. COMPATIBLE TELEVISION PROCESSOR INSTRUCTION MANUAL

SERIAL HIGH DENSITY DIGITAL RECORDING USING AN ANALOG MAGNETIC TAPE RECORDER/REPRODUCER

DELTA MODULATION AND DPCM CODING OF COLOR SIGNALS

ECE438 - Laboratory 4: Sampling and Reconstruction of Continuous-Time Signals

ni.com Digital Signal Processing for Every Application

Advanced Techniques for Spurious Measurements with R&S FSW-K50 White Paper

Recommended Operations

Analog to Digital Converter. Last updated 7/27/18

Operating Instructions

OTD-3000-DC FREQUENCY AGILE TELEVISION DEMODULATOR. PAL-D (China) STANDARD INSTRUCTION MANUAL

LCM-550x12 12 CHANNEL TELEVISION MODULATOR SYSTEM INSTRUCTION MANUAL

Experiments on tone adjustments

National Park Service Photo. Utah 400 Series 1. Digital Routing Switcher.

Bias, Auto-Bias And getting the most from Your Trifid Camera.

F600A COMPRESSOR Operating Manual

Improving the accuracy of EMI emissions testing. James Young Rohde & Schwarz

Digital Representation

Topic: Instructional David G. Thomas December 23, 2015

medlab One Channel ECG OEM Module EG 01000

Proposed reference equalizer change in Clause 124 (TDECQ/SECQ. methodologies).

Lecture 5: Tuning Systems

Noise evaluation based on loudness-perception characteristics of older adults

FPFV-285/585 PRODUCTION SOUND Fall 2018 CRITICAL LISTENING Assignment

Mixer Conversion Loss

Electrical and Electronic Laboratory Faculty of Engineering Chulalongkorn University. Cathode-Ray Oscilloscope (CRO)

NOTICE. The information contained in this document is subject to change without notice.

Detecting and Analyzing System for the Vibration Comfort of Car Seats Based on LabVIEW

Music-Visualization and Motion-Controlled LED Cube

Mastering Phase Noise Measurements (Part 3)

BBN ANG 141 Foundations of phonology Phonetics 3: Acoustic phonetics 1

ESI VLS-2000 Video Line Scaler

Hybrid active noise barrier with sound masking

News from Rohde&Schwarz Number 195 (2008/I)

EBU Digital AV Sync and Operational Test Pattern

Lindell 354E User Manual. Lindell 354E. User Manual

Vocoder Reference Test TELECOMMUNICATIONS INDUSTRY ASSOCIATION

By Jim Norton Bird Technologies Group Applications Engineer

Transcription:

Case Study - 3 Signal Processing Lisa Simpson: Would you guys turn that down! Homer Simpson: Sweetie, if we didn't turn it down for the cops, what chance do you have? "The Simpsons" Little Big Mom (2000) Acceptance tests for a real-time signal processing system are presented. It s Too Loud I have produced software with Richard Cann of Grozier Technical Systems for a number of years. Grozier produces sound level measurement systems. These systems are used by numerous concert sites, particularly outdoor ones, to monitor sound levels for regulatory reasons and to act as good neighbors. The systems are composed of embedded systems which run multiple programs. Richard produces some of the programs, particularly the display and control version. I produce the real-time signal analysis portion. (** Ref http://en.wikipedia.org/wiki/sound_level_meter **) Hardware The programs use the integrated sound chip (AC 97) that is standard on many embedded Windows computers). Those chips convert sounds of a single channel up to 96000 samples per second and two channels up to 48000 samples per second. Conversion at 48000 samples per second are good for sounds up to 24 KHz. This is due to Nyquist sampling issues, which is well beyond the scope of this book. (see ***) (** Ref http://en.wikipedia.org/wiki/ac%2797 **) (** Footnote The original signal capture programs used a stand-alone analog to digital converter (A/D) A separate A/D has certain advantages as it can convert frequencies well past normal hearing levels up to 200 KHz or more. ***) (** Ref http://en.wikipedia.org/wiki/nyquist%e2%80%93shannon_sampling_theorem ** ) Sound Levels The signal analysis programs perform calculations every second. The main measure is the equivalent continuous sound level (Leq) every second. Leq is a common way of referring to Lat. For those mathematically inclined, Lat is 20 times the base 10 logarithm of the ratio of the root-mean-square A-weighted sound pressure during a time interval to the reference sound pressure. The reference sound pressure is the threshold of human hearing, about the sound of a mosquito flying 3 meters away. The perceived loudness of a sound correlates roughly logarithmically to its sound pressure. 186

The process as shown in Figure X.1 starts by converting the analog sound signal to a series of one second s worth of samples. Analog Digital Conversion (Hardware Audio Apply Window Windowed Apply A-Weight A- Weighted Compute RMS and log Leq Figure X.1 Sound Level Process The cutoff at the beginning and the end of each second create spurious frequencies, so the samples are Hann windowed. Then the sample is A-weighted (as shown in Figure X.2). Finally the Leq is computed. (** REF See http://en.wikipedia.org/wiki/window_function **) (** Ref See : http://en.wikipedia.org/wiki/a-weighting **) Gain in db versus Frequency Figure X.2 A-Weight 187

The sound is input through a microphone. The gain (how much the signal is amplified) varies based on both the microphone and the volume setting on the input. To correctly compute the Leq, the gain must be adjusted so that a standard sound source (a calibration source) produces a specific Leq result. The calibration source is a highly controlled sound generator. The output is feed to the microphone used for measuring the sound level. This calibration is part of the setup. It is difficult to replicate the entire system (microphone, calibration source, and so forth) for testing. However the sounds can be captured by regular recording methods and then replayed as input for the tests. Suppose the sounds produced by the calibration source are captured in a calibration file. And that sounds of known Leq are also captured in separate files. Then the test of the overall system can be: ***Start Background Given that the volume is adjusted so that calibration file (containing a 1 KHz signal) yields the standard Leq: Calibration File Leq (db) calibration.wav 94 Then the test files should be produce values of the expected Leq. Leq Tests Input File Leq (db)? test1.wav 88 test2.wav 95 ***End Background In order to ensure that these Leq s are correct, the same test can be repeated with calibrated specialized hardware. The process of comparing two separate ways of calculating an output and comparing them is similar to comparison of the outputs the multiple flight control algorithms that the space shuttle employs. Each algorithm computes a path. If all results agree, everything is great. If one differs, the shuttle uses the results that majority agree with. If every result is different, well, that s what makes for an interesting flight who do you believe? Developer Tests Richard is particularly interested in the final results is the Leq computed correctly for a particular file? However as a developer, it helps if I can apply tests to intermediate results. These intermediate tests would usually be termed unit tests, since they apply to lower level modules. However, since Richard is highly experienced in signal processing, he creates input and output files that can be used to ensure that the intermediate processing works correctly. For example: AWeight Test Files Input file Aweight1.data Aweight2.data Output file? Aweight1-out.data Aweight2-out.data The input and output files contain digital samples for one second. Equivalent files are available for each of the other steps in the process. 188

I Can t Hear It For other sound measurement applications, you need to measure the sound pressure in a set of frequency bands. Each frequency band has a low and a high frequency cutoff. Measuring in bands requires creating a band-pass filter that eliminates frequencies that are lower than the low frequency and higher than the high. The process is shown in Figure X.3. A common standard for frequency bands is: Frequency Bands Center Frequency Low Frequency High Frequency 31.5 22 44 63 44 88 125 88 177 250 177 354 500 354 707 1000 707 1414 2000 1414 2828 4000 2828 5656 8000 5656 11312 (*** See http://www.osha.gov/dts/osta/otm/noise/health_effects/physics.html ) Analog Digital Conversion (Hardware Audio Apply Window Windowed Apply Filter For each Band for each Band Compute RMS and log for each band Db for each band Figure X.2 Frequency Band Filtering The acceptance tests for this follow along the same lines as the previous tests. However they now involve different values for each frequency. There are a number of tests. The first set of test cases involves the input of tones at particular frequencies. The values of other frequencies should be relatively smaller. The examples given in this table are for a first-order filter. Frequency Band Levels Single Frequency Files Input File 31.5 Hz? 63 Hz? 125 Hz? 250 Hz? 500 Hz?.. and so 189

Freq31.5.wav 1.0.25.062.016.004 Freq63.wav.25 1.0.25.062.016 Freq125.wav.062.25 1.0.25.062 Freq250.wav.016.062.25 1.0.25 Freq500.wav.004.016.062.25 1.0 and so forth forth If the individual tones test properly, then another set of tests is run. These test use actual or simulated samples of sound. The values for each band are determined either by an alternate sound processing system, such as hardware, or by the values used to create the simulated samples. Frequency Band Levels Mixed Sounds Input File 31.5 Hz? 63 Hz? 125 Hz? 250 Hz? 500 Hz?.. and so forth Sample1.wav.2.31.41.31.92 Sample2.wav.5 1.0.9.5.2 and so forth Summary Acceptance tests do not have to involve just simple values. They can be entire sets of values (usually represented in files) A subject matter expert can often create lower level tests that can be used as unit tests Tests for real-time systems may run for a while 190