Added LCd-bar for sound intensity.

SMall fix for internal volume correction.
pull/32/head
Holger Wirtz 5 years ago
parent 048b55c4a2
commit f8a45bef03
  1. 8
      UI.hpp
  2. 2
      config.h

@ -1754,8 +1754,8 @@ void UI_func_sound_intensity(uint8_t param)
if (LCDML.FUNC_setup()) // ****** SETUP ********* if (LCDML.FUNC_setup()) // ****** SETUP *********
{ {
// setup function // setup function
lcd.setCursor(0, 0); lcd_special_chars(BLOCKBAR);
lcd.print(F("Sound Intens.")); 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 ********* 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; MicroDexed[instance_id]->fx.Gain = configuration.dexed[instance_id].sound_intensity / 100.0;
} }
lcd.setCursor(0, 1); lcd_display_bar_int("Sound Intens.", configuration.dexed[instance_id].sound_intensity, SOUND_INTENSITY_MIN, SOUND_INTENSITY_MAX, 3, false, false, false, false);
lcd_display_int(configuration.dexed[instance_id].sound_intensity, 3, true, true, false);
} }
if (LCDML.FUNC_close()) // ****** STABLE END ********* if (LCDML.FUNC_close()) // ****** STABLE END *********
{ {
// you can here reset some global vars or do nothing // you can here reset some global vars or do nothing
lcd_special_chars(SCROLLBAR);
eeprom_write(); eeprom_write();
} }
} }

@ -97,7 +97,7 @@
#define AUDIO_MEM 384 #define AUDIO_MEM 384
#endif #endif
#define REDUCE_LOUDNESS 0 #define REDUCE_LOUDNESS 0
#define REDUCE_LOUDNESS_FACTOR 0.65 //#define REDUCE_LOUDNESS_FACTOR 1.0
#else // IF TEENSY_AUDIO_BOARD #else // IF TEENSY_AUDIO_BOARD
#define SGTL5000_LINEOUT_LEVEL 29 #define SGTL5000_LINEOUT_LEVEL 29
#if AUDIO_BLOCK_SAMPLES == 64 #if AUDIO_BLOCK_SAMPLES == 64

Loading…
Cancel
Save