MusicTheory Documentation

Enumeration Mode

public enum Mode: CaseIterable  

A mode that requires a root to form a scale.

%3 Mode Mode Equatable Equatable Mode->Equatable Hashable Hashable Mode->Hashable CaseIterable CaseIterable Mode->CaseIterable

Conforms To

CaseIterable
Equatable
Hashable

Enumeration Cases

ionian

case ionian

major

case major

aeolian

case aeolian

minor

case minor

Methods

hash(into:​)

public func hash(into hasher: inout Hasher)  

Operators

==

public static func == (lhs: Mode, rhs: Mode) -> Bool  

Check for mode equivalence.

See if two modes are simply alias of each other, for example, .major and .ionian are equal.