Skip to content

Instantly share code, notes, and snippets.

@jfsantos
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfsantos/82de18a9c87b6d3d942a to your computer and use it in GitHub Desktop.
Save jfsantos/82de18a9c87b6d3d942a to your computer and use it in GitHub Desktop.
from gammatone.fftweight import fft_gtgram
from scipy.io.matlab import loadmat
s = loadmat("test.mat")["s"][:,0]
fs = 16000
# gt_py has 260 frames
gt_py = fft_gtgram(s, fs, 0.010, 0.0025, 23, 125)
# gt_mat has 269 frames
gt_mat = loadmat("tempEnv.mat")["tempEnv"]
assert gt_py.shape == gt_mat.shape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment