예제 #1
0
def initialise():

    # Get a listener object
    sp = create_sp()
    listen = listener(sp, None)

    # Get the song graph from the listener
    song_graph = listen.get_graph()

    # Initialise the graph editor
    graph_edit = graph_editor(song_graph)

    control_loop(listener, graph_edit)
예제 #2
0
def initialise():
    sp = sapi.create_sp()
    device_id = sapi.choose_device(sp)
    listen = listener(sp, device_id)
    return listen