Chord
public struct Chord: ChordDescription
Defines a chord with a root note and type.
-
Type of the chord.
Declaration
Swift
public var type: ChordType -
Root key of the chord.
Declaration
Swift
public var key: Key -
Inversion index of the chord.
Declaration
Swift
public private(set) var inversion: Int -
Types of notes in chord.
Declaration
Swift
public var keys: [Key] -
Possible inversions of the chord.
Declaration
Swift
public var inversions: [Chord] -
Notation of the chord.
Declaration
Swift
public var notation: String -
Generates notes of the chord for octave.
Declaration
Swift
public func pitches(octave: Int) -> [Pitch]Parameters
octaveOctave of the root note for the build chord from.
Return Value
Generates notes of the chord.
-
Generates notes of the chord for octave range.
Declaration
Swift
public func pitches(octaves: [Int]) -> [Pitch]Parameters
octavesOctaves of the root note to build chord from.
Return Value
Generates notes of the chord.
-
Returns the roman numeric string for a chord.
Declaration
Swift
public func romanNumeric(for scale: Scale) -> String?Parameters
scaleThe scale that the chord in.
Return Value
Roman numeric string for the chord in a scale.
-
Description of the chord.
Declaration
Swift
public var description: String
View on GitHub
Chord Structure Reference