Skip to content

Commit 851b6e7

Browse files
committed
UI: Fix param display: LFO speed, Cutoff frequency
- LFO speed range is: 0.0 ~ 50.0 Hz - Cutoff frequency range is: 0.0 ~ 24000.0 Hz
1 parent d150285 commit 851b6e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CetoneUI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ void CCetoneUI::onDisplay()
531531
fNanoText.textBox(514 + 48, 96, 45.0f, fLabelBuffer);
532532

533533
// Cutoff
534-
std::snprintf(fLabelBuffer, 32, "%.1f", fKnobCutoff->getValue() * 100.0f);
534+
std::snprintf(fLabelBuffer, 32, "%.1f", fKnobCutoff->getValue() * 24000.0f); // Cutoff frequency range: 0.0 ~ 24000.0 Hz
535535
fNanoText.textBox(514 + 48 * 2, 96, 45.0f, fLabelBuffer);
536536

537537
// Resonance
@@ -651,7 +651,7 @@ void CCetoneUI::onDisplay()
651651

652652
/* LFO */
653653
// Speed
654-
std::snprintf(fLabelBuffer, 32, "%.2f", fLfoSpeed->getValue() * 100.0f);
654+
std::snprintf(fLabelBuffer, 32, "%.2f", fLfoSpeed->getValue() * 50.0f); // Speed range: 0.0 ~ 50.0 Hz
655655
fNanoText.textBox(534, 316, 45.0f, fLabelBuffer);
656656

657657
// Waveform

0 commit comments

Comments
 (0)