Update visualization.py
Better beat detection parameters with new mel scale
This commit is contained in:
parent
5e68b99b28
commit
9e594b2e90
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user