def export(): doHarmonization(filename, key.get(), quality.get()) index = len(filename) - filename[::-1].index('/') newfilename = filename[index:] streamToMidi(newfilename)
def harmonize(): score1 = doHarmonization(filename, key.get(), quality.get()) score1.show('musicxml')