Lesson 6 of 15

Decibel Level

The Decibel Scale

Human hearing spans an enormous range — from a pin drop to a jet engine. The decibel (dB) scale compresses this using a logarithm:

ight)$$ - **L** — sound pressure level (dB) - **I** — intensity (W/m²) - $I_0 = 10^{-12}$ W/m² — threshold of hearing (reference level) ### Why Logarithm? Each +10 dB represents a $10 imes$ increase in intensity. A 60 dB conversation is $10^6$ times louder than the quietest audible sound. | I (W/m²) | L (dB) | Example | |----------|--------|---------| | $10^{-12}$ | **0** | threshold of hearing | | $10^{-6}$ | **60** | normal conversation | | $10^{-2}$ | **100** | underground train | | 1 | **120** | threshold of pain | ### Your Task Implement `soundLevel(I)` returning the level in dB. Run the code — you'll hear a tone at a level corresponding to 60 dB.
Web Audio API loading...
Loading...
Click "Run" to execute your code.