If the sound wave transitions from one medium to another which transition would result in a shortening of wavelength of a sound wave

The transition from a less dense medium to a more dense medium would result in a shortening of the wavelength of a sound wave.