From 6882adb47b72af1e1034453fe56ce0a066ea35e8 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 26 Sep 2023 15:56:12 +0100 Subject: [PATCH] gate as no Knee parameter --- src/nvda_voicemeeter/popup.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/nvda_voicemeeter/popup.py b/src/nvda_voicemeeter/popup.py index 0688ca3..86089d2 100644 --- a/src/nvda_voicemeeter/popup.py +++ b/src/nvda_voicemeeter/popup.py @@ -522,10 +522,7 @@ class Popup: setattr(self.window.vm.strip[index].gate, param.lower(), val) popup[f"GATE||SLIDER {param}"].update(value=val) - if param == "KNEE": - self.window.nvda.speak(str(round(val, 2))) - else: - self.window.nvda.speak(str(round(val, 1))) + self.window.nvda.speak(str(round(val, 1))) else: self.window.vm.event.pdirty = True case [ @@ -547,10 +544,7 @@ class Popup: setattr(self.window.vm.strip[index].gate, param.lower(), val) popup[f"GATE||SLIDER {param}"].update(value=val) - if param == "KNEE": - self.window.nvda.speak(str(round(val, 2))) - else: - self.window.nvda.speak(str(round(val, 1))) + self.window.nvda.speak(str(round(val, 1))) else: self.window.vm.event.pdirty = True case [ @@ -572,10 +566,7 @@ class Popup: setattr(self.window.vm.strip[index].gate, param.lower(), val) popup[f"GATE||SLIDER {param}"].update(value=val) - if param == "KNEE": - self.window.nvda.speak(str(round(val, 2))) - else: - self.window.nvda.speak(str(round(val, 1))) + self.window.nvda.speak(str(round(val, 1))) else: self.window.vm.event.pdirty = True