Original: One of the oldest automatic instruments known is the automatic flute player invented by Ban M s brothers in 9th century Arabia.
Simplified: It could play three pieces automatically, but there was also a keyboard.