Standing waves
Waves reflecting back and forth between fixed ends interfere into a standing wave with fixed nodes and antinodes, and only wavelengths that fit the length, $\lambda_n = \frac{2L}{n}$ on a string or in an open pipe, set up, which is why instruments play their particular notes.
From AP Physics 2.