Skip to content

Instantly share code, notes, and snippets.

@jpcima
Created May 30, 2019 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpcima/d9d0bb414aa3e3503a17d3efcb540bc4 to your computer and use it in GitHub Desktop.
Save jpcima/d9d0bb414aa3e3503a17d3efcb540bc4 to your computer and use it in GitHub Desktop.
diff --git a/common/Spectrogram.cpp b/common/Spectrogram.cpp
index a4a663a..92ac259 100644
--- a/common/Spectrogram.cpp
+++ b/common/Spectrogram.cpp
@@ -172,7 +172,7 @@ void Spectrogram::onDisplay() {
fNanoText->fontSize ( 16 );
fNanoText->textAlign ( NanoVG::ALIGN_RIGHT | NanoVG::ALIGN_MIDDLE );
- for ( int i = 0 ; i < 6 ; i++ ) {
+ for ( int i = 0 ; i < 5 ; i++ ) {
int x = ( int ) ( image->getWidth() * logf ( decayTime[i] / SPECTROGRAM_MIN_SECONDS ) / logf ( SPECTROGRAM_MAX_SECONDS / SPECTROGRAM_MIN_SECONDS ) );
fNanoText->textBox ( x , getHeight() - 5 , 40.0f , decayTimeString[i].c_str(), nullptr );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment