7 roslib.load_manifest(
'jsk_teleop_joy')
11 return ((ref | val) >> 4 == (ref >> 4))
15 controller = pygame.midi.Input(int(sys.argv[1]))
17 while controller.poll():
18 data = controller.read(1)
20 midi_command = elem_set[0][0]
21 print(elem_set[0], end=
' ')
22 print(
"(0x%X, 0x%X, 0x%X)" % (midi_command, elem_set[0][1], elem_set[0][2]), end=
' ')
23 print(MIDICommand.toStr(MIDICommand.detect(midi_command)))
27 if __name__ ==
"__main__":
def checkUpperByte(ref, val)