From f8a45bef03c204424ce6783cde7bb35bec585871 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Thu, 5 Mar 2020 15:25:36 +0100 Subject: [PATCH] Added LCd-bar for sound intensity. SMall fix for internal volume correction. --- UI.hpp | 8 ++++---- config.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/UI.hpp b/UI.hpp index bf06565..2076ee0 100644 --- a/UI.hpp +++ b/UI.hpp @@ -1754,8 +1754,8 @@ void UI_func_sound_intensity(uint8_t param) if (LCDML.FUNC_setup()) // ****** SETUP ********* { // setup function - lcd.setCursor(0, 0); - lcd.print(F("Sound Intens.")); + lcd_special_chars(BLOCKBAR); + lcd_display_bar_int("Sound Intens.", configuration.dexed[instance_id].sound_intensity, SOUND_INTENSITY_MIN, SOUND_INTENSITY_MAX, 3, false, false, false, true); } if (LCDML.FUNC_loop()) // ****** LOOP ********* @@ -1784,13 +1784,13 @@ void UI_func_sound_intensity(uint8_t param) MicroDexed[instance_id]->fx.Gain = configuration.dexed[instance_id].sound_intensity / 100.0; } - lcd.setCursor(0, 1); - lcd_display_int(configuration.dexed[instance_id].sound_intensity, 3, true, true, false); + lcd_display_bar_int("Sound Intens.", configuration.dexed[instance_id].sound_intensity, SOUND_INTENSITY_MIN, SOUND_INTENSITY_MAX, 3, false, false, false, false); } if (LCDML.FUNC_close()) // ****** STABLE END ********* { // you can here reset some global vars or do nothing + lcd_special_chars(SCROLLBAR); eeprom_write(); } } diff --git a/config.h b/config.h index ebd746d..6d23c94 100644 --- a/config.h +++ b/config.h @@ -97,7 +97,7 @@ #define AUDIO_MEM 384 #endif #define REDUCE_LOUDNESS 0 -#define REDUCE_LOUDNESS_FACTOR 0.65 +//#define REDUCE_LOUDNESS_FACTOR 1.0 #else // IF TEENSY_AUDIO_BOARD #define SGTL5000_LINEOUT_LEVEL 29 #if AUDIO_BLOCK_SAMPLES == 64