From 3c1abdd2ac7f2fca650510506025c2e70326f45d Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Wed, 13 Apr 2022 07:21:30 +0100 Subject: [PATCH] fix peak in watch levels fix peak in watch levels --- vmcompact/channels.py | 4 ++-- vmcompact/gainlayer.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vmcompact/channels.py b/vmcompact/channels.py index 9692671..743f1a2 100644 --- a/vmcompact/channels.py +++ b/vmcompact/channels.py @@ -233,7 +233,7 @@ class Strip(Channel): ] ), ) - peak = vals[0] if vals[0] > vals[1] else vals[0] + peak = vals[0] if vals[0] > vals[1] else vals[1] self.level.set( (0 if self.mute.get() else 100 + (peak - 18) + self.gain.get()) ) @@ -289,7 +289,7 @@ class Bus(Channel): self._parent._parent.bus_levels[self.index * 8 + 1] ), ) - peak = vals[0] if vals[0] > vals[1] else vals[0] + peak = vals[0] if vals[0] > vals[1] else vals[1] self.level.set((0 if self.mute.get() else 100 + (peak - 18))) self.after( _base_vals.ldelay if not _base_vals.in_scale_button_1 else 100, diff --git a/vmcompact/gainlayer.py b/vmcompact/gainlayer.py index c6d0f44..c14ffcc 100644 --- a/vmcompact/gainlayer.py +++ b/vmcompact/gainlayer.py @@ -188,7 +188,7 @@ class GainLayer(ttk.LabelFrame): ] ), ) - peak = vals[0] if vals[0] > vals[1] else vals[0] + peak = vals[0] if vals[0] > vals[1] else vals[1] self.level.set( ( 0