See How Things Work

The Banū Mūsā's programmable flute player

Unit
Dreams of Thinking Machines
Part
1. Automata
Lesson
1.3

In ninth-century Baghdad, three brothers known as the Banū Mūsā described a water-driven instrument that played a reed-pipe by itself, any melody its maker wished. The melody was set as teeth on a turning cylinder. This lesson reads their treatise, explains how the cylinder played, and asks in what sense it was a program.

The Banū Mūsā

The Banū Mūsā, “sons of Mūsā”, were three brothers, Muḥammad, Aḥmad and al-Ḥasan, sons of Mūsā ibn Shākir; they were born in Baghdad at the beginning of the ninth century.⁠[1][2] The caliph al-Maʾmūn (who ruled from 813 to 833) brought them into the House of Wisdom, the academy of science he had founded in Baghdad, where Greek philosophical and scientific works were translated.⁠[3][4]

Their favorite sciences were said to be geometry, mechanics, music and astronomy.⁠[5] Muḥammad worked mainly on geometry and astronomy, al-Ḥasan on geometry and Aḥmad on mechanics;⁠[6] Aḥmad wrote a treatise On Mechanical Devices, which describes pneumatic devices.⁠[7]

The treatise and how we know it

A separate treatise has come down under their name: The Instrument which Plays by Itself (in Farmer’s transliteration of the Arabic, al-ālat illatī tuzammir binafsihā). Its translator thought it might be the work of Aḥmad.⁠[8] It survives in a single copy, made in the twelfth century and kept in Beirut.⁠[9][10] Its Arabic text was printed with notes by Maurice Collangettes, and H. G. Farmer published a complete English translation in 1931.⁠[11] None of the treatise’s diagrams survives, and the letters it uses to name the parts are not always correct.⁠[12]

The treatise opens by stating its aim, in Farmer’s translation (without the Arabic words he adds in brackets):

“We wish to explain how an instrument is made which plays by itself continuously in whatever melody we wish”.⁠[13]

The same sentence goes on to promise a slow or a quick rhythm, and a change from one melody to another whenever the maker wishes.⁠[13]

Caution.

Even reference works can misdescribe a text that few have read. The Dictionary of Scientific Biography lists the treatise as a work “on musical theory”.⁠[10] Farmer’s translation shows a description of a machine: its water supply, its pipe, its levers and its cylinder, with their sizes.⁠[14][15]

Caution.

A treatise describes; it does not prove that the machine was built. A modern reconstruction, presented by the ZKM Center for Art and Media in Karlsruhe, blows the pipe with a compressor instead of the original water-driven mechanism.⁠[16]

How the instrument plays

The instrument needs a steady wind, so the treatise first describes how to make one: water flows into two chambers in turn and drives the air out of them through a pipe.⁠[17][18] The wind blows a reed-pipe (surnāy) with nine holes. Eight of them are closed by pallets, small covers on the ends of levers; the ninth has no pallet, because when the eight are shut the ninth hole gives its note.⁠[19] Each lever is heavier at the pallet’s end, so the pallet closes by itself; when the other end is pressed down, the pallet rises and the hole gives its note.⁠[20]

The levers are worked by a cylinder about 27 cm across, at least as long as the row of eight holes. On it sit eight discs, one opposite each lever, and on the discs small teeth shaped as arcs of a circle.⁠[14][21] A great water-wheel turns the cylinder through cogged wheels.⁠[15] As the cylinder turns, a tooth presses the end of a lever, its hole opens, and the note sounds until the tooth has passed; then another tooth meets another lever, and the next note sounds.⁠[22] One note sounds at a time, while the other seven pallets stay closed.⁠[23] A modern account sums up the principle: the flute’s melody was encoded on rotating cylinders by raised pins that worked levers to open or close the flute’s holes.⁠[24]

(a) one disc and its lever, seen from the endcylinder, turningteethDJ (pivot)Bpallet (lifted)reed-pipe
(b) the chain:waterwater-wheelcogscylinderteethleverspalletsholes
The Banū Mūsā’s automatic instrument (our schematic drawing after the treatise’s words, not to scale; no diagram of the treatise survives). (a) Each of the eight holes has a pallet on a lever. The lever is heavier at the pallet’s end, so the pallet closes by itself; when a tooth on the turning cylinder presses the other end down, the pallet rises and the hole sounds until the tooth has passed. (b) Water falling on a water-wheel turns the cylinder through cogs; the teeth work the levers, the levers lift the pallets off the holes. A separate pair of water-driven chambers keeps a steady wind blowing into the pipe.⁠[12][15][20]
Definition (Pinned cylinder).

A pinned cylinder (also called a pegged cylinder) is a rotating cylinder whose raised pins, pegs or teeth, set around it, work levers one after another as it turns, and so control a machine in a fixed sequence.⁠[24][25]

The treatise explains how the teeth encode a melody. The number of teeth on a disc is the number of times that hole’s note occurs in the melody in one turn; the length of each tooth is the time the note lasts.⁠[26][27] A short melody takes a third or a half of a turn, a long one a whole turn;⁠[28] then the melody starts again, and the instrument repeats it until the water is cut off from the wheel.⁠[29] A cup that slowly fills and empties opens a second flow of water onto the wheel from time to time, so the melody alternately quickens and slows.⁠[30]

Example (Reading a cylinder).

One turn of a cylinder is divided into 6 equal beats. Disc 4 has a tooth over beats 1 to 3, disc 2 a tooth over beat 4, and no disc has a tooth over beats 5 and 6. What does one turn play?

  1. Beats 1–3: only the pallet of hole 4 is lifted, so hole 4 sounds for 3 beats.
  2. Beat 4: only hole 2 is open: hole 2 for 1 beat.
  3. Beats 5–6: all eight pallets are shut, so the ninth hole sounds, for 2 beats.⁠[19]
  4. Check: 3 + 1 + 2 = 6 beats, the whole turn.

Answer: hole 4 (3 beats), hole 2 (1 beat), the ninth hole (2 beats), and then the same again on the next turn.

Setting a melody on the cylinder

The Banū Mūsā give two ways to make a cylinder for a melody. In the first, the maker counts the beats of each note and sets on that note’s disc a tooth whose size is in proportion to the note’s share of the melody; if the melody does not fill a whole turn, it may use a half, a third, a quarter or any part of one.⁠[31] In the second, a player is recorded as he plays. A large drum covered with black wax turns evenly under eight levers, each tied by a string to one of the player’s fingers; whenever the player lifts a finger, its lever falls on the wax and marks it.⁠[32] From the marks the maker reads the length of every note, and then cuts the cylinder note for note.⁠[33]

A larger cylinder can hold more than one melody: half a turn can give one melody two or three times and the other half another melody;⁠[34] or a longer cylinder can be shifted along its axle by 27 cm, by a float or a cup that fills and empties, to bring the teeth of another melody under the levers, for three or four melodies in turn.⁠[35] The whole machine can be hidden inside the figure of a man, with the pipe at his mouth and the levers as his fingers.⁠[36]

123456789101112123456789beats of one turn →
One turn of a cylinder, unrolled (our diagram). Each row is the disc of one hole; a tooth is drawn in amber, and its length is the length of the note. Row 9 is not a disc: grey marks the beats where no tooth opens a pallet, so the ninth hole sounds.
Example (Setting a short melody twice).

Set this melody on a cylinder of 12 beats, twice in one turn: hole 6 for 2 beats, hole 3 for 1 beat, the ninth hole for 1 beat, hole 1 for 2 beats.

  1. The melody lasts 2 + 1 + 1 + 2 = 6 beats; two copies fill 6 + 6 = 12 beats, one whole turn.
  2. First copy. Hole 6 starts at beat 1 and lasts 2 beats: a tooth on disc 6 over beats 1–2. Hole 3 starts at 1 + 2 = 3: a tooth on disc 3 over beat 3. The ninth hole starts at 3 + 1 = 4: no tooth at all over beat 4. Hole 1 starts at 4 + 1 = 5: a tooth on disc 1 over beats 5–6.
  3. Second copy: the same teeth 6 beats later, over beats 7–8 (disc 6), 9 (disc 3), nothing at 10, and 11–12 (disc 1).
  4. Check: disc 6 has 2 teeth, disc 3 has 2, disc 1 has 2, as many as the times each note occurs in one turn.⁠[26]

Answer: as in the figure above. A melody of half a turn is played twice per turn, as the treatise allows.⁠[28][34]

Example (An edge case: can the instrument rest?).

A melody has a beat of silence in the middle. How can it be set on the cylinder?

  1. The wind blows continuously, so that the instrument can play continuously.⁠[13][17]
  2. The ninth hole has no pallet, so it is always open; it sounds whenever the other eight are shut.⁠[19]
  3. So a beat with no tooth is not silent: it plays the ninth hole’s note.

Answer: it cannot. A beat of silence is not among the instrument’s possibilities; the nearest the cylinder can do is the ninth hole’s note. A program can only say what its machine is able to do.

Example (A common mistake: two teeth at once).

Someone puts teeth on discs 2 and 5 over the same beat, hoping to hear two notes together. What does the pipe play in that beat?

  1. The treatise states the rule for a reed-pipe: a hole sounds when it is open and every hole above it, towards the mouthpiece, is shut; the note comes from the first open hole.⁠[37]
  2. Holes 2 and 5 are open. Hole 2 is nearer the mouthpiece, so it is the first open hole.
  3. So the pipe plays hole 2’s note; the tooth on disc 5 changes nothing.

Answer: only hole 2 sounds. A single pipe plays one note at a time, which is why the Banū Mūsā’s teeth open one hole at a time.⁠[23]

Game

Program the cylinder

Round
1
Score
0
Streak
0

Set teeth on the cylinder so that one turn plays this melody three times: it fills a third of a turn. Tap a cell to put a tooth on that disc at that beat (tap again to remove it). Then press Check.

The melody, to be set 3 times
hole 2 · 1 beathole 3 · 1 beathole 1 · 2 beats
123456789mouth
123456789101112
1
2
3
4
5
6
7
8
9

Rows 1–8: the discs that work the pallets of holes 1–8 (hole 1 is next to the mouthpiece). Row 9: the ninth hole has no pallet and sounds in every beat where all eight are shut (grey).⁠[19][27][37]

Historical note.

The treatise also says which note each hole gives, by comparing the holes with the frets of the lute; the translation’s editor renders the nine notes, from the ninth hole up to the first, roughly as F, G, A, B, C, D, E, F and G, with some doubt about the sixth.⁠[38] The game sounds the holes at these pitches, as an approximation for the ear.

Was it a program?

The lesson “Hero of Alexandria’s automata” defined a program in the broad sense: a sequence of operations decided in advance and recorded on a medium that serves as the machine’s memory.⁠[39] The Banū Mūsā’s cylinder fits that definition: the sequence of notes is decided before, the teeth record it, and the turning cylinder reads it.

A historian of automation sorts programs by how they can be changed: an internal program is fixed in the machine; an external one can be changed by hand, either modified in place or replaced; and a stored program can be handled entirely by the machine itself.⁠[40][41] By this classification she calls the Banū Mūsā’s program internal: they explain that several melodies can be put on one cylinder, but they do not, it seems, raise the possibility of modifying the cylinder or replacing it once the instrument is made.⁠[42][43]

Caution.

Was the flute player “the first programmable machine”? The sources support something narrower and more precise. The same historian states that the oldest known description of a pegged cylinder used to play a musical instrument automatically is the Banū Mūsā’s.⁠[42] The ZKM, which presents the reconstruction mentioned above, says that the treatise describes “a programmable universal instrument”, with a cylinder on which music is freely encoded.⁠[44] Whether that makes it the first programmable machine depends on what “programmable” means: Hero’s cord, some eight centuries older, was already a program in the broad sense, though one that had to be wound again for every show, and the Banū Mūsā’s melodies were fixed in the teeth of a cylinder made for them.⁠[43][45]

Example (Hero’s cord and the Banū Mūsā’s cylinder).

Compare the two programs: what does each record, how long does it last, and how is it changed?

  1. What is recorded: Hero’s cord records a sequence of movements (forward, back, pauses); the cylinder records a sequence of notes and their lengths.⁠[27]
  2. How long it lasts: the cord is used up in one show and must be wound again;⁠[45] the cylinder repeats its melody every turn as long as the water flows.⁠[29]
  3. How it is changed: the cord is rewound in a new order; a new melody needs a cylinder made for it, either a larger cylinder with several melodies or one that shifts to another set of teeth.⁠[34][35]

Answer: both are programs in the broad sense. The cylinder’s memory is lasting and repeats by itself; its melodies can be chosen when the cylinder is made, and the machine can even switch between several of them while it plays.

After the Banū Mūsā

In Europe, from the fourteenth century, cylinders of this kind rang church bells, and from the sixteenth century full carillons;⁠[46] around 1530 carillons were built with pegs that could be moved, so that the tunes could be changed,⁠[47] an external program in the classification above. Around 1650 Athanasius Kircher described an automatic hydraulic organ on a very similar principle to the Banū Mūsā’s.⁠[48]

Looking ahead.

The next lesson, “Al-Jazari’s Book of Knowledge of Ingenious Mechanical Devices”, continues the story of automata. Programs that are replaced rather than built in, punched cards, are the subject of “The Jacquard loom and punched cards”, in the part Programmable Machines of this unit.

Exercises

Exercise .

On a cylinder of 6 beats, disc 5 has a tooth over beats 1–2, disc 1 over beat 3, disc 8 over beat 6, and nothing else. Write the melody it plays.

▸ Show solution

Beats 1–2: hole 5. Beat 3: hole 1. Beats 4–5: the ninth hole (no tooth). Beat 6: hole 8. The melody: hole 5 (2 beats), hole 1 (1), ninth hole (2), hole 8 (1); 2 + 1 + 2 + 1 = 6 beats.

Exercise .

Set the melody “hole 2 for 1 beat, hole 7 for 2 beats, hole 4 for 1 beat” three times on a cylinder of 12 beats. How many teeth does each disc carry?

▸ Show solution

Hole 2 starts at beat 1 (1 beat): disc 2, beat 1. Hole 7 starts at beat 2 (2 beats): disc 7, beats 2–3. Hole 4 starts at 2 + 2 = 4 (1 beat): disc 4, beat 4. The melody fills 1 + 2 + 1 = 4 beats, so three copies fill 12: repeat the same teeth over beats 5–8 and 9–12. Each of discs 2, 7 and 4 carries 3 teeth.

Exercise .

In one beat, teeth open holes 3, 6 and 8 together. Which note sounds, and why?

▸ Show solution

Hole 3. It is the first open hole counting from the mouthpiece, and by the treatise’s rule the note goes out from the first open hole; holes 6 and 8 change nothing in that beat.

Exercise .

A cylinder has only eight discs, yet the instrument plays nine different notes. Explain.

▸ Show solution

Because the ninth hole is always open and sounds whenever the eight pallets are shut. In beats with no tooth the instrument still plays, the ninth hole’s note; no tooth is needed for that note, and none could be added, since the ninth hole has no pallet and no disc.

Exercise .

Is the Banū Mūsā’s cylinder a program? Is it internal, external or stored, in d’Udekem-Gevers’s classification? Explain.

▸ Show solution

It is a program in the broad sense: the sequence is decided in advance and recorded on a medium, the cylinder, that the machine reads as it turns.

In d’Udekem-Gevers’s classification it is internal: the melodies are fixed in the teeth when the cylinder is made, and the treatise does not consider changing the teeth or exchanging the cylinder afterwards. The carillons of about 1530 with movable pegs had external programs, changeable by hand.

Exercise .

Explain why the wax drum of the second method must turn evenly, and how its marks give both the order and the lengths of the notes.

▸ Show solution

The recording drum turns evenly, so equal lengths of wax pass in equal times. A finger lifted for 2 beats leaves a mark twice as long as one lifted for 1 beat. The maker measures the marks and cuts teeth of the same proportions on the discs: the length of a tooth is the length of its note. The order of the marks around the drum gives the order of the notes.

Summary

  1. The Banū Mūsā, three brothers working in ninth-century Baghdad under the patronage of the caliph al-Maʾmūn, wrote on geometry, astronomy and mechanics; a treatise under their name, The Instrument which Plays by Itself, survives in one twelfth-century copy and is known in English through Farmer’s translation of 1931.
  2. A water-driven wind blows a reed-pipe with nine holes; eight have pallets on levers, the ninth is always open and sounds whenever the eight are shut.
  3. A cylinder turned by a water-wheel carries eight discs with teeth; a tooth opens its hole while it passes, so the position of a tooth gives the moment of a note, its disc the hole, and its length the duration. The melody repeats every turn.
  4. Melodies were set by counting beats or by recording a player’s fingers on a turning wax drum; one cylinder could carry several melodies, and a shifting cylinder could change between them.
  5. The cylinder is a program in the broad sense, internal in d’Udekem-Gevers’s classification; it is the oldest known description of a pinned cylinder playing an instrument, and pinned cylinders later rang church bells and carillons and played organs.

Sources

  1. 1.
    J. al-Dabbagh, “Banū Mūsā, in Complete Dictionary of Scientific Biography (Charles Scribner’s Sons, 2008)”, MacTutor History of Mathematics Archive, University of St Andrews (PDF of the entry).
    “Three brothers—Muḥammad, Aḥmad, and al-Ḥasan —always known under the one name, which means “sons of Mūsā” (b. Baghdad, Iraq, beginning of ninth century; d. Baghdad. Muḥammad the eldest, d. January or February a.d. 873)”
    Used for: the three brothers, their name “sons of Mūsā”, and their birth in Baghdad at the beginning of the ninth century.
  2. 2.
    J. J. O’Connor and E. F. Robertson, “Banu Musa brothers”, MacTutor History of Mathematics Archive, University of St Andrews (November 1999).
    “The Bana Musa brothers were three brothers: Jafar Muhammad ibn Musa ibn Shakir, Ahmad ibn Musa ibn Shakir and al-Hasan ibn Musa ibn Shakir.”
    Used for: a second source for the three brothers and their father Mūsā ibn Shākir.
  3. 3.
    J. al-Dabbagh, “Banū Mūsā, in Complete Dictionary of Scientific Biography (Charles Scribner’s Sons, 2008)”, MacTutor History of Mathematics Archive, University of St Andrews (PDF of the entry).
    “Al-Maʾmūn recognized the mental ability of the brothers and enrolled them in the House of Wisdom—the first scientific institution in the Abbasid Empire and quite similar to the modern academy—which he himself had founded.”
    Used for: al-Maʾmūn bringing the brothers into the House of Wisdom, an academy he had founded; the sentence before gives his reign, 813–833.
  4. 4.
    J. J. O’Connor and E. F. Robertson, “Banu Musa brothers”, MacTutor History of Mathematics Archive, University of St Andrews (November 1999).
    “had founded an academy called the House of Wisdom where Greek philosophical and scientific works were translated.”
    Used for: the House of Wisdom in Baghdad, founded by al-Maʾmūn, where Greek works were translated (the sentence begins “Al-Ma'mun had continued the patronage of learning”).
  5. 5.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, p. 87 (the whole topic: pp. 85–88).
    “The author of the Fihrist (d. 995-6) says that the favourite sciences of the Banū Mūsā were geometry, mechanics, music, and astronomy.”
    Used for: the brothers’ favorite sciences, as reported by the author of the tenth-century Fihrist.
  6. 6.
    J. J. O’Connor and E. F. Robertson, “Banu Musa brothers”, MacTutor History of Mathematics Archive, University of St Andrews (November 1999).
    “Jafar Muhammad worked mainly on geometry and astronomy while Ahmad worked mainly on mechanics and al-Hasan worked mainly on geometry.”
    Used for: the brothers’ fields: Muḥammad and al-Ḥasan geometry, Aḥmad mechanics.
  7. 7.
    J. al-Dabbagh, “Banū Mūsā, in Complete Dictionary of Scientific Biography (Charles Scribner’s Sons, 2008)”, MacTutor History of Mathematics Archive, University of St Andrews (PDF of the entry).
    “(4) On Mechanical Devices (or On Mechanics). This treatise on pneumatic devices was written by Aḥmad.”
    Used for: Aḥmad’s treatise on mechanical devices, a treatise on pneumatic devices.
  8. 8.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, p. 87 (the whole topic: pp. 85–88).
    “The treatise on The Instrument which Plays by Itself that has come down to us under the name of the Banū Mūsā may possibly have come from the hand of Aḥmad.”
    Used for: the treatise on the self-playing instrument, handed down under the brothers’ name, possibly by Aḥmad (its Arabic title, al-ālat illatī tuzammir binafsihā, is given on pp. 85–87).
  9. 9.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, p. 87 (the whole topic: pp. 85–88).
    “appears to be a solitary exemplar The copy dates from the twelfth century”
    Used for: the single surviving copy, of the twelfth century; the sentence names its place, a college library of the Orthodox Greek Church at Beirut (Farmer’s “Bairūt”).
  10. 10.
    J. al-Dabbagh, “Banū Mūsā, in Complete Dictionary of Scientific Biography (Charles Scribner’s Sons, 2008)”, MacTutor History of Mathematics Archive, University of St Andrews (PDF of the entry).
    “(5) Book on the Description of the Instrument Which Sounds by Itself. This work is on musical theory. A manuscript is in Beirut.”
    Used for: the Dictionary of Scientific Biography’s description of the treatise as a work on musical theory; a second source for the manuscript in Beirut.
  11. 11.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, p. 88 (the whole topic: pp. 87–88).
    “with an introduction and explanatory notes by the late Reverend Professor Maurice Collangettes. The work is of such great interest, that a complete translation is given here.”
    Used for: the Arabic text printed (in the journal al-Mashriq, as the sentence begins) with notes by Maurice Collangettes, and Farmer’s complete translation (this book, 1931).
  12. 12.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, p. 88 (the whole topic: pp. 87–88).
    “Unfortunately, not a solitary diagram has been preserved in the Bairūt MS., and even the figures mentioned are not always correct.”
    Used for: no diagram of the treatise survives (the figures of this lesson are our own), and the letters (“figures (alphabetical)”, as the sentence before calls them) used to name the parts are not always correct.
  13. 13.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 88 (the whole topic: pp. 88–90).
    “We wish to explain how an instrument (āla) is made which plays by itself continuously in whatever melody (laḥn) we wish”
    Used for: the opening statement of the treatise, quoted without the Arabic words; the sentence goes on to promise a slow or a quick rhythm and a change from melody to melody at will.
  14. 14.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 100 (the whole topic: pp. 98–103).
    “its length being according to the distance in which are the eight holes in the ‘organ-pipe’ (surnāy) or rather greater. And the diameter is 27 cm. (= 1 shibr) or a little more.”
    Used for: the cylinder (barbakh, as the sentence begins), about 27 cm across and at least as long as the row of eight holes.
  15. 15.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 103 (the whole topic: pp. 103).
    “We make a great water-wheel of which the diameter is 67.5 cm. (= 2½ shibr)”
    Used for: the great water-wheel that turns the cylinder; the passage continues: a wheel “furnished with cogs” on the end of the cylinder meets a small cogged wheel turned by the water-wheel.
  16. 16.
    “Automatische hydraulische Orgel der Banū Mūsā ibn Shākir”, ZKM | Center for Art and Media Karlsruhe, collection.
    “Originally, the player was driven by water wheels and included a hydraulic-pneumatic mechanism that would generate a controlled air supply. Zhipeng uses a compressor to provide constant air flow.”
    Used for: the reconstruction by Lian Zhipeng for the ZKM, which replaces the water-driven air supply with a compressor.
  17. 17.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 88 (the whole topic: pp. 88–98).
    “we will first begin to explain how an instrument is made from which a perpetual wind supply arises.”
    Used for: the steady wind described first; the following pages describe two divisions of a vessel filled with water in turn, the air going out through a pipe (pp. 89–90).
  18. 18.
    Christophe Levaux, “The Forgotten History of Repetitive Audio Technologies”, Organised Sound 22(2) (2017), 187–194.
    Section 3.1, “Mechanical instruments”, p. 188. doi.org/10.1017/S1355771817000097 · open at the quoted passage.
    “The basis of this machine’s automatism was hydraulic pressure, generated by flowing water in a reservoir.”
    Used for: the instrument worked by water pressure.
  19. 19.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 100 (the whole topic: pp. 98–101).
    “And we do not make for the ninth hole a ‘pallet’ because if these eight are shut, the ninth hole gives its note”
    Used for: pallets on eight of the nine holes (p. 98), none on the ninth, which is therefore always open and sounds whenever the eight are shut; the edge-case example and the game’s ninth row.
  20. 20.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 100 (the whole topic: pp. 98–101).
    “the end of every lever upon which the male plug of the ‘pallet’ is fixed, heavier than the end upon which is D, so that the ‘pallet’ may close securely by itself.”
    Used for: the lever heavier at the pallet’s end, so that the pallet closes by itself; the next sentences: when the end D is pressed down, the pallet rises and the opened hole gives its note.
  21. 21.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 101 (the whole topic: pp. 100–102).
    “eight discs (dāʾira), upon an axis R [? Ṭ] Y and R [? Z] Ḥ, opposite to the eight levers”
    Used for: the eight discs on the surface of the cylinder, one opposite each lever; on p. 102 the discs carry small teeth whose rims are arcs of a circle.
  22. 22.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 102 (the whole topic: pp. 102–103).
    “the note goes out from the ‘organ-pipe’ (surnāy), until the tooth (shaẓiyya) passes the end of the lever. Then, that hole closes and another tooth begins to touch the end of another lever”
    Used for: a tooth keeping its hole open, and the note sounding, while it passes the lever; then another tooth meeting another lever for the next note.
  23. 23.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 102 (the whole topic: pp. 102–103).
    “And so the one note does not cease going out from the opened hole, and the remaining seven are silent because their ‘pallets’ (bāb) are closed.”
    Used for: one note at a time, the other seven pallets closed.
  24. 24.
    Christophe Levaux, “The Forgotten History of Repetitive Audio Technologies”, Organised Sound 22(2) (2017), 187–194.
    Section 3.1, “Mechanical instruments”, p. 188. doi.org/10.1017/S1355771817000097 · open at the quoted passage.
    “The flute’s melody was encoded on rotating cylindrical drums by way of raised pins which activated levers to open or close the flute’s holes”
    Used for: a modern summary of the principle (citing Koetsier 2001), and the description of a pinned cylinder in the definition; the next sentence uses the term, “a rotating pinned cylinder”.
  25. 25.
    Marie d’Udekem-Gevers, “Telling the Long and Beautiful (Hi)Story of Automation!”, Making the History of Computing Relevant (IFIP Advances in Information and Communication Technology 416), Springer (2013), 173–195.
    Section 2, “Automata Prior to Stored Program Computers”, p. 177. doi.org/10.1007/978-3-642-41650-7_17 · open at the quoted passage.
    “To produce the desired music automatically, a wooden programming cylinder had to be made, with pegs of the proper dimensions and in the right places, and this cylinder had to be rotated at the proper speed.”
    Used for: the pegged cylinder (the term the same page uses) whose pegs, sized and placed in advance, control the machine as it turns.
  26. 26.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 102 (the whole topic: pp. 101–103).
    “And we put a number of these teeth in one disc which goes round opposite a hole [of the surnāy] according to the number of what is desired for which that note is employed”
    Used for: the number of teeth on a disc: the number of times the hole’s note is used in the melody; the sentence ends by counting them in one turn of the disc.
  27. 27.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 102 (the whole topic: pp. 101–103).
    “And we make the length of this arc (qaus), I mean the teeth (shaẓiyya) mounted upon the disc (dāʾira) which is opposite that hole, like the space in which that note is employed”
    Used for: the length of a tooth as the length of time its note lasts.
  28. 28.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 103 (the whole topic: pp. 102–103).
    “in one-third or in half a turn with which the cylinder goes round, if the melody be short. Or, if the melody be long, with one complete turn.”
    Used for: a short melody in a third or half of a turn, a long one in a whole turn; the next sentence: the melody then returns to the beginning.
  29. 29.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 103 (the whole topic: pp. 103).
    “And it repeats it [the melody] until the water is cut off from the water-wheel Ṭ Y.”
    Used for: the melody repeated until the water is cut off.
  30. 30.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, pp. 103–104 (the whole topic: pp. 103–104).
    “Then when you wish that the scheme (daur) of the melody should be quick sometimes and slow at other times, we make a small cup”
    Used for: the quickening and slowing of the melody; the description goes on (p. 104): the filled cup opens a valve that pours more water on the wheel, and the melody slows again when the cup has emptied.
  31. 31.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 108 (the whole topic: pp. 108–110).
    “One of them is that we count the beats of the strings in proportion to the duration of the note.”
    Used for: the first way of making a cylinder: counting the beats of each note, setting teeth in proportion, and using “only a half of its revolution, or a third, or a quarter, or any part” when the melody is shorter than a turn (the same page).
  32. 32.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 109 (the whole topic: pp. 108–110).
    “in order that when the player raises one of his fingers from any hole of the reed-pipe (surnāy) the lever which ties that finger falls upon the drum (bakra).”
    Used for: the second way: a drum covered with black wax, turned evenly by water, with eight levers each tied by a string to one of the player’s fingers, falling on the wax when its finger is lifted (the drum, the wax and the strings are described on the same page).
  33. 33.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 110 (the whole topic: pp. 108–110).
    “Next, we make the cylinder, which was made in order to produce [lit. ‘cut’] the notes, note for note”
    Used for: making the cylinder note for note from the marks on the wax; the sentence before: from the impressions “we know by that the duration (mudda) of each note in succession”.
  34. 34.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 104 (the whole topic: pp. 104–105).
    “until half a revolution of the cylinder gives the melody twice or thrice, and in the other half of the revolution, another melody is given twice, thrice, or more.”
    Used for: several melodies on a larger cylinder (made by “enlarging the cylinder”, as the sentence begins): half a turn giving one melody two or three times, the other half another.
  35. 35.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 106 (the whole topic: pp. 105–106).
    “And when we desire, according to this model, that we should change to three or four melodies, and the system proceed, we do so.”
    Used for: the second method of changing melodies: a longer cylinder shifted along its axle “by the measure of 27 cm.” to another set of teeth, worked by a floating vessel or a cup that fills and empties (the same page), for three or four melodies.
  36. 36.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 105 (the whole topic: pp. 105).
    “And if we wish that we should have this [instrument] in the form of a man who plays, then we will make all of the instrument concealed inside the body of an image”
    Used for: the machine hidden in the figure of a man, the pipe in his mouth and the levers as his fingers (the next sentences).
  37. 37.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 110 (the whole topic: pp. 110–111).
    “every other hole [sounds only] when it is opened, and when the holes higher than it towards the mouthpiece are shut.”
    Used for: the rule of the reed-pipe: a hole sounds only when it is open and every hole above it, towards the mouthpiece, is shut, so the note comes from the first open hole counted from the mouthpiece (Farmer’s bracket in the next sentence says the same); used in the example, the exercises and the game.
  38. 38.
    Henry George Farmer, The Organ of the Ancients from Eastern Sources (Hebrew, Syriac and Arabic) (William Reeves, London, 1931).
    Chapter “The Organ (Hydraulic) from Arabic Sources”, section “The Instrument which Plays by Itself”, p. 111 (the whole topic: pp. 110–112).
    “And the 8th [hole] is equal to the open Mathnā string [G], and it is also half the note of the 1st hole [g]”
    Used for: the notes of the holes, compared with the lute; the editor’s letters in brackets give, from the first hole down, g, f, e, d, c, b (with doubt: “[? B flat]”), a, G and, for the ninth hole, F.
  39. 39.
    Marie d’Udekem-Gevers, “Telling the Long and Beautiful (Hi)Story of Automation!”, Making the History of Computing Relevant (IFIP Advances in Information and Communication Technology 416), Springer (2013), 173–195.
    “it can be defined as determining in advance the sequence of operations (or actions or motions) that have to be performed by a machine and then recording this sequence on a medium that serves as a memory.”
    Used for: the definition of a program in the broad sense (the sentence begins “As to programming (in a broad sense)”).
  40. 40.
    Marie d’Udekem-Gevers, “Telling the Long and Beautiful (Hi)Story of Automation!”, Making the History of Computing Relevant (IFIP Advances in Information and Communication Technology 416), Springer (2013), 173–195.
    Section 1, Introduction (Table 1), p. 176. doi.org/10.1007/978-3-642-41650-7_17 · open at the quoted passage.
    “a program is said to be internal (to the machine) if it is fixed.”
    Used for: the internal program; the same page names external programs, “modifiable in situ” or “replaceable manually”, and the stored program, “fully manageable automatically” (Table 1).
  41. 41.
    Marie d’Udekem-Gevers, “Telling the Long and Beautiful (Hi)Story of Automation!”, Making the History of Computing Relevant (IFIP Advances in Information and Communication Technology 416), Springer (2013), 173–195.
    “In any case, such programs are accessible to the user. Finally, a program is defined as a “stored program” in the last possible case.”
    Used for: external programs accessible to the user, and the stored program as the last class.
  42. 42.
    Marie d’Udekem-Gevers, “Telling the Long and Beautiful (Hi)Story of Automation!”, Making the History of Computing Relevant (IFIP Advances in Information and Communication Technology 416), Springer (2013), 173–195.
    Section 2, “Automata Prior to Stored Program Computers”, p. 177. doi.org/10.1007/978-3-642-41650-7_17 · open at the quoted passage.
    “it has been proven that the oldest description of a “pegged cylinder” used to automate the playing of a musical instrument is the work of the Musa brothers, in 9th century Bagdad [32] [34].”
    Used for: the Banū Mūsā’s as the oldest known description of a pegged cylinder playing an instrument automatically; the same paragraph: “they state that several melodies can be memorized on a single cylinder”.
  43. 43.
    Marie d’Udekem-Gevers, “Telling the Long and Beautiful (Hi)Story of Automation!”, Making the History of Computing Relevant (IFIP Advances in Information and Communication Technology 416), Springer (2013), 173–195.
    Section 2, “Automata Prior to Stored Program Computers”, p. 177. doi.org/10.1007/978-3-642-41650-7_17 · open at the quoted passage.
    “However, it seems that they did not raise the possibility of modifying a cylinder or replacing it, once the automated musical instrument had been made. The program can therefore be described as internal, according to the classification proposed above.”
    Used for: her classification of the Banū Mūsā’s program as internal.
  44. 44.
    “Automatische hydraulische Orgel der Banū Mūsā ibn Shākir”, ZKM | Center for Art and Media Karlsruhe, collection.
    “Written by the Banū (Sons of) Mūsā ibn Shākir, it describes a programmable universal instrument and an automatic flute player. A grooved cylinder is used to freely encode the music to be played.”
    Used for: the museum’s description of the treatise: a programmable universal instrument, with a cylinder on which music is freely encoded.
  45. 45.
    Marie d’Udekem-Gevers, “Telling the Long and Beautiful (Hi)Story of Automation!”, Making the History of Computing Relevant (IFIP Advances in Information and Communication Technology 416), Springer (2013), 173–195.
    Section 2, “Automata Prior to Stored Program Computers”, note 11, p. 177. doi.org/10.1007/978-3-642-41650-7_17 · open at the quoted passage.
    “this technique is primitive to the extent that it does not involve any long-term memorization of the sequence of the desired movements: when the rope is unwound, it must be rewound properly around the cylinder and refastened before the process is started again.”
    Used for: Hero’s cord, used up in one show and wound again for the next.
  46. 46.
    Christophe Levaux, “The Forgotten History of Repetitive Audio Technologies”, Organised Sound 22(2) (2017), 187–194.
    Section 3.1, “Mechanical instruments”, p. 188. doi.org/10.1017/S1355771817000097 · open at the quoted passage.
    “from the fourteenth century, cylinders of this kind were used to activate church bells”
    Used for: pinned cylinders ringing church bells in Europe from the fourteenth century; the sentence ends on p. 189: “and from the sixteenth century, full carillons.”
  47. 47.
    Marie d’Udekem-Gevers, “Telling the Long and Beautiful (Hi)Story of Automation!”, Making the History of Computing Relevant (IFIP Advances in Information and Communication Technology 416), Springer (2013), 173–195.
    Section 2.1, “Programmed Automata not Used for Calculation in Europe”, p. 180. doi.org/10.1007/978-3-642-41650-7_17 · open at the quoted passage.
    “automated carillons were built with moveable cylinder pegs”
    Used for: carillons with movable pegs around 1530 (the sentence begins “Then, around 1530 according to Lehr”), which “made it possible to change the tunes”; the same page: by the early sixteenth century mechanicians “had built automata with external programs”.
  48. 48.
    Christophe Levaux, “The Forgotten History of Repetitive Audio Technologies”, Organised Sound 22(2) (2017), 187–194.
    Section 3.1, “Mechanical instruments”, p. 188. doi.org/10.1017/S1355771817000097 · open at the quoted passage.
    “Some eight centuries later, around 1650, Athanasius Kircher’s automatic hydraulic organ, presented in his Musurgia Universalis, was based on a very similar principle”
    Used for: Kircher’s automatic hydraulic organ of about 1650, on a principle very similar to the Banū Mūsā’s.