A metronome was a device sometimes used by musicians.
They were used to assist the musician in keeping a steady beat when performing a musical composition. This was accomplished by a moving weight which made a clicking noise at the rate desired by the musician.
In 2378 Seven of Nine, while in the holodeck, made use of a metronome while playing a piano. (VOY: "Human Error")