Skip to content

Commit 5677391

Browse files
committed
fixed some smothing parameters to work better with config
1 parent 6b7da17 commit 5677391

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ thanks to [anko](https://github.com/anko) for the gif, here is the [recipe]( htt
1616
Updates
1717
-------
1818

19+
7/15/2015 - 0.3.1 - added config file
20+
21+
7/12/2015 - 0.3.0 - Modular source code
22+
1923
5/23/2015 - 0.2.0 - Switched to ncurses
2024

2125
4/23/2015 - Fixed terminal window resizing, added smoothing
@@ -27,7 +31,7 @@ Updates
2731
What it is
2832
----------
2933

30-
C.A.V.A. is a bar spectrum analyzer for audio using ALSA for input. Its frequency range is limited to 50-12,000Hz. I know that the human ear can hear from 20 up to 20,000 Hz (and probably "sense" even higher frequencies), but the frequencies between 50-12,000Hz seem to me to be the most distinguishable. (I believe telephones used to be limited to as low as 8kHz.)
34+
C.A.V.A. is a bar spectrum analyzer for audio using ALSA for input. Its frequency range is limited to 50-10,000Hz. I know that the human ear can hear from 20 up to 20,000 Hz (and probably "sense" even higher frequencies), but the frequencies between 50-12,000Hz seem to me to be the most distinguishable. (I believe telephones used to be limited to as low as 8kHz.)
3135

3236
This program is not intended for scientific use.
3337

@@ -322,4 +326,4 @@ This one is tricky. You can have as much keys as you want. More keys = more prec
322326
4=1
323327
5=0.5
324328

325-
![3_139](https://cloud.githubusercontent.com/assets/6376571/8670181/9db0ef50-29e8-11e5-81bc-3e2bb9892da0.png)
329+
![3_139](https://cloud.githubusercontent.com/assets/6376571/8670181/9db0ef50-29e8-11e5-81bc-3e2bb9892da0.png)

cava.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ int main(int argc, char **argv)
106106
int mode = 1;
107107
int modes = 3; // amount of smoothing modes
108108
double monstercat = 1.5 * iniparser_getdouble(ini, "smoothing:monstercat", 1);
109-
double integral = 0.7 * iniparser_getdouble(ini, "smoothing:integral", 1);
109+
double integral = iniparser_getdouble(ini, "smoothing:integral", 0.7);
110110
double gravity = iniparser_getdouble(ini, "smoothing:gravity", 1);
111111
float fc[200];
112112
float fr[200];

example_files/config

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
[smoothing]
2222
; integral = 0.7 # multiplier for the integral smoothing calculations. Higher values means smoother, but less precise. 0 to disable.
2323
; monstercat = 1 # disables or enables the so-called "Monstercat smoothing". Default: 1. Set to 0 to disable.
24-
; gravity = 1 # Set gravity multiplier for "drop off". Higher values means smoother, but less precise. Accepts only non-negative values. Set to 0 to disable "drop off".
24+
; gravity = 1 # Set gravity multiplier for "drop off". Higher values means bars will drop faster. Accepts only non-negative values. Set to 0 to disable "drop off".
2525

2626
[eq]
2727
# This one is tricky. You can have as much keys as you want. More keys = more precision. Look at readme.md on github for further explanations and examples.
28-
; 1 = 1 # base
28+
; 1 = 1 # bass
2929
; 2 = 1
3030
; 3 = 1
3131
; 4 = 1

0 commit comments

Comments
 (0)