From eefc261c423e900c2f093b4d5f039a377ef90711 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Fri, 20 Jan 2023 14:28:57 +0100 Subject: [PATCH] Fixed EP default tuning. --- UI.hpp | 4 ++-- config.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/UI.hpp b/UI.hpp index f40d1e0..b3d673c 100644 --- a/UI.hpp +++ b/UI.hpp @@ -2286,7 +2286,7 @@ void UI_func_epiano_tune(uint8_t param) { encoderDir[ENC_R].reset(); lcd_special_chars(METERBAR); - display_meter_int("EP Tune", configuration.epiano.tune, 1.0, -100.0, EP_TUNE_MIN, EP_TUNE_MAX, 3, false, true, true); + display_bar_int("EP Tune", configuration.epiano.tune, 1.0, EP_TUNE_MIN, EP_TUNE_MAX, 3, false, true, true); } if (LCDML.FUNC_loop()) // ****** LOOP ********* @@ -2301,7 +2301,7 @@ void UI_func_epiano_tune(uint8_t param) { } } - display_meter_int("EP Tune", configuration.epiano.tune, 1.0, -100.0, EP_TUNE_MIN, EP_TUNE_MAX, 3, false, true, false); + display_bar_int("EP Tune", configuration.epiano.tune, 1.0, EP_TUNE_MIN, EP_TUNE_MAX, 3, false, true, false); ep.setTune(mapfloat(configuration.epiano.tune, EP_TUNE_MIN, EP_TUNE_MAX, 0.0, 1.0)); } diff --git a/config.h b/config.h index 0a3a6d4..66a8f50 100644 --- a/config.h +++ b/config.h @@ -649,9 +649,9 @@ #define EP_POLYPHONY_MAX NUM_EPIANO_VOICES #define EP_POLYPHONY_DEFAULT NUM_EPIANO_VOICES -#define EP_TUNE_MIN 1 -#define EP_TUNE_MAX 199 -#define EP_TUNE_DEFAULT 100 +#define EP_TUNE_MIN 0 +#define EP_TUNE_MAX 100 +#define EP_TUNE_DEFAULT 0 #define EP_DETUNE_MIN 0 #define EP_DETUNE_MAX 100