How is Sound Produced?
In physics, sound is a mechanical wave that results from the back-and-forth vibration of the particles of the medium through which the sound wave is moving. If a medium (like air, water, or solid wood) is not present, sound cannot travel—which is why there is no sound in the vacuum of space.
When an object vibrates, it causes the surrounding air molecules to compress and expand rapidly. These pressure waves travel outward until they reach our ears, where our eardrums translate the vibrations into the sounds we hear.
Examples of Vibration You Can Simulate
- Vibrating String: Like a guitar, violin, or veena. Plucking a stretched string creates a transverse wave that vibrates at a specific frequency (pitch).
- Drum Membrane: Striking a taut surface creates complex 2D radial waves. The larger and looser the drum, the lower the frequency (bass) of the sound produced.
- Tuning Fork: Striking a metal tuning fork produces a very pure, mathematical sine wave. For example, an A4 tuning fork vibrates exactly 440 times per second (440Hz).
- String-and-Cup Telephone: When you speak into a cup, your vocal cords vibrate the air, which vibrates the cup, which pulls on a taut string, transferring the sound over a distance mechanically!
Frequently Asked Questions
Why do I need to click first?
Modern web browsers automatically block websites from playing audio until the user interacts with the page. You must click the canvas area at least once to "unlock" the Web Audio API synthesizer.
Are these real sounds?
The sounds in this simulator are generated in real-time mathematically using your browser's audio synthesizer oscillators, rather than playing back pre-recorded MP3 files.