 From the point of view of the pitcher, the frequency remains constant (whether he's throwing balls or transmitting microwaves).Since with electromagnetic radiation like microwaves or with sound, frequency is inversely proportional to wavelength, the wavelength of the waves is also affected.Thus, the relative difference in velocity between a source and an observer is what gives rise to the Doppler effect.