-void MIDIMapper::activate_lights(unsigned bus_idx, int field_number, set<unsigned> *active_lights)
-{
- const MIDIMappingBusProto &bus_mapping = mapping_proto->bus_mapping(bus_idx);
-
- const FieldDescriptor *descriptor = bus_mapping.GetDescriptor()->FindFieldByNumber(field_number);
- const Reflection *bus_reflection = bus_mapping.GetReflection();
- if (!bus_reflection->HasField(bus_mapping, descriptor)) {
- return;
- }
- const MIDILightProto &light_proto =
- static_cast<const MIDILightProto &>(bus_reflection->GetMessage(bus_mapping, descriptor));
- active_lights->insert(light_proto.note_number());
-}
-
-void MIDIMapper::activate_lights_all_buses(int field_number, set<unsigned> *active_lights)
+void MIDIMapper::activate_lights_all_buses(int field_number, map<MIDIDevice::LightKey, uint8_t> *active_lights)