Q. Are some analogue signal graphs misleading?

Published in SOS May 2012
Bookmark and Share

Sound Advice : Mixing

I read your feature about 'Digital Problems, Practical Solutions' (/sos/feb08/articles/digitalaudio.htm), which said that digital audio can capture and recreate analogue signals accurately, and that the 'steps' on most teaching diagrams are misleading. Does that mean that the graph should really show lines, or plot 'x's, instead of looking like a standard bar-graph?

Remi Johnson via email

SOS Technical Editor Hugh Robjohns replies: Good question! The graphs in that article are accurate as far as they go, but offer a very simplified view of only one part of the whole, much more complex, process.

When an analogue signal (the red line on Graph 1: Sample & Hold) is sampled, an electronic circuit detects the signal voltage at a specific moment in time (the sampling instant) and then holds that voltage as constant as it can until the next sampling instant. During that holding period the quantising circuitry works out which binary number represents the measured sample voltage. This, not surprisingly, is called a 'sample and hold' process, and that's what that diagram is trying to illustrate. Graph 1: Sample & HoldGraph 1: Sample & Hold

So the sampling moment is, theoretically, an instant in time, best represented on the graph as a thin vertical line at the sample intervals (the blue lines in the picture Graph 1: Sample & Hold), but the actual output of the sample and hold process is the grey bar extending to the right of the blue line.

However, the key to understanding sampling is understanding the maths behind that theoretical sampling 'instant', and that means delving into the maths of 'sinc' (sin(x)/x) functions, which is the time-domain response of a band-limited signal sample. At this point most musicians' eyes glaze over…

As we know, the measured amplitude of each sample from an analogue waveform is represented by a binary number in the digital audio system. When reconstructing the analogue waveform that number determines the height of the sinc function.

The important point is that we are not just creating a simple 'pulse' of audio at the sample point, because the sinc signal actually comprises a main sinusoidal peak at the sampling instant (and of the required amplitude), plus decaying sine wave 'ripples' that extend (theoretically for ever) both before and after that central pulse. The reconstructed analogue waveform is the sum of all the sinc functions for all the samples.

The clever bit is that the points where those decaying sinc ripples cross the zero line always occur at the adjacent sampling instants. This is shown in the next diagram (Graph 2: Two Sinc Functions) where, for simplicity, just two sample sinc functions are shown for samples 23 (red) and 27 (blue). You can see that at the intermediate sample points (26, 25, 24 and so on) the sinc functions are always zero.Graph 2: Two Sinc FunctionsGraph 2: Two Sinc Functions

That means that the ripples don't contribute to the amplitude of any other sample, but they do contribute to the amplitude of the reconstructed signal in between the samples, with the adjacent sample sinc functions having the greatest influence, and lesser contributions from the more distant samples. This is shown in the next diagram (Graph 3: 3kHz Sinc Addition), in which the sinc functions of a number of adjacent samples are shown, and when summed together produce the dotted line that is a sampled 3kHz sine waveform. Graph 3: 3kHz Sinc AdditionGraph 3: 3kHz Sinc Addition

These last two diagrams have been borrowed from a superb paper by Dan Lavry (of Lavry Engineering), which explains sampling theory extremely well, and can be found here: www.lavryengineering.com/documents/Sampling_Theory.pdf.  

June 2016
On sale now at main newsagents and bookstores (or buy direct from the SOS Web Shop)
SOS current Print Magazine: click here for FULL Contents list
Click image for June 2016
WIN Great Prizes in SOS Competitions!


Home | Search | News | Current Issue | Tablet Mag | Articles | Forum | Blog | Subscribe | Shop | Readers Ads

Advertise | Information | Privacy Policy | Support | Login Help


Email: Contact SOS

Telephone: +44 (0)1954 789888

Fax: +44 (0)1954 789895

Registered Office: Media House, Trafalgar Way, Bar Hill, Cambridge, CB23 8SQ, United Kingdom.

Sound On Sound Ltd is registered in England and Wales.

Company number: 3015516 VAT number: GB 638 5307 26


We accept the following payment methods in our web Shop:

Pay by PayPal - fast and secure  VISA  MasterCard  Solo  Electron  Maestro (used to be Switch)  

All contents copyright © SOS Publications Group and/or its licensors, 1985-2016. All rights reserved.
The contents of this article are subject to worldwide copyright protection and reproduction in whole or part, whether mechanical or electronic, is expressly forbidden without the prior written consent of the Publishers. Great care has been taken to ensure accuracy in the preparation of this article but neither Sound On Sound Limited nor the publishers can be held responsible for its contents.
The views expressed are those of the contributors and not necessarily those of the publishers.

Web site designed & maintained by PB Associates | SOS | Relative Media