Esempio n. 1
0
def playWithArgs(num, title, sequencer):
    
    # Initialize interface
    i = Interface()
    
    # Check arguments
    if num == 0:
        # song
        songPath = i.getInput(title)
        data = i.parseFiles(songPath)
        sequencer.playSong(data)
    elif num == 1:
        # setlist
        songs = i.parseSetlist(title)
        
        # Load and play each song in songs
        for song in songs:
            songPath = i.getInput(song) 
            data = i.parseFiles(songPath)
            sequencer.playSong(data)
Esempio n. 2
0
def playNoArgs(sequencer):
 
    # Initialize interface
    i = Interface()
    
    # Get user input
    songPath = i.getInput()
    
    # parse data
    data = i.parseFiles(songPath)
    
    # play the song
    sequencer.playSong(data)