Add a 'Tap tempo' button to the 'Edit tempo' dialogue box that uses gettimeofday() to time the interval between successive clicks and sets the beats-per-minute appropriately.