Erlen Primer · all experiments

Electrical · Core · Investigate

The tone that is not there

The take holds a tone that nobody put in. Where does it come from, and where does a filter have to go to keep it out? And what is source X's real frequency?

The tone that is not there: the bench

The bench

An audio generator gives one tone at 1 V. In line after it, the sealed box marked X adds a second tone of 0.5 V somewhere between 20 and 40 kHz: too high to hear, and above what the audio analyser shows, which stops at 20 kHz. The trainer measures the voltage 8 000 times a second, to start with, keeps each measurement as a number of 8 bits, and plays the numbers back through a DAC to the loudspeaker. One filter module, a two-pole low-pass, can be plugged in ahead of the ADC or after the DAC. Levels are in dB against the generator's 1 V: −6 dB is half of it, −40 dB a hundredth. The job is a take of the 1 kHz tone: the tone within 1 dB of what went in, and nothing that was not put in above −40 dB. The disc is geared to the generator, one turn for every 1 000 cycles, and its lamp flashes once for every 1 000 samples.

What you do

Controls

  • Generator tone (Hz): 100 to 20000
  • Source X: Off or On
  • Sample rate (samples a second): 1000 to 20000
  • Bits kept: 3 to 12
  • Filter module: On the bench or Plugged in
  • Filter's socket: Before the ADC or After the DAC
  • Filter corner (Hz): 500 to 20000

Buttons

  • Record a take
  • Note the reading

Unknown

  • Source X: its tone's frequency

Predictions

  • Raise the generator's tone past half the sample rate and on up toward the sample rate. The tone that comes out…
  • Take the filter from ahead of the ADC and plug it in after the DAC, corner unchanged. The tone that source X leaves in the output…

To work out

  • What is the frequency of source X's tone? (kHz)
  • With source X filtered out, what is the lowest sample rate on the dial that still brings a 1 kHz tone out at full level? (S/s)

Results kept

  • Readings: As, Tone in (Hz), Source X, Sample rate (S/s), Bits, Filter, Corner (Hz), Tone out at (Hz), Its level (dB), Quantising error (dB)
  • Source X, where it came out: Sample rate (S/s), Filter, Corner (Hz), Came out at (Hz), Level (dB)

What you find

  • A tone came out that the analyser does not show going in. Nothing audible is making it.
  • Above half the sample rate the generator's tone came out lower than it went in: at the sample rate less the tone.
  • Changing the sample rate moved the tone that source X leaves. A tone that was really there would stay where it was.
  • With the filter ahead of the ADC, source X was taken off before it was sampled: it is under a hundredth of the tone in the output.

What is simplified

The generator's tone and source X's are pure sines of fixed size, each starting from a fixed point of its cycle when the first sample is taken. The ADC takes each sample in an instant and its steps are perfectly even; the only error it makes is rounding to the bits kept, and because the tones keep step with its clock that error shows as a comb of small spikes on the analyser where a real bench would show a floor of noise. The DAC is taken to play back exactly the band below half the sample rate that the samples hold; a real one holds each sample as a step and needs a filter of its own, with room to work in. The filter is an ideal two-pole Butterworth. The analyser shows nothing above 20 kHz. The disc is geared down a thousand times. This is for understanding. It is not the design of a recording chain.

Topics

sampling, aliasing, nyquist, sampling theorem, sample rate, anti-alias filter, adc, dac, quantisation, quantization, bits, folding, spectrum, butterworth, low-pass filter, stroboscope, signals and systems, digital signal processing