if the pitch of the note becomes higher
That tells us that the frequency of the sound wave increased, the period decreased, and the wavelength decreased. The guitar player may be twanging a higher string, OR he may be playing the same note but started walking toward us.