Mode
public struct Mode
The Mode type is used for defining custom scale structures. Initialized with either a name string and an array of Int offsets-from-tonic, or with a name string and a pitch-class set (in which case the prime form is used).
-
Custom mode/scale name.
Declaration
Swift
public let name: String
-
Custom mode/scale offsets-from-tonic.
Declaration
Swift
public let offsets: [Int]
-
Initialize from a name string and offsets-from-tonic Int array.
Declaration
Swift
public init(modeName: String, modeOffsets: [Int])
-
Initialize from a name string and a pitch-class set (the prime form of which is used).
Declaration
Swift
public init(modeName: String, pcset: PCSet)
-
Get a mode of a Mode parent scale instance.
Declaration
Swift
public func getMode(_ number: UInt8) -> [Int]