AKMetronome

public class AKMetronome: AKOperationGenerator

Useful metronome class that you can utilize for your own projects

  • BPM

    Declaration

    Swift

    public var tempo: Double = 60
  • Number of clicks in one measure

    Declaration

    Swift

    public var subdivision: Int = 4
  • First click sound frequency

    Declaration

    Swift

    public var frequency1: Double = 2_000
  • Non-first click sound frequency

    Declaration

    Swift

    public var frequency2: Double = 1_000
  • The value of the current beat

    Declaration

    Swift

    public var currentBeat: Int
  • Function to perform on every tick

    Declaration

    Swift

    public var callback: AKCallback
  • Initialize the metronome

    Declaration

    Swift

    public init()
  • Reset the metronome

    Declaration

    Swift

    public func reset()