audio_experiment/visualiser/plotter.py

11 lines
215 B
Python
Raw Normal View History

2022-02-20 17:34:22 +01:00
# import numpy
import matplotlib.pyplot as plt
import numpy as np
#load the saved data
data = np.load('song.npy')
#remap tmp from -1 to 1 to 0 to 255
tmp = (data + 1) * 127.5
#plot the data
plt.plot(tmp)
plt.show()