ChordType

public struct ChordType: ChordDescription

Defines full type of chord with all chord parts.

  • Thirds part. Second note of the chord.

    Declaration

    Swift

    public var third: ChordThirdType
  • Fifths part. Third note of the chord.

    Declaration

    Swift

    public var fifth: ChordFifthType
  • Defines a sixth chord. Defaults nil.

    Declaration

    Swift

    public var sixth: ChordSixthType?
  • Defines a seventh chord. Defaults nil.

    Declaration

    Swift

    public var seventh: ChordSeventhType?
  • Defines a suspended chord. Defaults nil.

    Declaration

    Swift

    public var suspended: ChordSuspendedType?
  • Defines extended chord. Defaults nil.

    Declaration

    Swift

    public var extensions: [ChordExtensionType]?
  • Initilze the chord type with its parts.

    Declaration

    Swift

    public init(third: ChordThirdType, fifth: ChordFifthType = .perfect, sixth: ChordSixthType? = nil, seventh: ChordSeventhType? = nil, suspended: ChordSuspendedType? = nil, extensions: [ChordExtensionType]? = nil)

    Parameters

    third

    Thirds part.

    fifth

    Fifths part. Defaults perfect fifth.

    sixth

    Sixth part. Defaults nil.

    seventh

    Seventh part. Defaults nil.

    suspended

    Suspended part. Defaults nil.

    extensions

    Extended chords part. Defaults nil. Could be add more than one extended chord.

  • Initilze the chord type with its intervals.

    Declaration

    Swift

    public init?(intervals: [Interval])

    Parameters

    intervals

    Intervals of chord notes distances between root note for each.

  • Intervals of parts between root.

    Declaration

    Swift

    public var intervals: [Interval]
  • Notation of the chord type.

    Declaration

    Swift

    public var notation: String
  • Description of the chord type.

    Declaration

    Swift

    public var description: String
  • all

    All possible chords could be generated.

    Declaration

    Swift

    public static var all: [ChordType]