+ // Master speed light.
+ if (mapping_proto->has_master_speed_light()) {
+ unsigned controller = mapping_proto->master_speed_light().controller_number();
+ unsigned min = mapping_proto->master_speed_light_min();
+ unsigned max = mapping_proto->master_speed_light_max();
+ int speed_light_value = lrintf((max - min) * current_speed / 2.0f) + min;
+ active_lights[MIDIDevice::LightKey{MIDIDevice::LightKey::CONTROLLER, controller}] = speed_light_value;
+ }
+