Skip to content

Instantly share code, notes, and snippets.

@jul
Created June 24, 2012 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 jul/2983362 to your computer and use it in GitHub Desktop.
Save jul/2983362 to your computer and use it in GitHub Desktop.
spectrogram 1st step
from scikits.audiolab import Sndfile
import numpy as np
import pylab as plt
from numpy import fft
koln=Sndfile("test.wav")
sample=koln.read_frames(18300000)
plt.specgram(sample[:,1])
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment