aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-07-07 17:55:44 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-07-08 04:32:53 +0200
commit14ba637d4bf4de3bed7a206c9ff885936d694741 (patch)
tree46a639c589838000ab55e86bbc99153d26c66477
parent66bc3f1c2ccb1407ec09d6339c41577fcea0ce67 (diff)
downloadnncmpp-14ba637d4bf4de3bed7a206c9ff885936d694741.tar.gz
nncmpp-14ba637d4bf4de3bed7a206c9ff885936d694741.tar.xz
nncmpp-14ba637d4bf4de3bed7a206c9ff885936d694741.zip
Expand the last comment once again
-rw-r--r--nncmpp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nncmpp.c b/nncmpp.c
index 9902d9d..8115101 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -781,6 +781,7 @@ spectrum_init (struct spectrum *s, char *format, int bars, struct error **e)
// having the amount of bins be strictly a factor of Nyquist / 20 (stemming
// from the equation 20 = Nyquist / bins). Since log2(44100 / 2 / 20) > 10,
// it would be fairly expensive, and somewhat slowly updating. Always.
+ // (Note that you can increase window overlap to get smoother framerates.)
double audible_ratio = s->sampling_rate / 2. / 20000;
s->bins = ceil (necessary_bins * MAX (audible_ratio, 1));
s->useful_bins = s->bins / 2;