コード例 #1
0
ファイル: app.py プロジェクト: davepagurek/Chordi.co
def music_function(instrument, mode):
    learner = Learn(mode)
    learner.loadFromFile()
    song = learner.getSong(getStartSequence())
    midiPath = getPath(MIDI_BASE_PATH, '.mid')
    toMidi(song, midiPath, instrument)
    mp3Path = getPath(MP3_BASE_PATH, '.mp3')
    generateMP3(midiPath, mp3Path, FONT_PATH)
    return mp3Path