From 353174ee3c5f3990f6745079a3fcb8dd98f728e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Fri, 9 Jul 2021 20:08:53 +0200 Subject: Spetrum analyser: expand my favourite comment --- nncmpp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nncmpp.c b/nncmpp.c index 8677635..bf97a5e 100644 --- a/nncmpp.c +++ b/nncmpp.c @@ -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; -- cgit v1.2.3