Chord
public struct Chord
Collection of pitches.
Example usage
let cMajor: Chord = [60,64,67]
let gMinor: Chord = [67,70,74]
-
Creates a
Chord
with the givenfirst
pitch and the givenintervals
.Declaration
Swift
public init(_ lowest: Pitch, _ intervals: IntervalPattern)
-
Creates a
Chord
with the intervals in the givensequence
.Declaration
Swift
public init<S>(_ sequence: S) where S : Sequence, S.Element == Pitch
-
Creates a
Chord
with the givenlowest
pitch and the givenChordDescriptor
.Declaration
Swift
public init(lowest: Pitch, descriptor: ChordDescriptor)
-
Declaration
Swift
public init(arrayLiteral pitches: Pitch...)