Esempio n. 1
0
 def __init__(self, win, path, width, height):
     self.win = win
     self.midi = read(path)
     self.device = midiDevice()
     self.muted = 16 * [False]
     self.solo = 16 * [False]
     self.width = width
     self.height = height
     self.button = False
     self.selection = None
     self.pause = False
Esempio n. 2
0
 def __init__(self, win, path, width, height):
     self.win = win
     self.midi = read(path)
     self.device = midiDevice()
     self.muted = 16 * [False]
     self.solo = 16 * [False]
     self.width = width
     self.height = height
     self.button = False
     self.selection = None
     self.pause = False
Esempio n. 3
0
def beatinfo(midi):
    return midi.beatinfo()


def lyrics(midi):
    return midi.lyrics()


def chordinfo(midi):
    return midi.chordinfo()


def setsong(midi, **info):
    midi.setsong(**info)


def channelinfo(midi, channel):
    return midi.channelinfo(channel)


def setchannel(midi, channel, **info):
    midi.setchannel(channel, **info)


if __name__ == '__main__':
    midi_file = read(sys.argv[1])
    midi_device = midiDevice()
    midi_device.mididataset1(0x400130, 0x04)
    play(midi_file, midi_device)