more momentary fixes
This commit is contained in:
@@ -2261,7 +2261,6 @@ 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;")
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user