When PCM waveforms and similar oscillograms are displayed on screen, computational speed is often preferred over beauty and information content. For example, Audacity only draws the local maximum envelope amplitude and (what appears to be) RMS power when zoomed out, and when zoomed in, displays a very straightforward linear interpolation between samples.
Here's the startup beep of my Kenwood TK-2302, rendered by Audacity:
Analogue oscilloscopes, on the other hand, do things differently. An electron beam scans a phosphor screen at a constant X velocity, lighting a dot everywhere it hits. The dot brightness is proportional to the time the electron beam was directed at it. Because the X speed of the beam is constant and the Y position is modulated by the waveform, brightness gives information about the local derivative of the function.
Of course, PCM is all about "dots" as well, so we could possibly mimic this behavior digitally. I'm going to simulate an electron beam by first oversampling the above waveform by an insane amount – at 1 megahertz, that is. Lowpass filtering follows, with a cutoff frequency at the Nyquist frequency of the original PCM. Now, a program reads in the processed PCM and for each sample will make the corresponding dot on the XY plane a little brighter. (Actually each sample will affect 4 image pixels because of bilinear interpolation.) This method gives us a much more interesting rendering:
Now how cool is that? It looks like an X-ray of the signal. We can see right away that the beep is roughly a square wave, because there's light on top and bottom of the oscillation envelope but mostly darkness in between. Minute changes in the harmonic content are also visible as interesting banding and ribbons.
At very high zoom, Audacity doesn't even bother reconstructing the actual waveform but just thinks of it as a "connect the dots" puzzle. This is computationally feasible, of course. Oversampling at 3,000,017 Hz and downpass filtering at the original Nyquist frequency, on the other hand, results in an apparent reconstruction of the analogue wave:
Finally, the soprano section of the Finnish Radio Chamber Choir singing a D note in a piece by Einojuhani Rautavaara:
Relevant code for scientific interest in this Gist.
![[Image: Screenshot showing the oscillogram viewer of Audacity. 500 milliseconds of a signal is shown, beginning as a thin line that suddenly makes a positive rise, a slightly slower fall and then changes into a wide, solidly filled surface, with a lighter color in the middle.]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHvGAVIn0TPxlkAhbMzEgJH_VjlsMobv8LUCmmv2z0hTFXNwNxDybbGzhFE67OX7Z6rJ1yXFq0P6v9wehXAdzOG7o9k1GpDJNAVvPHwsa0O7eEy3GhopjbLeooReO9W_TdFInR9wnQX5m2/s480/Screenshot+-+30.03.2013+-+11.29.15.png)

![[Image: An Audacity oscillogram zoomed in so much that only a few dozen samples span the picture. Samples are drawn as dots that are connected by straight lines. Below it, another oscillogram of the same waveform, with a smooth waveform passing through all the samples.]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5GEoIDdfJ6oZb9JnjBdRd1npTNP8s1A2jpbfFy-giyHRW38ZwwZ91mzR-I5gZNSRD6jgJ5rem6zf8kE9X90OCIHAwFf-73AZuOEWBHI38TyK8-zTAO_G1RhR4XlC8hp2tfriTk4aMMnG3/s480/Screenshot+-+30.03.2013+-+12.21.19.png)
![[Image: An oscillogram of a signal varying in both time and frequency, revealing inner structure as brightness variations.]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYTn8rADYJR1FWd985KFvq1-Ko7D7SyvvbBevuaNrQY-nd4NtKk4liVzmaKvsrbY5CvLPl40X-yNLMO2ommcD4CRViiVZ57jI0YVP_qINNsXhTcEEsjpFQ1OwE8SEgT3N0GO-IKYfKa6IY/s480/osc.png)
![[Image: On the left, a gray box with the Logitech logo, a button labeled 'CONNECT', and a wire coming out of it, ending in two PS/2 connectors. On the right, the box opened and its PCB revealed. On the PCB there are three metal-colored crystals (16.4200 0014TC, 10.1700 0011TC3, 10.2700 HELE), two bulky components labeled LT455EW, and three microchips with Motorola logos. An array of wires goes out.]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSTREus0n_1LDRexwA3tjjex6zgb0LmAucjsrw5AIbyIWLjqZXi-DV7zarICInttM6e7_vtyfVdfymAoqcl3ZZ-qg7mOhIYA_POAWLUUlyfGK_H977Wx7ciHn7tXpMBGlQYUbzN5PYJ7j9/s400/nappis-sisalmys.jpg)
![[Image: Spectrogram showing a constant sinusoid and, below it, a burst of data encoded in the frequency of another sinusoid.]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOhTNwGz0wTPZJkXf1EmPtCuAzPZm5tGOPh5TG89bUSxWQRx4oK6D1MPHFTZZUmCJxtTvXzs2dkvOYwbEAAi1L_8yZcrUVQZ4-HhhUSczbHHo5Apg7kKJLj_xbaNl7EnrteT4izVsNtBL7/s1600/fmfsk.png)