示例#1
0
文件: test.py 项目: sagnew/Vireo
def makeMelody():
    global number
    happylist = ['I love rhinos #yolo420swag #mercurialRules', 'got me on this zumba shit in my balls #yolo420swag :(', "The recommended approach to subprocesses is to use the following convenience", "Kill me now omg idk what is going on dude #wtf", 'alright here is one more just make a cool melody']
    melody = c.melodize(happylist[number], moodList[number])
    number += 1
    if (number > 4):
        number = 0
    c.midFile(melody)
示例#2
0
文件: app.py 项目: sagnew/Vireo
 def generate(tweet, mood):
     melodyList = composer.melodize(tweet, mood)
     midi = composer.midFile(melodyList)
     yield midi