Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Petr Baudis authored September 14, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  host_python/equalizer.py
4  host_python/equalizer.py
@@ -12,7 +12,7 @@
12 12
 
13 13
 import ledbar
14 14
 
15  
-CHUNK_SIZE = 1024
  15
+CHUNK_SIZE = 256
16 16
 FORMAT = pyaudio.paInt16
17 17
 CHANNELS = 1
18 18
 RATE = 44100
@@ -21,7 +21,7 @@
21 21
 LAZY = 0
22 22
 SYMMETRIC = 0
23 23
 
24  
-HISTORY_SIZE = 4
  24
+HISTORY_SIZE = 8
25 25
 MIN_FREQ = 30
26 26
 MAX_FREQ = 12000
27 27
 

0 notes on commit ce20bce

Please sign in to comment.
Something went wrong with that request. Please try again.