fix peak in watch levels

fix peak in watch levels
This commit is contained in:
onyx-and-iris 2022-04-13 07:21:30 +01:00
parent 488a69451f
commit 3c1abdd2ac
2 changed files with 3 additions and 3 deletions

View File

@ -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( self.level.set(
(0 if self.mute.get() else 100 + (peak - 18) + self.gain.get()) (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] 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.level.set((0 if self.mute.get() else 100 + (peak - 18)))
self.after( self.after(
_base_vals.ldelay if not _base_vals.in_scale_button_1 else 100, _base_vals.ldelay if not _base_vals.in_scale_button_1 else 100,

View File

@ -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( self.level.set(
( (
0 0