Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit ce20bce854dfcbca5d2673638ac65f60661533ba 1 parent 4f02964
@pasky pasky authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 host_python/equalizer.py
View
4 host_python/equalizer.py
@@ -12,7 +12,7 @@
import ledbar
-CHUNK_SIZE = 1024
+CHUNK_SIZE = 256
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 44100
@@ -21,7 +21,7 @@
LAZY = 0
SYMMETRIC = 0
-HISTORY_SIZE = 4
+HISTORY_SIZE = 8
MIN_FREQ = 30
MAX_FREQ = 12000
Please sign in to comment.
Something went wrong with that request. Please try again.