Get AI summaries of any video or article — Sign up free
Tutorial: creating the sound of hydrogen thumbnail

Tutorial: creating the sound of hydrogen

minutephysics·
5 min read

Based on minutephysics's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Use Mathematica’s play to synthesize audio by summing sine waves over time (e.g., t from 0 to 3 seconds).

Briefing

Creating the sound of hydrogen comes down to turning hydrogen’s emission spectrum into a set of audio frequencies and amplitudes. Instead of stacking harmonics like a “violin,” the method uses the Rydberg formula to generate the spectral line frequencies for specific hydrogen series (Lyman and Balmer), then synthesizes a waveform by summing sine waves at those frequencies. The result is a “pipe-like” squiggly tone that resembles the iconic hydrogen sound, and it gets closer to the original when multiple series are combined or when real measured spectral data is used.

The tutorial starts with basic sound synthesis in Mathematica using the play command, demonstrating that a single sine wave (e.g., 440 Hz) produces a simple beep, while changing frequency (880 Hz) shifts pitch an octave higher. It then shows how more complex, less boring tones can be built by summing sine waves. A first attempt mimics an instrument string by using the harmonic series: summing sinusoids whose frequencies are scaled by n (from 1 to 10). That produces a harsh buzz because real strings have weaker higher harmonics, so the amplitude of each partial is modulated by 1/n. Adjusting the sample rate upward (from Mathematica’s default 8000 Hz to 16,000–32,000 Hz) improves fidelity.

For hydrogen, the harmonic-series trick is replaced with atomic physics. The spectral lines follow the Rydberg formula, expressed as (1/n1^2) − (1/n2^2), which determines where emission frequencies appear. For the Lyman series, the tutorial constructs a sum of sine waves using the Lyman transition structure, starting at n = 2 (since the Lyman series begins there) and summing up to n = 10 for practicality. The waveform is time-sampled over 0 to 3 seconds and scaled to an audible base frequency (using 440 as a reference multiplier), producing a squiggly sound that already resembles the hydrogen tone.

To add more low-end content, the tutorial then incorporates the Balmer series. Using the Balmer transition (with the fixed 1/2^2 term, i.e., 1/4) and shifting the summation index so it starts at n = 3, the synthesized audio becomes deeper and closer to the original hydrogen sound. The closest match comes from abandoning purely theoretical line positions and instead using experimental measurements: the tutorial pulls hydrogen’s spectrum from the NIST Atomic Spectra Database, including the relative brightness (amplitudes) of each spectral line. After normalizing the downloaded data and mapping it into Mathematica’s synthesis pipeline, the resulting audio aligns closely with the “sound of hydrogen” from the earlier video.

Overall, the core insight is that hydrogen’s audio character isn’t a special trick—it’s a direct sonification of spectral lines, where both frequency spacing (from the Rydberg formula or measured data) and line strength (amplitude) shape the final timbre.

Cornell Notes

The “sound of hydrogen” can be synthesized by converting hydrogen’s spectral lines into audio frequencies and summing sine waves. A basic approach uses the Rydberg formula to generate the Lyman series (starting at n = 2) and synthesizes a waveform over a few seconds, producing a squiggly tone. Adding the Balmer series (starting at n = 3 with the 1/4 term) increases the low-frequency content and makes the result closer to the original. The best match comes from using real measured spectral data from the NIST Atomic Spectra Database, including the relative amplitudes of spectral lines, then normalizing and feeding those values into the synthesis.

How does the tutorial build sound from simple math before using hydrogen-specific physics?

It begins with Mathematica’s play command to play a sine wave at a chosen frequency (e.g., 440 Hz from t = 0 to 3 seconds). It then demonstrates pitch changes by using 880 Hz (an octave higher). To create richer tones, it sums multiple sine waves using the harmonic series—scaling frequency by n and summing from n = 1 to 10. Because real strings have weaker higher harmonics, it applies amplitude weighting like 1/n to reduce the contribution of higher partials. It also suggests increasing sample rate (from 8000 Hz up to 16,000–32,000 Hz) for better fidelity.

Why does the harmonic-series method sound like a “crappy violin,” and what fixes it?

The harmonic-series sum produces a harsh buzz because it treats higher harmonics as equally strong as lower ones. Real instruments have decreasing strength at higher harmonics, so the tutorial modulates each sine wave’s amplitude by about 1/n. That weighting makes the resulting timbre smoother and more instrument-like, though it still isn’t hydrogen-like.

What replaces the harmonic series when synthesizing hydrogen’s sound?

Hydrogen’s spectral lines replace the harmonic series. The tutorial uses the Rydberg formula, written as (1/n1^2) − (1/n2^2), to determine where emission frequencies occur. It then generates a sum of sine waves whose frequencies are derived from those spectral-line relationships, scaled to an audible reference (using 440 as a multiplier) and summed over a finite range (e.g., n = 2 to 10) to keep computation manageable.

How are the Lyman and Balmer series handled differently in the synthesis?

For the Lyman series, the tutorial sums starting at n = 2 because that’s where the Lyman series begins, and it uses the appropriate transition structure in the Rydberg-based expression. For the Balmer series, it uses the fixed 1/2^2 term (1/4) and shifts the index so the summation starts at n = 3 (since the Balmer series begins there in this setup). Adding Balmer content deepens the synthesized tone and brings it closer to the target hydrogen sound.

Why does using NIST experimental data improve the match to the original hydrogen sound?

The Rydberg formula gives the theoretical spectral line structure, but the tutorial’s closest result comes from using the NIST Atomic Spectra Database’s experimentally obtained hydrogen spectrum. That dataset includes not only the line positions (frequencies) but also the relative amplitudes—how bright each line is. By downloading, normalizing, and using both frequency and amplitude data in Mathematica, the synthesized audio better matches the characteristic timbre.

Review Questions

  1. If you were to synthesize hydrogen using only the Lyman series, what change would you make to add more bass content?
  2. What role does amplitude weighting (like 1/n for harmonics) play in shaping timbre, and how is an analogous idea handled for hydrogen using spectral line brightness?
  3. Why does summing to a finite n (e.g., up to 10) matter for computation, and what would happen if the sum were extended much further?

Key Points

  1. 1

    Use Mathematica’s play to synthesize audio by summing sine waves over time (e.g., t from 0 to 3 seconds).

  2. 2

    A harmonic-series approach can mimic string-like sounds, but it needs amplitude roll-off (e.g., weighting by 1/n) to avoid a harsh buzz.

  3. 3

    Hydrogen’s tone comes from sonifying atomic spectral lines, not musical harmonics, using the Rydberg formula (1/n1^2) − (1/n2^2).

  4. 4

    Generate the Lyman series by summing from n = 2 upward; generate the Balmer series using the 1/4 term and starting at n = 3 for the chosen indexing.

  5. 5

    The closest match uses the NIST Atomic Spectra Database’s measured hydrogen spectrum, including relative line amplitudes, then normalizes and maps that data into the synthesis.

  6. 6

    Increase sample rate (e.g., 16,000–32,000 Hz instead of 8000 Hz) to improve audio fidelity when rendering the waveform.

Highlights

The “hydrogen sound” is essentially a spectral sonification: each hydrogen spectral line becomes a sine-wave component, with both frequency and brightness shaping the timbre.
Switching from the harmonic series to the Rydberg formula is the key physics change that turns a generic buzz into a hydrogen-like squiggle tone.
Adding the Balmer series deepens the synthesized sound, making it closer to the original hydrogen audio.
Using the NIST Atomic Spectra Database (measured line strengths, not just theoretical spacing) produces the most accurate result.

Topics

  • Sound Synthesis
  • Hydrogen Spectrum
  • Rydberg Formula
  • Lyman Series
  • Balmer Series

Mentioned

  • NIST