Example #1
0
File: test.py Project: 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)
Example #2
0
File: app.py Project: sagnew/Vireo
 def generate(tweet, mood):
     melodyList = composer.melodize(tweet, mood)
     midi = composer.midFile(melodyList)
     yield midi