Skip to content

Commit

Permalink
fixed text resolution display for pedalGainSlider
Browse files Browse the repository at this point in the history
  • Loading branch information
dantrueman committed Sep 21, 2023
1 parent 4d95098 commit 44b4774
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bk_JUCE/bitKlavier/Source/Direct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ void DirectProcessor::keyReleased(int noteNumber, Array<float>& targetVelocities
bVels = &velocities.getReference(noteNumber);
}

DBG("Direct::keyreleased called");

if (bVels->getUnchecked(TargetTypeDirect) < 0.f) return;

// DBG("DirectProcessor::keyReleased " + String(noteNumber) + " keyPlayed[noteNumber].size = " + String(keyPlayed[noteNumber].size()));
Expand Down
1 change: 1 addition & 0 deletions bk_JUCE/bitKlavier/Source/GeneralViewController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ compressorView(p.compressor, p)
pedalGainSlider = std::make_unique<BKSingleSlider>("pedal volume (dB)",ptagGeneral_pedalGain, -100, 24, 0, 0.01, "-inf");
pedalGainSlider->setJustifyRight(false);
pedalGainSlider->addMyListener(this);
pedalGainSlider->setSliderTextResolution(2);
addAndMakeVisible(*pedalGainSlider);
tempoMultiplierSlider = std::make_unique<BKSingleSlider>("tempo multiplier", "tempo multiplier", 0.25, 4., 1., 0.01);
tempoMultiplierSlider->setSkewFactorFromMidPoint(1.);
Expand Down

0 comments on commit 44b4774

Please sign in to comment.