-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
171 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Sources/Scaletor/Extensions/HarmonicMinorMode+CustomStringConvertible.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Foundation | ||
|
||
extension HarmonicMinorMode: CustomStringConvertible { | ||
public var description: String { | ||
switch self { | ||
case .harmonicMinor: | ||
return "Harmonic Minor" | ||
case .locrianSharpSix: | ||
return "Locrian ♯6" | ||
case .ionianSharpFive: | ||
return "Ionian ♯5" | ||
case .dorianSharpFour: | ||
return "Dorian ♯4" | ||
case .phrygianDominant: | ||
return "Phrygian Dominant" | ||
case .lydianSharpTwo: | ||
return "Lydian ♯2" | ||
case .ultraLocrian: | ||
return "Ultra Locrian" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
Sources/Scaletor/Extensions/MajorMode+CustomStringConvertible.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Foundation | ||
|
||
extension MajorMode: CustomStringConvertible { | ||
public var description: String { | ||
return self.rawValue.capitalized | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
Sources/Scaletor/Extensions/MelodicMinorMode+CustomStringConvertible.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import Foundation | ||
|
||
extension MelodicMinorMode: CustomStringConvertible { | ||
public var description: String { | ||
switch self { | ||
case .melodicMinor: | ||
return "Melodic Minor" | ||
case .dorianFlatTwo: | ||
return "Dorian ♭2" | ||
case .lydianAugmented: | ||
return "Lydian Augmented" | ||
case .lydianDominant: | ||
return "Lydian Dominant" | ||
case .mixolydianFlatSix: | ||
return "Mixolydian ♭6" | ||
case .aeolianFlatFive: | ||
return "Aeolian ♭5" | ||
case .superLocrian: | ||
return "Super Locrian" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import Foundation | ||
|
||
public protocol Mode { | ||
var chords: [ChordVoicing] { get } | ||
public protocol Mode: CustomStringConvertible { | ||
static var description: String { get } | ||
var intervals: [Interval] { get } | ||
var chords: [ChordVoicing] { get } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters