Created
May 30, 2019 19:05
-
-
Save jpcima/d9d0bb414aa3e3503a17d3efcb540bc4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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