 
     func setUpUI() {
 
-        func startStopAction(met: AKSamplerMetronome, otherMet: AKSamplerMetronome) -> (AKButton)->Void {
+        func startStopAction(met: AKSamplerMetronome, otherMet: AKSamplerMetronome) -> (AKButton) -> Void {
             return { button in
                 // Stop if playing, Start if not playing.
                 if met.isPlaying {

        setUpUI()
    }


    func beatsSelected(segmentedControl: UISegmentedControl) {
        let beatCount = Int32(segmentedControl.selectedSegmentIndex + 1)
        let now = AVAudioTime(hostTime: mach_absolute_time())

                } else {
                    //If other metronome is playing, sync to it, else just play.
                    if otherMet.isPlaying {
                        let now = AVAudioTime(hostTime: mach_absolute_time())
                        let beatAtNow = otherMet.beatTime(at: now)
                        met.setBeatTime(beatAtNow, at: now)
                    } else {
                        met.play()
                    }
