Helmholtz and cavity resonances