def __init__(self, device=0, instrument=0): Looper.__init__(self, name="MIDI Controller") pygame.midi.init() self.mout = pygame.midi.Output(device) self.mout.set_instrument(instrument, 1) self.queue = [] self.current_time = 0
def __init__(self, delay=0.05): Looper.__init__(self, name="Move Tracker") self.position = (0, 0, 0) self.tracker = psmove.PSMoveTracker() self.moves = [] self.delay = delay