more momentary fixes

This commit is contained in:
Paul Lipscomb
2026-06-29 04:27:39 -04:00
parent fc9da58d7c
commit 3861a8f508
2 changed files with 4 additions and 7 deletions
+4 -5
View File
@@ -2261,11 +2261,10 @@ def midi_message_route_hw_to_output_cc(fader_uid, value):
else: else:
out_cc = t.cc_spin.value() out_cc = t.cc_spin.value()
if t.trigger_mode == "momentary": if t.trigger_mode == "momentary":
if value > 0: send_transport_cc(out_cc, 127)
send_transport_cc(out_cc, 127) t.cc_output_lbl.setText(f"CC{out_cc} [127]")
t.cc_output_lbl.setText(f"CC{out_cc} [127]") t.led_dot.setStyleSheet("background-color: #00e676; border-radius: 3px;")
t.led_dot.setStyleSheet("background-color: #00e676; border-radius: 3px;") QTimer.singleShot(150, lambda: t.led_dot.setStyleSheet("background-color: #3c3c3c; border-radius: 3px;"))
QTimer.singleShot(150, lambda: t.led_dot.setStyleSheet("background-color: #3c3c3c; border-radius: 3px;"))
else: else:
should_be_on = value > 63 should_be_on = value > 63
if t.toggle_state != should_be_on: if t.toggle_state != should_be_on:
-2
View File
@@ -226,8 +226,6 @@ class PresetWidget(QWidget):
self._fire() self._fire()
def on_hw_trigger(self, value): def on_hw_trigger(self, value):
if value == 0:
return # ignore releases — normalized by mom/tog logic
self.cc_input_lbl.setText(self._cc_input_label(value)) self.cc_input_lbl.setText(self._cc_input_label(value))
self._fire() self._fire()