Last active
September 3, 2022 03:14
-
-
Save victormurcia/f8d7c287963e11ae7be4fd04bdfa7264 to your computer and use it in GitHub Desktop.
get note index in piano keys
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
| #Find index of desired key | |
| index = scale_intervals.index(whichKey) | |
| #Redefine scale interval so that scale intervals begins with whichKey | |
| new_scale = scale_intervals[index:12] + scale_intervals[:index] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment