-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixing deprecated linters and optional params * Add constants and fix scalePatterns issue * Apply dart formatting
- Loading branch information
1 parent
a4d7fed
commit 8eecb88
Showing
13 changed files
with
660 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Keywords { | ||
static const String name = 'name'; | ||
static const String intervals = 'intervals'; | ||
static const String modeNames = 'modeNames'; | ||
static const String parent = 'parent'; | ||
} |
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,51 @@ | ||
part of tonic; | ||
|
||
class NoteNames { | ||
static const String aFlat = 'A♭'; | ||
static const String a = 'A'; | ||
static const String aSharp = 'A♯'; | ||
static const String bFlat = 'B♭'; | ||
static const String b = 'B'; | ||
static const String c = 'C'; | ||
static const String cSharp = 'C♯'; | ||
static const String dFlat = 'D♭'; | ||
static const String d = 'D'; | ||
static const String dSharp = 'D♯'; | ||
static const String eFlat = 'E♭'; | ||
static const String e = 'E'; | ||
static const String f = 'F'; | ||
static const String fSharp = 'F♯'; | ||
static const String gFlat = 'G♭'; | ||
static const String g = 'G'; | ||
static const String gSharp = 'G♯'; | ||
|
||
static List<String> sharpNoteNames() => [ | ||
c, | ||
cSharp, | ||
d, | ||
dSharp, | ||
e, | ||
f, | ||
fSharp, | ||
g, | ||
gSharp, | ||
a, | ||
aSharp, | ||
b, | ||
]; | ||
|
||
static List<String> flatNoteNames() => [ | ||
c, | ||
dFlat, | ||
d, | ||
eFlat, | ||
e, | ||
f, | ||
gFlat, | ||
g, | ||
aFlat, | ||
a, | ||
bFlat, | ||
b, | ||
]; | ||
} |
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,103 @@ | ||
part of tonic; | ||
|
||
class ScalePatternNames { | ||
////////// | ||
//scales// | ||
////////// | ||
static const String diatonicMajor = 'Diatonic Major'; | ||
static const String naturalMinor = 'Natural Minor'; | ||
static const String majorPentatonic = 'Major Pentatonic'; | ||
static const String melodicMinor = 'Melodic Minor'; | ||
static const String harmonicMinor = 'Harmonic Minor'; | ||
static const String blues = 'Blues'; | ||
static const String freygish = 'Freygish'; | ||
static const String wholeTone = 'Whole Tone'; | ||
static const String octatonic = 'Octatonic'; | ||
|
||
///////// | ||
//modes// | ||
///////// | ||
//diatonic major | ||
static const String ionian = 'Ionian'; | ||
static const String dorian = 'Dorian'; | ||
static const String phrygian = 'Phrygian'; | ||
static const String lydian = 'Lydian'; | ||
static const String mixolydian = 'Mixolydian'; | ||
static const String aeolian = 'Aeolian'; | ||
static const String locrian = 'Locrian'; | ||
|
||
//major pentatonic | ||
static const String majorPentatonicMode = majorPentatonic; | ||
static const String suspendedPentatonic = 'Suspended Pentatonic'; | ||
static const String manGong = 'Man Gong'; | ||
static const String ritusen = 'Ritusen'; | ||
static const String minorPentatonic = 'Minor Pentatonic'; | ||
|
||
//melodic minor | ||
static const String jazzMinor = 'Jazz Minor'; | ||
static const String dorianFlat2 = 'Dorian ♭2'; | ||
static const String lydianAugmented = 'Lydian Augmented'; | ||
static const String lydianDominant = 'Lydian Dominant'; | ||
static const String mixolydianFlat6 = 'Mixolydian ♭6'; | ||
static const String semilocrian = 'Semilocrian'; | ||
static const String superlocrian = 'Superlocrian'; | ||
|
||
//harmonic minor | ||
static const String harmonicMinorMode = harmonicMinor; | ||
static const String locrianSharp6 = 'Locrian ♯6'; | ||
static const String ionianAugmented = 'Ionian Augmented'; | ||
static const String romanian = 'Romanian'; | ||
static const String phrygianDominant = 'Phrygian Dominant'; | ||
static const String lydianSharp2 = 'Lydian ♯2'; | ||
static const String ultralocrian = 'Ultralocrian'; | ||
|
||
static List<String> scaleNames() => [ | ||
diatonicMajor, | ||
naturalMinor, | ||
majorPentatonic, | ||
melodicMinor, | ||
harmonicMinor, | ||
blues, | ||
freygish, | ||
wholeTone, | ||
octatonic, | ||
]; | ||
|
||
static List<String> diatonicMajorModes() => [ | ||
ionian, | ||
dorian, | ||
phrygian, | ||
lydian, | ||
mixolydian, | ||
aeolian, | ||
locrian, | ||
]; | ||
|
||
static List<String> majorPentatonicModes() => [ | ||
majorPentatonicMode, | ||
suspendedPentatonic, | ||
manGong, | ||
ritusen, | ||
minorPentatonic, | ||
]; | ||
|
||
static List<String> melodicMinorModes() => [ | ||
jazzMinor, | ||
dorianFlat2, | ||
lydianAugmented, | ||
lydianDominant, | ||
mixolydianFlat6, | ||
semilocrian, | ||
superlocrian, | ||
]; | ||
|
||
static List<String> harmonicMinorModes() => [ | ||
harmonicMinorMode, | ||
locrianSharp6, | ||
ionianAugmented, | ||
romanian, | ||
phrygianDominant, | ||
lydianSharp2, | ||
ultralocrian, | ||
]; | ||
} |
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
Oops, something went wrong.