fix mixing scope brace

This commit is contained in:
Paul Davis 2018-06-25 10:06:44 -04:00
parent d7ac5792b8
commit ff03eeab04

View file

@ -1213,6 +1213,7 @@ GenericMidiControlProtocol::lookup_controllable (const string & str) const
c = s->eq_shape_controllable (band); c = s->eq_shape_controllable (band);
} }
} }
} else if (path[1] == X_("filter")) { } else if (path[1] == X_("filter")) {
/* /route/filter/hi/freq */ /* /route/filter/hi/freq */
@ -1235,20 +1236,21 @@ GenericMidiControlProtocol::lookup_controllable (const string & str) const
c = s->filter_slope_controllable (filter); c = s->filter_slope_controllable (filter);
} }
} else if (path[1] == X_("compressor")) { }
if (path.size() == 3) { } else if (path[1] == X_("compressor")) {
if (path[2] == X_("enable")) {
c = s->comp_enable_controllable (); if (path.size() == 3) {
} else if (path[2] == X_("threshold")) { if (path[2] == X_("enable")) {
c = s->comp_threshold_controllable (); c = s->comp_enable_controllable ();
} else if (path[2] == X_("mode")) { } else if (path[2] == X_("threshold")) {
c = s->comp_mode_controllable (); c = s->comp_threshold_controllable ();
} else if (path[2] == X_("speed")) { } else if (path[2] == X_("mode")) {
c = s->comp_speed_controllable (); c = s->comp_mode_controllable ();
} else if (path[2] == X_("makeup")) { } else if (path[2] == X_("speed")) {
c = s->comp_makeup_controllable (); c = s->comp_speed_controllable ();
} } else if (path[2] == X_("makeup")) {
c = s->comp_makeup_controllable ();
} }
} }
} }