From ce20bce854dfcbca5d2673638ac65f60661533ba Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 14 Sep 2012 22:44:55 +0200 Subject: [PATCH] equalizer: Shorten CHUNK_SIZE, partially compensate with HISTORY_SIZE CHUNK_SIZE will make the FFT buckets bigger, causing better space usage by pixels; it will also reduce latency. with original HISTORY_SIZE, there is too much flicker. --- host_python/equalizer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host_python/equalizer.py b/host_python/equalizer.py index 9a003b5..d4916ae 100755 --- a/host_python/equalizer.py +++ b/host_python/equalizer.py @@ -12,7 +12,7 @@ from datetime import datetime import ledbar -CHUNK_SIZE = 1024 +CHUNK_SIZE = 256 FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 44100 @@ -21,7 +21,7 @@ PIXELS = 20 LAZY = 0 SYMMETRIC = 0 -HISTORY_SIZE = 4 +HISTORY_SIZE = 8 MIN_FREQ = 30 MAX_FREQ = 12000