the changing of the speed of a wave