This class creates an animated and interactive metronome.