Step 1: Understanding the Concept
Loudness is the physiological sensation of the strength of sound and depends on intensity (amplitude). Pitch is the sensation of how shrill the sound is and depends on frequency.
Step 2: Check the Options
Velocity does not set loudness or pitch of a given note, so options A and B are out. Number of harmonics decides quality (timbre), not loudness.
Step 3: Conclusion
Loudness depends on intensity and pitch depends on frequency, option D.
Final Answer:
Loudness depends on intensity and pitch depends on frequency.
\[ \boxed{\text{(D) }\text{intensity and frequency}} \]