Lesson 9 of 15
String Harmonics
Standing Waves on a String
A stretched string fixed at both ends supports standing waves. Only wavelengths that fit a whole number of half-wavelengths between the endpoints are allowed:
f_n = rac{nv}{2L}
- n — harmonic number (1, 2, 3 …)
- v — wave speed along the string (m/s)
- L — string length (m)
- — frequency of the nth harmonic (Hz)
Harmonic Series
is the fundamental (lowest pitch). Higher harmonics are integer multiples — the tone colour (timbre) of an instrument depends on how much energy each harmonic carries.
| n | (343 m/s, L=1 m) |
|---|---|
| 1 | 171.5000 Hz |
| 2 | 343.0000 Hz |
| 3 | 514.5000 Hz |
Your Task
Implement stringHarmonic(n, v, L) returning the frequency of the nth harmonic.
Run the code to hear the fundamental and the second harmonic of a 1-metre string.
Web Audio API loading...
Loading...
Click "Run" to execute your code.