gate as no Knee parameter

This commit is contained in:
onyx-and-iris 2023-09-26 15:56:12 +01:00
parent af602e087d
commit 6882adb47b

View File

@ -522,10 +522,7 @@ class Popup:
setattr(self.window.vm.strip[index].gate, param.lower(), val) setattr(self.window.vm.strip[index].gate, param.lower(), val)
popup[f"GATE||SLIDER {param}"].update(value=val) popup[f"GATE||SLIDER {param}"].update(value=val)
if param == "KNEE": self.window.nvda.speak(str(round(val, 1)))
self.window.nvda.speak(str(round(val, 2)))
else:
self.window.nvda.speak(str(round(val, 1)))
else: else:
self.window.vm.event.pdirty = True self.window.vm.event.pdirty = True
case [ case [
@ -547,10 +544,7 @@ class Popup:
setattr(self.window.vm.strip[index].gate, param.lower(), val) setattr(self.window.vm.strip[index].gate, param.lower(), val)
popup[f"GATE||SLIDER {param}"].update(value=val) popup[f"GATE||SLIDER {param}"].update(value=val)
if param == "KNEE": self.window.nvda.speak(str(round(val, 1)))
self.window.nvda.speak(str(round(val, 2)))
else:
self.window.nvda.speak(str(round(val, 1)))
else: else:
self.window.vm.event.pdirty = True self.window.vm.event.pdirty = True
case [ case [
@ -572,10 +566,7 @@ class Popup:
setattr(self.window.vm.strip[index].gate, param.lower(), val) setattr(self.window.vm.strip[index].gate, param.lower(), val)
popup[f"GATE||SLIDER {param}"].update(value=val) popup[f"GATE||SLIDER {param}"].update(value=val)
if param == "KNEE": self.window.nvda.speak(str(round(val, 1)))
self.window.nvda.speak(str(round(val, 2)))
else:
self.window.nvda.speak(str(round(val, 1)))
else: else:
self.window.vm.event.pdirty = True self.window.vm.event.pdirty = True