示例#1
0
def Pitch():
    midi = aseqdump.aseqdump("24:1")
    while 1:
        Ch, value = midi.Pitch_get()
        if (Ch == ""):
            continue
        print("Pitch: %s , %s" % (Ch, value))
示例#2
0
def Note():
    midi = aseqdump.aseqdump("24:0")
    while 1:
        onoff, key, velocity = midi.Note_get()
        if (onoff == ""):
            continue
        print("Note: %s , %s , %s" % (onoff, key, velocity))
示例#3
0
def Control():
    global data
    midi = aseqdump.aseqdump("24:2")
    while 1:
        Ch, value = midi.Control_get()
        if (Ch == ""):
            continue
        print("Control: %s , %s" % (Ch, value))