Last active
October 1, 2022 15:29
-
-
Save victormurcia/d946d65217a15eeb16b64b64aea5a928 to your computer and use it in GitHub Desktop.
Interval definitions for various musical scales
This file contains hidden or 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
| #Choose scale | |
| if whichScale == 'AEOLIAN': | |
| scale = [0, 2, 3, 5, 7, 8, 10] | |
| elif whichScale == 'BLUES': | |
| scale = [0, 2, 3, 4, 5, 7, 9, 10, 11] | |
| elif whichScale == 'PHYRIGIAN': | |
| scale = [0, 1, 3, 5, 7, 8, 10] | |
| elif whichScale == 'CHROMATIC': | |
| scale = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] | |
| elif whichScale == 'DORIAN': | |
| scale = [0, 2, 3, 5, 7, 9, 10] | |
| elif whichScale == 'HARMONIC_MINOR': | |
| scale = [0, 2, 3, 5, 7, 8, 11] | |
| elif whichScale == 'LYDIAN': | |
| scale = [0, 2, 4, 6, 7, 9, 11] | |
| elif whichScale == 'MAJOR': | |
| scale = [0, 2, 4, 5, 7, 9, 11] | |
| elif whichScale == 'MELODIC_MINOR': | |
| scale = [0, 2, 3, 5, 7, 8, 9, 10, 11] | |
| elif whichScale == 'MINOR': | |
| scale = [0, 2, 3, 5, 7, 8, 10] | |
| elif whichScale == 'MIXOLYDIAN': | |
| scale = [0, 2, 4, 5, 7, 9, 10] | |
| elif whichScale == 'NATURAL_MINOR': | |
| scale = [0, 2, 3, 5, 7, 8, 10] | |
| elif whichScale == 'PENTATONIC': | |
| scale = [0, 2, 4, 7, 9] | |
| else: | |
| print('Invalid scale name') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment