The pan flute or pan pipe is an ancient musical instrument based on the principle of the closed tube, consisting usually of five or more pipes of gradually increasing length. The pan flute has long been popular as a folk instrument, and is considered the first mouth organ, ancestor of both the pipe organ and the harmonica. The pipes of the pan flute are typically made from bamboo or giant cane; other materials used include wood, plastic, metal and ivory.