AKMetronome

public class AKMetronome : AKOperationGenerator

Useful metronome class that you can utilize for your own projects

  • BPM

    Declaration

    Swift

    public var tempo: Double { get set }
  • Number of clicks in one measure

    Declaration

    Swift

    public var subdivision: Int { get set }
  • First click sound frequency

    Declaration

    Swift

    public var frequency1: Double { get set }
  • Non-first click sound frequency

    Declaration

    Swift

    public var frequency2: Double { get set }
  • The value of the current beat

    Declaration

    Swift

    public var currentBeat: Int { get set }
  • Function to perform on every tick

    Declaration

    Swift

    public var callback: AKCallback { get set }
  • Initialize the metronome

    Declaration

    Swift

    @objc
    public init()
  • Reset the metronome

    Declaration

    Swift

    public func reset()