11 lines
215 B
Python
11 lines
215 B
Python
|
# 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()
|