Skip to content

Instantly share code, notes, and snippets.

@jpcima jpcima/DF.diff
Created May 30, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.