more momentary fixes
This commit is contained in:
@@ -2261,11 +2261,10 @@ def midi_message_route_hw_to_output_cc(fader_uid, value):
|
||||
else:
|
||||
out_cc = t.cc_spin.value()
|
||||
if t.trigger_mode == "momentary":
|
||||
if value > 0:
|
||||
send_transport_cc(out_cc, 127)
|
||||
t.cc_output_lbl.setText(f"CC{out_cc} [127]")
|
||||
t.led_dot.setStyleSheet("background-color: #00e676; border-radius: 3px;")
|
||||
QTimer.singleShot(150, lambda: t.led_dot.setStyleSheet("background-color: #3c3c3c; border-radius: 3px;"))
|
||||
send_transport_cc(out_cc, 127)
|
||||
t.cc_output_lbl.setText(f"CC{out_cc} [127]")
|
||||
t.led_dot.setStyleSheet("background-color: #00e676; border-radius: 3px;")
|
||||
QTimer.singleShot(150, lambda: t.led_dot.setStyleSheet("background-color: #3c3c3c; border-radius: 3px;"))
|
||||
else:
|
||||
should_be_on = value > 63
|
||||
if t.toggle_state != should_be_on:
|
||||
|
||||
Reference in New Issue
Block a user