The pitch of a sound is a function of the sound wave's _____, whereas the loudness of a sound is a function of the sound wave's