Skip to content

Instantly share code, notes, and snippets.

View NewProggie's full-sized avatar
👨‍💻
Working...

Kai Wolf NewProggie

👨‍💻
Working...
View GitHub Profile
@NewProggie
NewProggie / gist:3826062
Created October 3, 2012 09:33 — forked from rpls/gist:3760188
Loading and norming WAV files in python.
import wave
import pylab
import os
import numpy as np
def readwavefile(filename):
"""
Reads a WAV file and returns all the frames converted to floats and the framerate.
"""
assert os.path.exists(filename) and os.path.isfile(filename)