audio_visualize_6.py 283 B

123456789
  1. def music_visualize_2d(self):
  2. t = np.linspace(0, 2 * np.pi, self.window)
  3. fig = plt.figure(facecolor='black')
  4. ax = fig.gca(projection='polar')
  5. ax.set_axis_off()
  6. lf, = ax.plot(t, np.zeros(self.window), lw=1, color='lightblue')
  7. plt.pause(self.record_delay)