Update visualization.py

Better beat detection parameters with new mel scale
This commit is contained in:
not-matt 2017-12-27 16:49:15 +00:00 committed by GitHub
parent 5e68b99b28
commit 9e594b2e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,8 +68,8 @@ class Visualizer():
"low":0, "low":0,
"mid":0, "mid":0,
"high":0} "high":0}
self.detection_ranges = {"beat":(0,1), self.detection_ranges = {"beat":(0,3),
"low":(1,int(config.N_FFT_BINS*0.2)), "low":(3,int(config.N_FFT_BINS*0.2)),
"mid":(int(config.N_FFT_BINS*0.4),int(config.N_FFT_BINS*0.6)), "mid":(int(config.N_FFT_BINS*0.4),int(config.N_FFT_BINS*0.6)),
"high":(int(config.N_FFT_BINS*0.7),int(config.N_FFT_BINS))} "high":(int(config.N_FFT_BINS*0.7),int(config.N_FFT_BINS))}
self.min_detect_amplitude = {"beat":0.7, self.min_detect_amplitude = {"beat":0.7,