You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Number of bars is now automatic (fill up console), but can also be specified.
Bar width is always static, defaults to 3 charachters.
Cleared up usage of the words bands and bars in sourcecode.
Now mostly using bars.
if the config file already exists, the new settings must be added manually.
-b 1..(console columns/2-1) or 200 number of bars in the spectrum (default 25 + fills up the console), program will automatically adjust if there are too many frequency bands)\n\
306
+
-b 1..(console columns/2-1) or 200 number of bars in the spectrum (default 25 + fills up the console), program will automatically adjust if there are too many bars)\n\
303
307
-i 'input method' method used for listening to audio, supports: 'alsa' and 'fifo'\n\
304
308
-o 'output method' method used for outputting processed data, supports: 'ncurses', 'noncurses' and 'circle'\n\
305
309
-d 'alsa device' name of alsa capture device (default 'hw:Loopback,1')\n\
@@ -348,7 +352,8 @@ Options:\n\
348
352
modeString=optarg;
349
353
break;
350
354
case'b': // argument: bar count
351
-
fixedbands=atoi(optarg);
355
+
fixedbars=atoi(optarg);
356
+
if (fixedbars) autobars=0;
352
357
break;
353
358
case'd': // argument: alsa device
354
359
audio.source=optarg;
@@ -461,68 +466,63 @@ Options:\n\
461
466
f[i] =0;
462
467
}
463
468
464
-
465
-
//getting orignial numbers of bands incase of resize
466
-
if (autoband==1) {
467
-
bands=25;
468
-
} elsebands=fixedbands;
469
-
470
-
469
+
471
470
// output: get terminal's geometry
472
471
if (om==1||om==2) get_terminal_dim_ncurses(&w, &h);
473
472
474
473
if (om==3) get_terminal_dim_noncurses(&w, &h);
475
474
475
+
//handle for user setting too many bars
476
+
if (fixedbars) {
477
+
autobars=0;
478
+
if (fixedbars*bw+fixedbars*bs-bs>w) autobars=1;
479
+
}
476
480
477
-
if (bands>w / 2-1)bands=w / 2-
478
-
1; //handle for user setting to many bars
479
-
480
-
if (bands<1) bands=1; // must have at least 1 bar;
481
+
//getting orignial numbers of barss incase of resize
freqconst)); //decided to cut it at 10k, little interesting to hear above
522
522
fr[n] =fc[n] / (audio.rate /
523
523
2); //remember nyquist!, pr my calculations this should be rate/2 and nyquist freq in M/2 but testing shows it is not... or maybe the nq freq is in M/4
524
524
lcf[n] =fr[n] * (M /
525
-
4); //lfc stores the lower cut frequency foo each band in the fft out buffer
525
+
4); //lfc stores the lower cut frequency foo each bar in the fft out buffer
; sensitivity = 100 # is sensitivity %. Accepts only non-negative values.
7
-
; bars = 0 # defines the amount of bars. 0 sets it to auto (25 + fill up leftover space).
8
-
; lower_cutoff_freq = 50 # defines the lower cutof frequency for the far left bar
9
-
; higher_cutoff_freq = 10000 # defines the higher cutoff frequency for the far right bar. Note: there is a minimum total bandwith of 43Mhz x number of bars. Cava will automaticly increase the higher cuttoff if a too low band is specified.
7
+
; bars = 0 # the number of bars. 0 sets it to auto (fil upp console).
8
+
; bar_width = 3 # width of bars.
9
+
; bar_spacing = 1 # space between bars.
10
+
; lower_cutoff_freq = 50 # the lower cutof frequency for the far left bar
11
+
; higher_cutoff_freq = 10000 # the higher cutoff frequency for the far right bar. Note: there is a minimum total bandwith of 43Mhz x number of bars. Cava will automaticly increase the higher cuttoff if a too low band is specified.
0 commit comments