Fixes for delay.

dev
Holger Wirtz 2 years ago
parent fed0aece56
commit 12f6106d14
  1. 4
      UI.hpp
  2. 2
      config.h

@ -1281,11 +1281,11 @@ void UI_func_delay_time(uint8_t param) {
if (LCDML.BT_checkDown()) { if (LCDML.BT_checkDown()) {
configuration.fx.delay_time[selected_instance_id] = constrain(configuration.fx.delay_time[selected_instance_id] + ENCODER[ENC_R].speed(), DELAY_TIME_MIN, DELAY_TIME_MAX); configuration.fx.delay_time[selected_instance_id] = constrain(configuration.fx.delay_time[selected_instance_id] + ENCODER[ENC_R].speed(), DELAY_TIME_MIN, DELAY_TIME_MAX);
MD_sendControlChange(configuration.dexed[selected_instance_id].midi_channel, 105, configuration.fx.delay_time[selected_instance_id]); MD_sendControlChange(configuration.dexed[selected_instance_id].midi_channel, 105, configuration.fx.delay_time[selected_instance_id]);
}
} else if (LCDML.BT_checkUp()) { } else if (LCDML.BT_checkUp()) {
configuration.fx.delay_time[selected_instance_id] = constrain(configuration.fx.delay_time[selected_instance_id] - ENCODER[ENC_R].speed(), DELAY_TIME_MIN, DELAY_TIME_MAX); configuration.fx.delay_time[selected_instance_id] = constrain(configuration.fx.delay_time[selected_instance_id] - ENCODER[ENC_R].speed(), DELAY_TIME_MIN, DELAY_TIME_MAX);
MD_sendControlChange(configuration.dexed[selected_instance_id].midi_channel, 105, configuration.fx.delay_time[selected_instance_id]); MD_sendControlChange(configuration.dexed[selected_instance_id].midi_channel, 105, configuration.fx.delay_time[selected_instance_id]);
} }
}
#if NUM_DEXED > 1 #if NUM_DEXED > 1
if (LCDML.BT_checkEnter()) { if (LCDML.BT_checkEnter()) {
@ -1296,7 +1296,7 @@ void UI_func_delay_time(uint8_t param) {
#endif #endif
#if DELAY_TIME_MAX >= 1000 #if DELAY_TIME_MAX >= 1000
display_bar_int("Delay Time", configuration.fx.delay_time[selected_instance_id], 10.0, DELAY_TIME_MIN, DELAY_TIME_MAX, 45, false, false, true); display_bar_int("Delay Time", configuration.fx.delay_time[selected_instance_id], 10.0, DELAY_TIME_MIN, DELAY_TIME_MAX, 5, false, false, true);
#elif DELAY_TIME_MAX >= 100 #elif DELAY_TIME_MAX >= 100
display_bar_int("Delay Time", configuration.fx.delay_time[selected_instance_id], 10.0, DELAY_TIME_MIN, DELAY_TIME_MAX, 4, false, false, true); display_bar_int("Delay Time", configuration.fx.delay_time[selected_instance_id], 10.0, DELAY_TIME_MIN, DELAY_TIME_MAX, 4, false, false, true);
#else #else

@ -275,7 +275,7 @@
#define LED_BLINK_MS 1000 #define LED_BLINK_MS 1000
#define SAVE_SYS_MS 5000 #define SAVE_SYS_MS 5000
#define VOL_MAX_FLOAT 0.95 #define VOL_MAX_FLOAT 0.95
#define VOLUME_TRANSFORM_EXP 3.5 #define VOLUME_TRANSFORM_EXP 2.5
#define EEPROM_MARKER 0x4243 #define EEPROM_MARKER 0x4243

Loading…
Cancel
Save