@ -1361,7 +1361,6 @@ void UI_func_delay_level(uint8_t param)
lcd_display_bar_int ( " Delay Lvl. " , configuration . fx . delay_level [ selected_instance_id ] , 1.0 , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 3 , false , false , false ) ;
lcd_display_bar_int ( " Delay Lvl. " , configuration . fx . delay_level [ selected_instance_id ] , 1.0 , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 3 , false , false , false ) ;
delay_mixer [ selected_instance_id ] - > gain ( 1 , pseudo_log_curve ( mapfloat ( configuration . fx . delay_level [ selected_instance_id ] , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 0.0 , 1.0 ) ) ) ;
if ( configuration . fx . delay_level [ selected_instance_id ] < = DELAY_LEVEL_MIN )
if ( configuration . fx . delay_level [ selected_instance_id ] < = DELAY_LEVEL_MIN )
delay_fx [ selected_instance_id ] - > disable ( 0 ) ;
delay_fx [ selected_instance_id ] - > disable ( 0 ) ;
else
else
@ -4083,7 +4082,7 @@ void UI_func_save_performance(uint8_t param)
delay ( MESSAGE_WAIT_TIME ) ;
delay ( MESSAGE_WAIT_TIME ) ;
}
}
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( sys_s , performance_number ) , configuration . sys . performance_number ) ;
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( configuration_s , sys . performance_number ) , configuration . sys . performance_number ) ;
encoderDir [ ENC_R ] . reset ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -4181,10 +4180,10 @@ void UI_func_load_voiceconfig(uint8_t param)
# if NUM_DEXED > 1
# if NUM_DEXED > 1
if ( selected_instance_id > 0 )
if ( selected_instance_id > 0 )
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( performance_s , voiceconfig_number [ 1 ] ) , configuration . performance . voiceconfig_number [ 1 ] ) ;
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( configuration_s , performance . voiceconfig_number [ 1 ] ) , configuration . performance . voiceconfig_number [ 1 ] ) ;
else
else
# endif
# endif
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( performance_s , voiceconfig_number [ 0 ] ) , configuration . performance . voiceconfig_number [ 0 ] ) ;
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( configuration_s , performance . voiceconfig_number [ 0 ] ) , configuration . performance . voiceconfig_number [ 0 ] ) ;
encoderDir [ ENC_R ] . reset ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -4330,10 +4329,10 @@ void UI_func_save_voiceconfig(uint8_t param)
# if NUM_DEXED > 1
# if NUM_DEXED > 1
if ( selected_instance_id > 0 )
if ( selected_instance_id > 0 )
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( performance_s , voiceconfig_number [ 1 ] ) , configuration . performance . voiceconfig_number [ 1 ] ) ;
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( configuration_s , performance . voiceconfig_number [ 1 ] ) , configuration . performance . voiceconfig_number [ 1 ] ) ;
else
else
# endif
# endif
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( performance_s , voiceconfig_number [ 0 ] ) , configuration . performance . voiceconfig_number [ 0 ] ) ;
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( configuration_s , performance . voiceconfig_number [ 0 ] ) , configuration . performance . voiceconfig_number [ 0 ] ) ;
encoderDir [ ENC_R ] . reset ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -4402,7 +4401,7 @@ void UI_func_load_fx(uint8_t param)
else
else
eeprom_update_fx ( ) ;
eeprom_update_fx ( ) ;
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( performance_s , fx_number ) , configuration . performance . fx_number ) ;
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( configuration_s , performance . fx_number ) , configuration . performance . fx_number ) ;
encoderDir [ ENC_R ] . reset ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -4524,7 +4523,7 @@ void UI_func_save_fx(uint8_t param)
delay ( MESSAGE_WAIT_TIME ) ;
delay ( MESSAGE_WAIT_TIME ) ;
}
}
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( performance_s , fx_number ) , configuration . performance . fx_number ) ;
EEPROM . update ( EEPROM_START_ADDRESS + offsetof ( configuration_s , performance . fx_number ) , configuration . performance . fx_number ) ;
encoderDir [ ENC_R ] . reset ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}