Skip to content

Instantly share code, notes, and snippets.

View ufcolemanlab's full-sized avatar

Coleman Lab Archives ufcolemanlab

View GitHub Profile
@Pretz
Pretz / generate.py
Created February 8, 2012 21:04
CSV to WAV: Needed a way to convert a list of numbers in a CSV file to a wave audio file. Go python.
#!/usr/bin/python
import wave
import numpy
import struct
import sys
import csv
from scikits.samplerate import resample
def write_wav(data, filename, framerate, amplitude):