📅  最后修改于: 2022-03-11 14:45:06.353000             🧑  作者: Mango
base_freq = 440.0
notes = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E',
'F', 'F#', 'G', 'G#']
notes2freq = {notes[i]: base_freq*2**(i/12.0)
for i in range(len(notes))}