The panpipe was widespread in Neolithic and later cultures, especially in Melanesia and pre-Columbian South America. In the Greek legend of Pan the invention of the instrument is ascribed to the nymph Syrinx. In Europe it has been mainly a shepherd's instrument and has so endured in the Pyrenees.