The pipe organ is a musical instrument that produces sound by driving pressurized air (called wind) through organ pipes selected via a keyboard. Because each pipe produces a single pitch, the pipes are provided in sets called ranks, each of which has a common timbre and volume throughout the keyboard compass. Most organs have multiple ranks of pipes of differing timbre, pitch, and volume that the player can employ singly or in combination through the use of controls called stops.
A pipe organ has one or more keyboards played by the hands (called manuals), and a pedalboard played by the feet; each keyboard has its own group of stops. The keyboard(s), pedalboard, and stops are housed in the organ's console. The organ's continuous supply of wind allows it to sustain notes for as long as the corresponding keys are depressed, unlike the piano and harpsichord whose sound begins to dissipate immediately after it is played. The smallest portable pipe organs may have only one or two dozen pipes and one manual; the largest may have over 20,000 pipes and seven manuals. A list of some of the most notable and largest pipe organs in the world can be viewed at List of pipe organs.
The origins of the pipe organ can be traced back to the water organ in Ancient Greece, in the 3rd century BC, it which the wind supply was created with water pressure. By the 6th or 7th century AD, bellows were used to supply organs with wind. Beginning in the 12th century, the organ began to evolve into a complex instrument capable of producing different timbres. A pipe organ with "great leaden pipes" was sent to the West by the Byzantine emperor Constantine V as a gift to Pepin the Short, King of the Franks, in 757. Pepin's son Charlemagne requested a similar organ for his chapel in Aachen in 812, beginning the pipe organ's establishment in Western church music. By the 17th century, most of the sounds available on the modern classical organ had been developed. From that time, the pipe organ was the most complex man-made device - a distinction it retained until it was displaced by the telephone exchange in the late 19th century.