background preloader

Python-oscilloscope

Facebook Twitter

Python-stripchart

Python-physics. >>> Realtime FFT Graph of Audio WAV File or Microphone Input with Python, Scipy, and WCKgraph « SWHarden.com. Fftpack from Tkinter import *import threadingimport time, datetimeimport wckgraphimport math #ADJUST THIS TO CHANGE SPEED/SIZE OF FFTbufferSize=2**11#bufferSize=2**8 # ADJUST THIS TO CHANGE SPEED/SIZE OF FFTsampleRate=48100 #sampleRate=64000 p = pyaudio.PyAudio()chunks=[]ffts=[]def stream(): global chunks, inStream, bufferSize while True: chunks.append(inStream.read(bufferSize)) def record(): global w, inStream, p, bufferSize inStream = p.open(format=pyaudio.paInt16,channels=1,\ rate=sampleRate,input=True,frames_per_buffer=bufferSize) threading.Thread(target=stream).start()

>>> Realtime FFT Graph of Audio WAV File or Microphone Input with Python, Scipy, and WCKgraph « SWHarden.com

Animation example code: strip_chart_demo.py — Matplotlib v1.0.0 documentation. [source code] """Emulate an oscilloscope.

animation example code: strip_chart_demo.py — Matplotlib v1.0.0 documentation

Requires the animation API introduced inmatplotlib 1.0 SVN. """ Bus Pirate: Python Oscilloscope. USB-based Oscilloscope (beta) Bus Pirate.