What this lab shows
A transmitter puts a sound a few kilohertz wide onto a carrier, and the receiver takes it off again. The ways of doing it differ in bandwidth, in how much of the power carries the sound, and in how they cope with a receiver set a little wrong. Here one sound goes through all of them, so the differences can be heard and measured side by side.
Things to try
- Choose AM and Tone, then raise Modulation depth past 100%. In Waveforms the envelope hits zero and flattens, the spectrum grows extra lines at two and three times the tone frequency (splatter), and the received tone turns harsh.
- Choose USB with the Melody or your voice and set the tuning offset to +200 Hz. Every note comes out 200 Hz lower, so the tune goes out of key: the same number of hertz comes off every frequency. Try −200 Hz, then LSB, where the shift goes the other way.
- Open Channel and switch on Two-path fading with AM. Now and then the notch sweeps through the carrier and the sound distorts and fades. Switch the transmitter to USB: only the frequencies under the notch dip, and speech stays readable.
- Choose FM, set Deviation to 5000 Hz and lower Signal to noise step by step. FM stays much cleaner than AM; near 14 dB the first clicks appear and by 10 dB it crackles all the time, while AM only gets noisier gradually.
- Choose CW and set the receiver to “AM, envelope detector”: you hear only thumps where the key closes and opens. Set the receiver to CW and the carrier becomes a 700 Hz tone whose pitch follows the tuning offset.
What to look for
- In AM each sideband of a single tone is m/2 times the carrier, where m is the modulation depth. Even at 100% two thirds of the power stay in the carrier, which carries no sound: the Carrier readout shows 67%.
- DSB sends the two sidebands without the carrier, and SSB keeps only one, so speech needs about 3 kHz instead of 6 kHz.
- FM keeps the amplitude constant and spreads into lines spaced by the tone frequency, sized by the Bessel functions of the modulation index β = Δf / f. At β ≈ 2.405 the carrier line vanishes: with a 1000 Hz tone, at a deviation of about 2400 Hz.
- In the IQ plane AM is a line along I, DSB a line through the centre, SSB with one tone a circle and FM an arc of a circle. Detuned, the RX picture turns at the offset frequency.
How it works
Everything runs at the sample rate of your sound output, and the “radio frequency” is a quarter of that rate: 12 kHz at 48 kHz, 11.025 kHz at 44.1 kHz. The spectrum is labelled in kilohertz from that carrier. Real stations sit at megahertz, but the arithmetic of modulation is the same.
Transmitter
The sound x(t), scaled to a peak of 1, makes a complex baseband signal z(t), and the transmitted wave is
s(t) = Re{ z(t) · ej2πfct }
- AM: z = A[1 + m·x(t)], set to zero where the bracket would go below zero (over-modulation).
- DSB: z = x(t).
- SSB: z = x(t) ± j·x̂(t), where x̂ is the Hilbert transform of the sound, a copy with every frequency shifted by 90°. The page makes it with a 383-tap filter. Adding the two branches cancels one sideband: plus gives the upper, minus the lower. This is the phasing method that Ralph Hartley patented in 1928.
- FM: z = ejφ(t), where the phase φ advances by 2π·Δf·x(t) radians per second.
- CW: z is the key, 0 or 1, with 5 ms raised-cosine edges so that the keying does not click across the band. The test text is “VVV CQ TEST” in Morse.
The microphone and files pass a 250 to 2900 Hz speech filter first, as in a real transmitter.
Channel
Noise is white Gaussian noise added to the wave. Two-path fading adds an echo, z(t) + a·ejθ(t)·z(t − τ), whose phase θ turns slowly: that cuts notches 1/τ apart which drift across the signal (with a 1 ms echo, one every kilohertz). The second station is an AM signal playing its own tune.
Receiver
The receiver multiplies the wave by its own oscillator at the carrier frequency plus the tuning offset and passes the result through a 2049-tap filter of the chosen width: above the oscillator for USB and CW, below it for LSB, on both sides otherwise. Then it detects:
- Envelope detector: the size of the filtered signal, |b|, as a diode detector does.
- Product detector: the real part, Re b, which is what mixing with a beat frequency oscillator (BFO) gives. An offset of Δ hertz moves every audio frequency by Δ hertz. In CW mode the BFO sits 700 Hz below the dial, so a carrier on the dial is heard as a 700 Hz tone.
- FM discriminator: how fast the phase of b turns, which is the instantaneous frequency.
An automatic gain control evens out the loudness, as in a real receiver.
Bandwidth
The “99% of power” readout is the usual definition of occupied bandwidth: 0.5% of the power lies below the band and 0.5% above it. For FM, Carson's rule gives a quick estimate,
B ≈ 2(Δf + fmax)
which keeps about 98% of the power. It is named after John Renshaw Carson, whose 1922 paper on the theory of modulation it comes from.
Limits of the model
- The carrier is at 12 kHz, so there is no aerial, no ionosphere and no wideband FM: broadcast FM with 75 kHz deviation would not fit, and the deviation stops at 5 kHz, as in narrow-band FM speech radio.
- The receiver's oscillator is locked to the transmitter whenever the offset is 0 Hz. A real one never is. Set DSB and an offset of 0.5 Hz to hear the sound swell and vanish once a second: that is why DSB without a carrier is hard to receive.
- Over-modulated AM is only cut off at zero; a real transmitter also distorts on the positive peaks.
- There is no FM pre-emphasis, squelch or noise blanker.
- Fading has two paths with a fixed delay; short-wave signals arrive over more paths. The noise is steady, without static crashes.
Controls
- Buttons: Play or Stop (or Record 5 s and play, Start microphone, Open audio file when the source needs it first); Received or Original sound; the tabs above the canvas choose the lower view, TX or RX the IQ side; Key sends Morse while held. On a phone, a strip under the header repeats the spectrum while you scroll through the panels; tap it to go back up.
- Sliders: tone, modulation depth, deviation, Morse speed, tuning offset, filter width, the channel and volume, which a limiter keeps about 6 dB below full scale. The Exact box takes an offset to 0.1 Hz.
- Mouse: click or drag on the spectrum to tune the receiver there.
- Touch: tap the spectrum, or slide sideways on it, to tune; a vertical swipe scrolls.
- Keyboard: With the canvas focused, Space plays or stops, ← and → tune by 10 Hz (with Shift by 100 Hz), 0 sets the offset to 0 Hz, V changes the lower view and O switches between received and original sound. In Hand key mode, hold K to key the transmitter.
Frequently asked questions
Why does a receiver need to know USB or LSB?
Because the two sidebands are mirror images. A receiver in LSB looks below its dial, where a USB signal has nothing. Tune the dial 3 kHz above the carrier and the signal falls into the filter upside down: with Two tones sent in USB, 700 Hz comes out at 2300 Hz and 1900 Hz at 1100 Hz. Data modes sent through SSB transmitters turn over the same way: the mark and space tones of radioteletype swap places, so the text is garbage until the sideband is right or the decoder is set to reverse.
Sources
- Wikipedia contributors (accessed 14 November 2026). Carson bandwidth rule. The rule 2(Δf + fm), Carson's 1922 paper and the 98% of the power inside it.
- Hartley R V L (1928). Modulation system. US patent 1,666,206, filed 15 January 1925, granted 17 April 1928. One sideband from two modulators whose carriers and signals are shifted by 90°, so that the other sideband cancels.
- OEIS Foundation (accessed 14 November 2026). A115368: Decimal expansion of first zero of the Bessel function J0(z), 2.40482555769…, the modulation index at which the FM carrier vanishes.