Re: Tom Scholz on Why Digital Sucks ... again



On Fri, 22 Aug 2008 13:23:48 +0200, "Meindert Sprang"
<ms@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

"Chel van Gennip" <chel-news@xxxxxxxxxxxx> wrote in message
news:6h7gj5Fjp9k3U1@xxxxxxxxxxxxxxxxxxxxx
You should either study the theory, do the tests,

When I generate a waveform in Audacity with a frequency of 11020Hz at a
sampling frequency of 44100Hz, I can see the AM modulation on my screen. I

Scott's post told me what you're seeing, and indeed what's shown on
the screen is often NOT the same as what gets sent to or what comes
out of the A/D converter. I've used audacity, but not for zooming in
time-wise on waveforms, so I don't know how it handles drawing
individual waves, but maybe you can do the following with it.
I just did this in Cool Edit 2000. Viewing 77mS or greater on the
screen shows this "amplitude modulation," and indeed the points
available for the waveform do indeed cause the peak-displaying
software (it displays the peaks of the SAMPLES, not of the waveform)
at that zoom range to show a solid "carrier" waveform that appears to
be modulated by a full-wave rectified sine wave.
But zooming in shows the real story. There are (approximately, but
very close to) four sampling points for each cycle of the waveform,
and they vary slightly in phase from one cycle to the next. If you
zoom in to display about 1mS of the waveform, you'll see these four
points on a sine wave - I don't know if CE's display software uses a
low-pass filter or what to draw the waveform from the points, but it
appears to show the analog representation of those four points, which
happens to be a sine wave. If you go pan around you can see the points
at various places on the waveform (there may be two near zero-crossing
and one each near the positive and negative peaks, or they may be all
the same moderate amplitude + and -, starting at about 45 degrees into
the waveform), but regardless of where they are, they all add up to a
sine wave with the correct phase and amplitude. Zooming back out a bit
to show 17mS on the screen, there are many sine waves with irregular
peaks, but this is because of the software not having enough points to
correctly show enough of each sine wave - sometimes a peak lands on a
screen pixel, and sometimes not.
I'd do a screen shot and put it in a webpage to show you, but I
just remembered this has (amazingly!) already been done. There's a
free book on digital signal processing available online here:
http://www.dspguide.com
Look at the chapter on the Sampling Theorem here:
http://www.dspguide.com/ch3/2.htm
and look at figure 3, especially diagram c showing a sampled sine wave
of 0.31 times the sampling rate. And be sure to read the caption for
the diagram that starts with "Proper and improper sampling," it
mentions how those odd looking sample points all indicate points on
the same sine wave.

am now going to hook up my scope to see what is left of that after
conversion to analog.

The output (or "reconstruction" - sorry, Mr. Sommerwerck) filter is
what converts those 'sample points' to the original sine wave (the
intended output as shown in the figure, diagrams a through c, or an
unintended one as shown in d).


Meindert


.



Relevant Pages

  • Re: I found the holy grail that explains audiophile beliefs
    ... steady amplitude sine wave it does not work with a decaying sine wave, ... waveform can be thought of as a small section of a longer repeating ... sampling system, and it is an implementation issue that has been overcome. ... The sideband spikes are the result of timing error on the sampling clock ...
    (rec.audio.pro)
  • Re: anti-aliasing
    ... The adc will take a bunch of samples, ... If the sine wave is of a sufficently low frequency WRT to full sample time, then any given sub-section of that sine would be samples, giving obvious errors. ... If it is a complex waveform signal, that might not be a useable solution. ... "small" dithering of the sampling periodicity will not help; it might be useful when the input periodocity is near one of the harmonics of the sampling rate. ...
    (sci.electronics.design)
  • Re: I found the holy grail that explains audiophile beliefs
    ... steady amplitude sine wave it does not work with a decaying sine wave, like Cymbols clanging, unless the decay rate is slow enough to build up a number of samples. ... waveform can be thought of as a small section of a longer repeating waveform. ... While it may be reconstructed within reason, a side by side comparison of the original analog and the digitized output will show differences, distortion, phase delay, and some sideband spikes a KHz or so on either side of the desired waveform. ... The spikes were post digital filter so it could have been due to the switched capacitor clock getting through and causing strange things. ...
    (rec.audio.pro)
  • Re: Digital sine wave generation
    ... equal phase spacing, I'm very interested. ... generates a waveform that is a stepped sine approximation. ... Maybe I should've written "that do sine wave synthesis and do a good ...
    (sci.electronics.design)
  • Re: MSP430F1612: generating sinusoidal signals
    ... Code uses the fewest cycles to implement periodic waveform with DACs. ... a 32 kHz sample and interrupt rate. ... For audio applications just over 2-3 times the highest sine wave ... other phase accumulator sizes and look-up table sizes can ...
    (comp.arch.embedded)

Loading