123456789101112 |
- def music_visualize_1d(self):
- fig = plt.figure(facecolor='black')
- ax = fig.gca()
- norm = plt.Normalize(-1., 1.)
- lc = LineCollection([], cmap='cool', norm=norm)
- ax.set_ylim(-1.5, 1.5)
- ax.set_axis_off()
- time = np.linspace(0, 2 * np.pi, self.window)
- ax.add_collection(lc)
- plt.pause(self.record_delay)
-
|