Metronome
@MainActor
final class Metronome
The observable metronome for Chord Provider
-
The time signature
Declaration
Swift
var time: String { get set }
-
The current BPM of the metronome
Declaration
Swift
var bpm: Float { get set }
-
Bool if the metronome ticker is enabled
Declaration
Swift
var enabled: Bool { get set }
-
Bool for the high/low tick and animation
Declaration
Swift
var flip: Bool { get set }
-
Timing for the next ‘tick’
Declaration
Swift
private var nextTick: DispatchTime { get set }
-
The BPM value
Declaration
Swift
private var bpmValue: Float { get set }
-
timeSignature
Declaration
Swift
private var timeSignature: Int { get set }
-
tickCounter
Declaration
Swift
private var tickCounter: Int { get set }
-
The ID of the ‘low’ sound
Declaration
Swift
private var lowSoundID: SystemSoundID { get set }
-
The ID of the ‘low’ sound
Declaration
Swift
private var highSoundID: SystemSoundID { get set }
-
Init the class
Declaration
Swift
init()
-
Play the metronome ‘tick’ as a system sound
Declaration
Swift
private func tick()