public void SendUpdateToMidi(CatCmd cmd, double pct) //-W2PA Send Pl-1 knob or slider LED update message (CMD Micro doesn't have such LEDs) { int index = PL1Index(); if (index < 0) { return; // no Behringer PL-1 is connected so no need to do anything } ControllerMapping mapping; mapping = DB.GetReverseMapping(bindings[index].DeviceName, cmd); MidiDevice device = bindings[index].Device; if (mapping != null) { int ctlID = mapping.MidiControlId; int n = Convert.ToInt32(16.0 * pct); if (ctlID == 73) { device.SetPL1KnobLight(n, 10); // If it's actually the slider, its LEDs need ctlID=10 } else { device.SetPL1KnobLight(n, ctlID); // All other Pl-1 knobs } } return; }