|
|
|
@ -1281,10 +1281,10 @@ void UI_func_delay_time(uint8_t param) { |
|
|
|
|
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); |
|
|
|
|
MD_sendControlChange(configuration.dexed[selected_instance_id].midi_channel, 105, configuration.fx.delay_time[selected_instance_id]); |
|
|
|
|
} 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); |
|
|
|
|
MD_sendControlChange(configuration.dexed[selected_instance_id].midi_channel, 105, configuration.fx.delay_time[selected_instance_id]); |
|
|
|
|
} |
|
|
|
|
} 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); |
|
|
|
|
MD_sendControlChange(configuration.dexed[selected_instance_id].midi_channel, 105, configuration.fx.delay_time[selected_instance_id]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if NUM_DEXED > 1 |
|
|
|
@ -1296,7 +1296,7 @@ void UI_func_delay_time(uint8_t param) { |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#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 |
|
|
|
|
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 |
|
|
|
|