improve docstring comments
This commit is contained in:
@ -227,11 +227,13 @@ void HandleEncoderPressed() {
|
|||||||
case PARAM_MAIN_LOAD_DATA:
|
case PARAM_MAIN_LOAD_DATA:
|
||||||
if (app.selected_sub_param < StateManager::MAX_SAVE_SLOTS) {
|
if (app.selected_sub_param < StateManager::MAX_SAVE_SLOTS) {
|
||||||
app.selected_save_slot = app.selected_sub_param;
|
app.selected_save_slot = app.selected_sub_param;
|
||||||
|
// Load pattern data into app state.
|
||||||
stateManager.loadData(app, app.selected_save_slot);
|
stateManager.loadData(app, app.selected_save_slot);
|
||||||
|
// Load global performance settings if they have changed.
|
||||||
if (gravity.clock.Tempo() != app.tempo) {
|
if (gravity.clock.Tempo() != app.tempo) {
|
||||||
gravity.clock.SetTempo(app.tempo);
|
gravity.clock.SetTempo(app.tempo);
|
||||||
}
|
}
|
||||||
// If clock is active, just load the pattern, do not change other global state.
|
// Load global settings only clock is not active.
|
||||||
if (gravity.clock.IsPaused()) {
|
if (gravity.clock.IsPaused()) {
|
||||||
InitGravity(app);
|
InitGravity(app);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user