map(msg.append, args) self.client.send(msg) print "looking for a monome..." host, port = find_any_monome() print "found!" r = Renoise(('localhost', 8800)) m = Monome((host, port)) m.start() def mycallback(x, y, s): m.led_set(x, y, s) if s == 1: r.note_on(-1, -1, x*8+y, 127) else: r.note_off(-1, -1, x*8+y) m.grid_key = mycallback m.led_all(0) try: while True: for i in range(8): time.sleep(1.0/20) except KeyboardInterrupt: r.panic() m.led_all(0) m.close()
# m.led_set(x, y, 0 ) # if rowType == 'loop16': # note_on(0x99,60, 112) # m.led_row(x,y,0xff, 0xff) # else: # # if rowType == 'seq16': # if rowType == '`loop16': # note_off(0x99, 60) # m.led_row(x,y,0x00, 0x00) print(clock.runclockedstuff) m.grid_key = keypressed # #repaint monome # m.led_all(0) try: while True: for i in range(8): time.sleep(1.0/20) except KeyboardInterrupt: # r.panic() m.led_all(0) m.close()