Created
October 19, 2019 15:04
-
-
Save LennyPenny/cdbc8a5a45c3eabb068137854d773aed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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