Created
July 26, 2019 02:02
-
-
Save tpott/71cf6c441a01242db27041e4d319d2b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import numpy as np | |
import matplotlib.pyplot as plt | |
data = np.loadtxt('some_wav_to_tsv.tsv') | |
func = np.vectorize(lambda x: math.log(max(0.001, abs(x)))) | |
# skip column 1, row number, and column 2, max_i | |
plt.pcolormesh(func(data[:,2:].T)) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment