Melodiograph

Webster's Dictionary of the English Language

·noun A contrivance for preserving a record of music, by recording the action of the keys of a musical instrument when played upon.