Skip to content

Instantly share code, notes, and snippets.

@victormurcia
Last active September 3, 2022 03:14
Show Gist options
  • Select an option

  • Save victormurcia/f8d7c287963e11ae7be4fd04bdfa7264 to your computer and use it in GitHub Desktop.

Select an option

Save victormurcia/f8d7c287963e11ae7be4fd04bdfa7264 to your computer and use it in GitHub Desktop.
get note index in piano keys
#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