diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-07-07 17:55:44 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-07-08 04:32:53 +0200 |
commit | 14ba637d4bf4de3bed7a206c9ff885936d694741 (patch) | |
tree | 46a639c589838000ab55e86bbc99153d26c66477 | |
parent | 66bc3f1c2ccb1407ec09d6339c41577fcea0ce67 (diff) | |
download | nncmpp-14ba637d4bf4de3bed7a206c9ff885936d694741.tar.gz nncmpp-14ba637d4bf4de3bed7a206c9ff885936d694741.tar.xz nncmpp-14ba637d4bf4de3bed7a206c9ff885936d694741.zip |
Expand the last comment once again
-rw-r--r-- | nncmpp.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |