When you change the temperature of the air inside the instrument, you are changing the speed of sound in the air. This causes the length of the standing wave to change, which in turn changes the pitch of the note that you are playing.
Hot air travels faster than cold air. This means that when you play a wind instrument in warm weather, the pitch of the notes will be higher than when you play in cold weather.