Skip to content

Instantly share code, notes, and snippets.

View steveherrin's full-sized avatar

Steve Herrin steveherrin

  • Mountain View, CA
View GitHub Profile
@steveherrin
steveherrin / scope.py
Last active August 9, 2017 20:30 — forked from rfmerrill/scope.py
#!/usr/bin/env python
import numpy as np
import cv2
import sys
import scipy.io.wavfile
import scipy.signal
MIDDLE_RANGE = 2**15
ARBITRARY_MAX_RANGE = 65600 # we use 65600 instead of 65536 so we don't go off the edge