Esempio n. 1
0
 def __init__(self, m, n):
     PanelPattern.__init__(self, m, n)
     self.call_name = 'hoodFlash'
     self.frame_sleep_time = 0.0
     self.pix_np = np.zeros([3, self.m, self.n])
     self.sleeveL = np.zeros([3, 40])
     self.sleeveR = np.zeros([3, 40])
     self.head = np.zeros([3, 30])
     self.colorWheel = patternHelpers.getColorWheel(300)
     self.frameNum = 0
Esempio n. 2
0
 def __init__(self, m, n):
     PanelPattern.__init__(self, m, n)
     self.call_name = 'arScroll'
     self.frameCount = 0
     self.frame_sleep_time = 0.0
     self.pix_np = np.zeros([3, self.m, self.n])
     self.stream = micStream.Stream(fps=40, nBuffers=8)
     self.volumeFilter = music.ExpFilter(0.01,
                                         alpha_rise=0.1,
                                         alpha_decay=0.1)
     self.spectrumFilter = music.ExpFilter(np.zeros_like(self.stream.notes),
                                           alpha_rise=0.5,
                                           alpha_decay=0.5)
     self.colorWheel = patternHelpers.getColorWheel(300)