Programmable metronome