Quality

enum Quality: String, CaseIterable, Codable, Comparable, Sendable

All the chord qualities we know about

Note

Changes to the raw value might break the databases

Triad

Seventh

Suspended

Extended

Added

Augmented

  • Augmented 9

    Declaration

    Swift

    case augNine = "aug9"
  • Implement Comparable

    Declaration

    Swift

    static func < (lhs: Self, rhs: Self) -> Bool
  • The display of Quality

    Declaration

    Swift

    var display: String
  • Supports a few most popular groupings. Major, Minor, Diminished, Augmented, Suspended. Please open a PR if you’d like to introduce more types or offer corrections. Anything that doesn’t fit into the above categories are put in other.

    The intention for the group is for developers to offer different filter types for chart lookup.

    Declaration

    Swift

    var group: Chord.Group
  • The intervals of a Chord/Quality

    Declaration

    Swift

    var intervals: (intervals: [Interval], optional: [Interval])
  • An array with all optional names for a Chord/Quality

    Note

    Used to lookup a quality from a ChordPro definition

    Declaration

    Swift

    var name: [String]