Skip to content

Commit

Permalink
Update melodic minor scale
Browse files Browse the repository at this point in the history
  • Loading branch information
cemolcay committed Sep 18, 2020
1 parent e0d7ac7 commit d97e81e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ Pitch(key: Key(type: .b, accidental: .flat), octave: 1) + .M9
Pitch(key: Key(type: .c, accidental: .natural), octave: 3) - .M9

let aHarmonicMinor = Scale(type: .harmonicMinor, key: Key(type: .a))
print(aHarmonicMinor)
let harmonicFunctions = HarmonicFunctions(scale: aHarmonicMinor)
HarmonicFunctionType.allCases.forEach({ type in
let relatedKeys = type.direction.map({ related in
harmonicFunctions.harmonicFunction(for: related)!
})
print(type, relatedKeys)
// print(type, relatedKeys)
})
2 changes: 1 addition & 1 deletion Sources/MusicTheory/Scale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public struct ScaleType: Codable, Hashable, CustomStringConvertible {
/// Harmonic minor scale.
public static let harmonicMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .m6, .M7], description: "Harmonic Minor")
/// Melodic minor scale.
public static let melodicMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .M6, .m7], description: "Melodic Minor")
public static let melodicMinor = ScaleType(intervals: [.P1, .M2, .m3, .P4, .P5, .M6, .M7], description: "Melodic Minor")
/// Pentatonic major scale.
public static let pentatonicMajor = ScaleType(intervals: [.P1, .M2, .M3, .P5, .M6], description: "Pentatonic Major")
/// Pentatonic minor scale.
Expand Down

0 comments on commit d97e81e

Please sign in to comment.