https://github.com/Torotrak/iOS-Samples/tree/master/Metronome