Exemple #1
0
 def __init__(self, beatMap, parent=None):
     super().__init__(parent)
     self.timer = QTimer(self)
     self.timer.setTimerType(Qt.PreciseTimer)
     self.timer.setInterval(1)
     self.timer.timeout.connect(self.checkOutput)
     self.beatMap = beatMap
     self.iNextPoint = 0
     self.iNextHit = 0
     self.beginTime = None
     self.tc = Trajectory.Converter()
     self.ht = Hit.Converter()
     self.timeList, self.pointList = self.tc(beatMap)
     self.eventList = self.ht(beatMap, self.timeList, self.pointList)
     self.started = False