Skip to content

Instantly share code, notes, and snippets.

@tpott
Created July 26, 2019 02:02
Show Gist options
  • Save tpott/71cf6c441a01242db27041e4d319d2b0 to your computer and use it in GitHub Desktop.
Save tpott/71cf6c441a01242db27041e4d319d2b0 to your computer and use it in GitHub Desktop.
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