Wavelength and frequency can change independently but only when the speed of the wave also changes. Remember that the equation is λ = v/f , where v is a constant speed. Here, you can see that the frequency can stay the same while the wavelength changes if and only if "v" changes.