Fixing bugs in metronome and note repeat