Add dynamic metronome unit computation