Skip to content

Instantly share code, notes, and snippets.

@LennyPenny
Created October 19, 2019 15:04
Show Gist options
  • Save LennyPenny/cdbc8a5a45c3eabb068137854d773aed to your computer and use it in GitHub Desktop.
Save LennyPenny/cdbc8a5a45c3eabb068137854d773aed to your computer and use it in GitHub Desktop.
import aubio
import numpy as num
import pyaudio
from aubio import float_type, source, tempo
p = pyaudio.PyAudio()
stream = p.open(format=pyaudio.paFloat32,
channels=1,
rate=44100,
input=True,
frames_per_buffer=512)
samplerate, win_s, hop_s = 44100, 512, 512
o = tempo("specdiff", win_s, hop_s, samplerate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment