diff options
author | Andrzej Rybczak <andrzej@rybczak.net> | 2020-12-14 08:19:59 +0100 |
---|---|---|
committer | Andrzej Rybczak <andrzej@rybczak.net> | 2020-12-14 08:19:59 +0100 |
commit | ee664775a19f234d634d9df5907438825cf81673 (patch) | |
tree | 8641643604e4de07a21c676a0a7474d327af7da0 | |
parent | 54a0c9a46ed69ffb88ed22cf78731b4198b16321 (diff) |
Increase range of visualizer_spectrum_dft_size
-rw-r--r-- | doc/config | 4 | ||||
-rw-r--r-- | doc/ncmpcpp.1 | 2 | ||||
-rw-r--r-- | src/settings.cpp | 6 |
3 files changed, 6 insertions, 6 deletions
@@ -105,11 +105,11 @@ # #visualizer_spectrum_smooth_look = yes # -## A value between 0 and 4 inclusive. Specifying a larger value makes the +## A value between 1 and 7 inclusive. Specifying a larger value makes the ## visualizer look at a larger slice of time, which results in less jumpy ## visualizer output. # -#visualizer_spectrum_dft_size = 2 +#visualizer_spectrum_dft_size = 4 # #visualizer_spectrum_gain = 20 # diff --git a/doc/ncmpcpp.1 b/doc/ncmpcpp.1 index b3740b52..affa0049 100644 --- a/doc/ncmpcpp.1 +++ b/doc/ncmpcpp.1 @@ -107,7 +107,7 @@ Automatically scale visualizer size. For spectrum visualizer, use unicode block characters for a smoother, more continuous look. This will override the visualizer_look option. With transparent terminals and visualizer_in_stereo set, artifacts may be visible on the bottom half of the visualization. .TP .B visualizer_spectrum_dft_size = NUMBER -For spectrum visualizer, a value between 0 and 4 inclusive. Specifying a larger value makes the visualizer look at a larger slice of time, which results in less jumpy visualizer output. +For spectrum visualizer, a value between 1 and 7 inclusive. Specifying a larger value makes the visualizer look at a larger slice of time, which results in less jumpy visualizer output. .TP .B visualizer_spectrum_gain = dB Gain for spectrum visualizer in dB, larger/smaller values shift bars up/down. diff --git a/src/settings.cpp b/src/settings.cpp index a71055d2..d65aee73 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -296,10 +296,10 @@ bool Configuration::read(const std::vector<std::string> &config_paths, bool igno p.add("visualizer_autoscale", &visualizer_autoscale, "no", yes_no); p.add("visualizer_spectrum_smooth_look", &visualizer_spectrum_smooth_look, "yes", yes_no); p.add("visualizer_spectrum_dft_size", &visualizer_spectrum_dft_size, - "2", [](std::string v) { + "4", [](std::string v) { uint32_t result = verbose_lexical_cast<uint32_t>(v); - boundsCheck<uint32_t>(result, 0, 4); - return result + 14; + boundsCheck<uint32_t>(result, 1, 7); + return result + 11; }); p.add("visualizer_spectrum_gain", &visualizer_spectrum_gain, "20", [](std::string v) { |