Answer
Pitch depends on the frequency of the sound wave.
Work Step by Step
Pitch does not depend on loudness or quality. A loud note just sounds louder, not higher or lower in pitch. A middle C played on a piano or on a banjo has a different timbre, but the same pitch.
This is discussed on page 393.