Skip to content

roelspruit/RSMetronome

Repository files navigation

RSMetronome

RSMetronome is an library written in Swift that can be used to implement a basic metronome.

Usage

Start the metronome

let metronome = Metronome()
metronome.start()

Stop the metronome

metronome.stop()

Change the metronome's tempo

metronome.settings.tempo = 60

Tap Tempo

The TapTempo class can help you determine a tempo by averaging the time between a number of taps on a button.

let tapTempo = TapTempo(samples: 3)
tapTempo.tap()
// Wait
tapTempo.tap()
// Wait
let tempo = tapTempo.tap()

About

A basic metronome written in Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages