Skip to content

Instantly share code, notes, and snippets.

@victormurcia
Created September 3, 2022 04:18
Show Gist options
  • Select an option

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

Select an option

Save victormurcia/304ccb5164f4a7ba3b862f5d35a8572c to your computer and use it in GitHub Desktop.
make song using desired scale
#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