Interval
public struct Interval : Hashable, Sendable
The structure for an interval
-
Quality of the interval
Declaration
Swift
public var quality: Quality
-
Degree of the interval
Declaration
Swift
public var degree: Int
-
Semitones interval affect on a pitch
Declaration
Swift
public var semitones: Int
-
Unison
Declaration
Swift
public static let P1: Interval
-
Perfect fourth
Declaration
Swift
public static let P4: Interval
-
Perfect fifth
Declaration
Swift
public static let P5: Interval
-
Octave
Declaration
Swift
public static let P8: Interval
-
Perfect eleventh
Declaration
Swift
public static let P11: Interval
-
Perfect twelfth
Declaration
Swift
public static let P12: Interval
-
Perfect fifteenth, double octave
Declaration
Swift
public static let P15: Interval
-
Minor second
Declaration
Swift
public static let m2: Interval
-
Minor third
Declaration
Swift
public static let m3: Interval
-
Minor sixth
Declaration
Swift
public static let m6: Interval
-
Minor seventh
Declaration
Swift
public static let m7: Interval
-
Minor ninth
Declaration
Swift
public static let m9: Interval
-
Minor tenth
Declaration
Swift
public static let m10: Interval
-
Minor thirteenth
Declaration
Swift
public static let m13: Interval
-
Minor fourteenth
Declaration
Swift
public static let m14: Interval
-
Major second
Declaration
Swift
public static let M2: Interval
-
Major third
Declaration
Swift
public static let M3: Interval
-
Major sixth
Declaration
Swift
public static let M6: Interval
-
Major seventh
Declaration
Swift
public static let M7: Interval
-
Major ninth
Declaration
Swift
public static let M9: Interval
-
Major tenth
Declaration
Swift
public static let M10: Interval
-
Major thirteenth
Declaration
Swift
public static let M13: Interval
-
Major fourteenth
Declaration
Swift
public static let M14: Interval
-
Diminished first
Declaration
Swift
public static let d1: Interval
-
Diminished second
Declaration
Swift
public static let d2: Interval
-
Diminished third
Declaration
Swift
public static let d3: Interval
-
Diminished fourth
Declaration
Swift
public static let d4: Interval
-
Diminished fifth
Declaration
Swift
public static let d5: Interval
-
Diminished sixth
Declaration
Swift
public static let d6: Interval
-
Diminished seventh
Declaration
Swift
public static let d7: Interval
-
Diminished eighth
Declaration
Swift
public static let d8: Interval
-
Diminished ninth
Note
Changed 12 to 13Declaration
Swift
public static let d9: Interval
-
Diminished tenth
Declaration
Swift
public static let d10: Interval
-
Diminished eleventh
Declaration
Swift
public static let d11: Interval
-
Diminished twelfth
Declaration
Swift
public static let d12: Interval
-
Diminished thirteenth
Declaration
Swift
public static let d13: Interval
-
Diminished fourteenth
Declaration
Swift
public static let d14: Interval
-
Diminished fifteenth
Declaration
Swift
public static let d15: Interval
-
Augmented first
Declaration
Swift
public static let A1: Interval
-
Augmented second
Declaration
Swift
public static let A2: Interval
-
Augmented third
Declaration
Swift
public static let A3: Interval
-
Augmented fourth
Declaration
Swift
public static let A4: Interval
-
Augmented fifth
Declaration
Swift
public static let A5: Interval
-
Augmented sixth
Declaration
Swift
public static let A6: Interval
-
Augmented seventh
Declaration
Swift
public static let A7: Interval
-
Augmented octave
Declaration
Swift
public static let A8: Interval
-
Augmented ninth
Declaration
Swift
public static let A9: Interval
-
Augmented tenth
Declaration
Swift
public static let A10: Interval
-
Augmented eleventh
Declaration
Swift
public static let A11: Interval
-
Augmented twelfth
Declaration
Swift
public static let A12: Interval
-
Augmented thirteenth
Declaration
Swift
public static let A13: Interval
-
Augmented fourteenth
Declaration
Swift
public static let A14: Interval
-
Augmented fifteenth
Declaration
Swift
public static let A15: Interval
-
Returns the notation of the interval.
Declaration
Swift
public var notation: String { get }
-
Returns the name of the interval.
Declaration
Swift
public var description: String { get }
-
The quality of the interval
See moreDeclaration
Swift
enum Quality : Sendable