Waves enter via one of the openings of the tube and exit via the other. In between entering and exiting, the wave passes through the length of the tube, encounters the aperture, enters the resonance chamber, bounces back, exits the chamber, and finally exits the tube.