Tempo

public struct Tempo

Model of a Tempo.

  • Undocumented

    Declaration

    Swift

    public typealias BeatsPerMinute = Double
  • Duration in seconds of a given beat.

    Declaration

    Swift

    public var durationOfBeat: Double { get }
  • Double value of Tempo.

    Declaration

    Swift

    public var doubleValue: Double { get }
  • Value of Tempo.

    Declaration

    Swift

    public let beatsPerMinute: BeatsPerMinute
  • Subdivision of Tempo.

    • 1: whole note
    • 2: half note
    • 4: quarter note
    • 8: eighth note
    • 16: sixteenth note

    Declaration

    Swift

    public let subdivision: Subdivision