Modes
open class Modes
Modes** is an abstract class that deals with standard modal collections as well as cataloguing user-generated scales. E.g. Modes.Major.fourth.offsets gives offsets-from-tonic for the lydian mode as an array of Ints, i.e. [0, 2, 4, 6, 7, 9, 11].
-
A dictionary containing user-defined modes. The key is the mode name.
Declaration
Swift
public static var user: [String: Mode] = [:]
-
Get offsets for an arbitrary mode of a base collection of offsets.
Declaration
Swift
public static func modalRotate(_ baseType: [Int], by amount: Int) -> [Int]
-
Major modes. Can be accessed by their names or numbered instances. E.g. Modes.Major.ionian is the same as Modes.major.first.
See moreDeclaration
Swift
public enum Major: Int
-
Provides harmonic and melodic minor modes through Minor.Harmonic and Minor.Melodic respectively.
See moreDeclaration
Swift
public enum Minor