diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-07-09 20:08:53 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-07-09 20:08:53 +0200 |
commit | 353174ee3c5f3990f6745079a3fcb8dd98f728e0 (patch) | |
tree | e390451504bfd953addc26ddcf6fd61f300a67cf | |
parent | 2d641d087fe923c94f3d3c558cb317db1b0041a7 (diff) | |
download | nncmpp-353174ee3c5f3990f6745079a3fcb8dd98f728e0.tar.gz nncmpp-353174ee3c5f3990f6745079a3fcb8dd98f728e0.tar.xz nncmpp-353174ee3c5f3990f6745079a3fcb8dd98f728e0.zip |
Spetrum analyser: expand my favourite comment
-rw-r--r-- | nncmpp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -793,7 +793,8 @@ 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.) + // (Note that you can increase window overlap to get smoother framerates, + // but it would remain laggy.) double audible_ratio = s->sampling_rate / 2. / 20000; s->bins = ceil (necessary_bins * MAX (audible_ratio, 1)); s->useful_bins = s->bins / 2; |