Skip to content

Instantly share code, notes, and snippets.

Avatar

Coleman Lab Archives ufcolemanlab

View GitHub Profile
@Pretz
Pretz / generate.py
Created Feb 8, 2012
CSV to WAV: Needed a way to convert a list of numbers in a CSV file to a wave audio file. Go python.
View generate.py
#!/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):