Added min and max to rotary control.  Refractor to create a metronome class.