From 5ea64d3e077e2d08c6be7c42dbf8dd980e1c64a4 Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 26 Jun 2022 12:47:43 -0700 Subject: [PATCH] Comments --- src/ergodox.cpp | 3 +++ src/signal_processing/fft.hpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ergodox.cpp b/src/ergodox.cpp index fe2e094..8f14cb9 100644 --- a/src/ergodox.cpp +++ b/src/ergodox.cpp @@ -51,6 +51,9 @@ Ergodox& Ergodox::init( return Instance; } + +// Instance is a static function variable, +// and will be deleted at end of program. Ergodox::~Ergodox() { close(); hid_exit(); diff --git a/src/signal_processing/fft.hpp b/src/signal_processing/fft.hpp index 738f7ec..b51e8c0 100644 --- a/src/signal_processing/fft.hpp +++ b/src/signal_processing/fft.hpp @@ -43,9 +43,9 @@ class FFT_Visualizer { // Visualizer parameters /// - // How many bars this visualizer will generate + // Horizontal resolution const size_t width; - // Resolution of this visualizer's bars. + // Vertical resolution const size_t height; // Leftmost frequency in spectrum const double HZ_MIN;