Skip to content

Commit

Permalink
LINT
Browse files Browse the repository at this point in the history
  • Loading branch information
SubhadeepJasu committed Jul 29, 2022
1 parent 406b85a commit c3161a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Core/MidiInput/MidiInputHost.vala
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ namespace Ensembles.Core {
Application.settings.set_strv ("control-label-maps", control_label_reverse_map_arr);
}

private void load_maps() {
private void load_maps () {
var note_map_arr = Application.settings.get_strv ("note-maps");
foreach (var item in note_map_arr) {
var tokens = item.split(" ", 2);
var tokens = item.split (" ", 2);
note_map.set (int.parse (tokens[0]), int.parse (tokens[1]));
}

var control_map_arr = Application.settings.get_strv ("control-maps");
foreach (var item in control_map_arr) {
var tokens = item.split(" ", 2);
var tokens = item.split (" ", 2);
control_map.set (int.parse (tokens[0]), int.parse (tokens[1]));
}

Expand Down
4 changes: 2 additions & 2 deletions src/Shell/Layouts/SliderBoardView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ namespace Ensembles.Shell {
});
}

void control_other_sliders_from_master_knob(double value) {
void control_other_sliders_from_master_knob (double value) {
bool assigned = false;
if (master_knob_assigns != null) {
if (master_knob_assigns[0] && slider_0_control_map.assigned) {
Expand Down Expand Up @@ -1292,7 +1292,7 @@ namespace Ensembles.Shell {
break;
case UI_INDEX_MASTER_KNOB:
master_knob.set_value ((double)((value < 0 ? 0 : value) / 127.0));
control_other_sliders_from_master_knob((double)((value < 0 ? 0 : value) / 127.0));
control_other_sliders_from_master_knob ((double)((value < 0 ? 0 : value) / 127.0));
break;
}
}
Expand Down

0 comments on commit c3161a2

Please sign in to comment.