def __init__(self, world):
        super().__init__(world)

        self.w_hands = [LMHand(self) for _ in range(lmc.NHANDS)]
        self.w_connected = ag.OutWire(self)
        self.w_has_focus = ag.OutWire(self)
        self.controller = lmc.LMController()
 def __init__(self, parent):
     self.parent = parent
     self.is_valid = ag.OutWire(parent)
     self.detected = ag.OutWire(parent)
     self.palm_position = LMVector(parent)
     self.palm_velocity = LMVector(parent)
     self.palm_normal = LMVector(parent)
     self.palm_position_normalized = LMVector(parent)
     self.fingers = [LMFinger(parent) for _ in range(lmc.NFINGERS)]
    def __init__(self, world, pitch_tracker):
        """
        Initialize the PitchTrackerNode.

        Parameters
        ----------
        pitch_tracker : PitchTrackerBase object
            the actual pitch tracker algorithm, encapsulated in the PitchTrackerBase interface
        """
        super().__init__(world)

        self.pitch_tracker = pitch_tracker
        self.w_in = ag.InWire(self)
        self.w_f0 = ag.OutWire(self)
        self.w_voiced = ag.OutWire(self)
Beispiel #4
0
 def __init__(self, world, A440=440):
     super().__init__(world)
     self.A440 = A440
     self.w_in = ag.InWire(self)
     self.w_in_snap = ag.InWire(self)
     self.w_in_scale = ag.ObjInWire(self, list(range(12)))
     self.w_f0 = ag.OutWire(self)
     self.prev_scale = []
 def __init__(self, parent):
     self.parent = parent
     self.x = ag.OutWire(parent)
     self.y = ag.OutWire(parent)
     self.z = ag.OutWire(parent)
     self.array = np.zeros((3,), dtype=np.float32)