             let countSoundUrl = Bundle.main.url(forResource: "closed_hi_hat_F#1", withExtension: "wav") else {
                 fatalError()
         }
-        metronome1.sound = countSoundUrl;
-        metronome1.downBeatSound = oneSoundUrl;
+        metronome1.sound = countSoundUrl
+        metronome1.downBeatSound = oneSoundUrl
 
         metronome1 >>> mixer
         metronome2 >>> mixer

                } 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()
                    }

import AudioKitUI
import AudioKit

/**
 This Example is to demonstrate how to syncronize the AKSamplerMetronome using AVAudioTime.
 */
class ViewController: UIViewController {
    var metronome1 = AKSamplerMetronome()
    var metronome2 = AKSamplerMetronome()
