A string vibrating at a high frequency produces a high-pitched sound. Pitch is determined by the number of vibrations per second (frequency): faster vibration = higher frequency = higher pitch. This principle applies to all string instruments—guitar, violin, piano, harp, etc.