From bbc84bbe8a9258ca85fe04d24ac3a0c502659739 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Feb 2026 18:27:35 +0000 Subject: [PATCH] Add Sound Frequency Explorer interactive tool Single-page HTML app for generating pure tones and visualizing waveforms. Features Web Audio API oscillator with sine/square/triangle/sawtooth waves, logarithmic frequency slider (20Hz-20kHz), real-time oscilloscope canvas, musical note detection with cents offset, and preset frequency buttons. Dark theme with neon-green oscilloscope aesthetic. https://claude.ai/code/session_01FYbsNrY9tYcLuchHEox81C --- physics/sound-explorer.html | 868 ++++++++++++++++++++++++++++++++++++ 1 file changed, 868 insertions(+) create mode 100644 physics/sound-explorer.html diff --git a/physics/sound-explorer.html b/physics/sound-explorer.html new file mode 100644 index 0000000..cf3b84c --- /dev/null +++ b/physics/sound-explorer.html @@ -0,0 +1,868 @@ + + + + + + Sound Frequency Explorer + + + + + + +
+

Sound Frequency Explorer

+

Generate pure tones and visualize waveforms in real time

+ + +
+ +
+
+ 440 + Hz +
+
+ A4 (concert pitch) +
+
+
+ + +
+
+ Frequency + + +
+ +
+ Volume + + 30% +
+ +
+ Waveform +
+ + + + +
+
+ +
+ +
+
+ + +
+
Presets
+
+ + + + +
+
+ + +
+ About Sound Frequencies +
+

Frequency

+

Frequency is the number of vibrations (cycles) per second, measured in Hertz (Hz). Higher frequencies produce higher-pitched sounds. The human ear can typically detect sounds between 20 Hz and 20,000 Hz, though the upper limit decreases with age.

+ +

Amplitude (Volume)

+

Amplitude determines how loud a sound is. It represents the strength of the air pressure variations in a sound wave. In this tool, volume controls the gain applied to the generated oscillator signal.

+ +

Waveform Shapes

+
    +
  • Sine — The purest tone with no harmonics. Smooth and mellow. This is the fundamental building block of all other waveforms.
  • +
  • Square — Contains odd harmonics, producing a hollow, buzzy sound. Common in early video game music and synthesizers.
  • +
  • Triangle — Contains odd harmonics at reduced amplitudes, sounding softer than a square wave but brighter than a sine wave.
  • +
  • Sawtooth — Contains all harmonics (odd and even), creating a bright, buzzy, rich tone. Often used for string-like synth sounds.
  • +
+ +

Musical Notes

+

Musical notes correspond to specific frequencies. The standard reference pitch is A4 = 440 Hz. Each semitone is a frequency ratio of 21/12 (approximately 1.0595). An octave doubles the frequency. The "cents" value shown indicates how far the current frequency is from the nearest note — 100 cents equals one semitone.

+
+
+
+ + + +