When an Overtone Pretends to Be Lower
A steady drone gives me time to move my tongue and change the shape of my mouth. As the vowel changes, different overtones become easier to hear. I wondered what would happen if a recorder listened with far too few samples per second.
Suppose it takes 1,000 samples a second. A 300 Hz tone and a 700 Hz tone then produce the same sequence of sample values, provided their phases line up. The higher tone has acquired an alias: in the sampled data, it looks like the lower one.
Here’s the experiment in Erlang. Save it as alias.erl and run it with escript alias.erl:
-module(alias).
-export([main/1]).
main(_) ->
Rate = 1000,
lists:foreach(fun(N) ->
Low = math:cos(2 * math:pi() * 300 * N / Rate),
High = math:cos(2 * math:pi() * 700 * N / Rate),
io:format("~2B: ~7.3f ~7.3f~n", [N, Low, High])
end, lists:seq(0, 9)).
JavaScript lets us put the same two tones side by side. Run this with node alias.js:
const rate = 1000;
const sample = (frequency, n) =>
Math.cos(2 * Math.PI * frequency * n / rate);
for (let n = 0; n < 10; n++) {
const low = sample(300, n).toFixed(3);
const high = sample(700, n).toFixed(3);
console.log(`${n}: ${low} ${high}`);
}
Both columns show the same values to three decimal places. The continuous waves differ between samples, but those moments never reach the program. Once sampled this way, the two tones cannot be distinguished from these values alone.
The sampling theorem gives a useful boundary: to represent frequencies up to a given limit without this ambiguity, the sampling rate must be greater than twice that limit. A real recorder also uses an anti-alias filter before sampling to reduce frequencies above its usable range. That matters for singing: shaping a vowel emphasizes harmonics already present in the voice, and those upper harmonics need room in the recording too.