Some say the loom and notch card are the oldest programmable device.
The guitar, or the lute, are probably older than the loom and tablature is at least 400 years old.
The guitar is programmed by the tuning and controlled by on-off mechanical stops. The tablature is the programing language.
Give credit where credit is due.