Created
September 3, 2022 04:18
-
-
Save victormurcia/304ccb5164f4a7ba3b862f5d35a8572c to your computer and use it in GitHub Desktop.
make song using desired scale
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
| #Get length of scale (i.e., how many notes in scale) | |
| nNotes = len(scale) | |
| #Initialize arrays | |
| freqs = [] | |
| #harmony = [] | |
| #harmony_val = harmony_select[makeHarmony] | |
| for i in range(nNotes): | |
| note = new_scale[scale[i]] + str(whichOctave) | |
| freqToAdd = note_freqs[note] | |
| freqs.append(freqToAdd) | |
| #harmony.append(harmony_val*freqToAdd) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment