def __initstate__(self):
     # state
     self._pixel_state = None
     self._filter_b, self._filter_a, self._filter_zi = dsp.design_filter(
         self.lowcut_hz, self.highcut_hz, self.fs, 3)
     self._last_t = 0.0
     self._last_move_t = 0.0
     super(MovingLight, self).__initstate__()
 def __initstate__(self):
     # state
     self._t0Array = []
     self._spawnArray = []
     self._peakArray = []
     self._starCounter = 0
     self._filter_b, self._filter_a, self._filter_zi = dsp.design_filter(
         self.lowcut_hz, self.highcut_hz, self.fs, 3)
     super(FallingStars, self).__initstate__()
예제 #3
0
 def __initstate__(self):
     # state
     self._pixel_state = np.zeros(self.num_pixels) * np.array([[0.0], [0.0],
                                                               [0.0]])
     self._filter_b, self._filter_a, self._filter_zi = dsp.design_filter(
         self.lowcut_hz, self.highcut_hz, self.fs, 3)
     self._last_t = 0.0
     self._last_move_t = 0.0
     super(MovingLight, self).__initstate__()
 def __initstate__(self):
     super().__initstate__()
     self._filter_b, self._filter_a, self._filter_zi = dsp.design_filter(
         self.lowcut_hz, max(self.highcut_hz, self.lowcut_hz),
         GlobalAudio.sample_rate, 3)
 def __initstate__(self):
     self._filter_b, self._filter_a, self._filter_zi = dsp.design_filter(
         self.lowcut_hz, self.highcut_hz, self.fs, 3)
     super(Bonfire, self).__initstate__()