Barrel organ - a mechanical music playing device - as the barrel turned, the pins in it controlled which pipes sounded, producing an early form of sequenced music.