Browse Source

Changed an init value that prevented function intervals which, if appeared
first in a track, didn't get played.

Justin Butler 24 năm trước cách đây
mục cha
commit
ecc2c11600
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      direct/src/interval/Interval.py

+ 1 - 1
direct/src/interval/Interval.py

@@ -27,7 +27,7 @@ class Interval(DirectObject):
         self.name = name
         self.name = name
         self.duration = duration
         self.duration = duration
         self.curr_t = 0.0
         self.curr_t = 0.0
-        self.prev_t = 0.0
+        self.prev_t = -1
         self.stopEventList = []
         self.stopEventList = []
         self.setTHooks = []
         self.setTHooks = []
         # Set true if interval responds to setT(t): t>duration
         # Set true if interval responds to setT(t): t>duration