Fumofumotris/script/wavtest.py

12 lines
267 B
Python
Raw Normal View History

2024-09-21 16:00:03 +00:00
from scipy.io import wavfile
import numpy as np
import matplotlib.pyplot as plt
srate, data = wavfile.read("nasty.wav")
data = data.flatten()
for i in range(1, len(data)):
data[i] = data[i-1] - data[i]
plt.hist(data, range=(-2**23, 2**23), bins=128)
plt.show()