audio_visualize_8.py 368 B

1234567891011
  1. def music_visualize_3d(self):
  2. t = np.linspace(0, 2 * np.pi, self.window)
  3. x, y = np.cos(t), np.sin(t)
  4. fig = plt.figure()
  5. ax = fig.gca(projection='3d')
  6. ax.set_axis_off()
  7. lf, = ax.plot(x, y, np.zeros(self.window), lw=1, color='lightblue')
  8. lf2, = ax.plot(x, y, np.zeros(self.window), lw=1, color='orange')
  9. plt.pause(self.record_delay)