mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2024-11-21 12:20:56 +00:00
fix math error in level updates
This commit is contained in:
parent
d7df79b798
commit
732368a65b
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "voicemeeter-compact"
|
||||
version = "1.6.3"
|
||||
version = "1.6.4"
|
||||
description = "A Compact Voicemeeter Remote App"
|
||||
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
||||
license = "MIT"
|
||||
|
@ -185,14 +185,9 @@ class Strip(ChannelLabelFrame):
|
||||
if self.index < self.parent.parent.kind.num_strip:
|
||||
if self.target.levels.is_updated:
|
||||
val = max(self.target.levels.prefader)
|
||||
if _base_values.vban_connected:
|
||||
self.level.set(
|
||||
(0 if self.mute.get() else 72 + val - 12 + self.gain.get())
|
||||
)
|
||||
else:
|
||||
self.level.set(
|
||||
(0 if self.mute.get() else 72 + val + self.gain.get())
|
||||
)
|
||||
self.level.set(
|
||||
(0 if self.mute.get() else 72 + val - 12 + self.gain.get())
|
||||
)
|
||||
|
||||
|
||||
class Bus(ChannelLabelFrame):
|
||||
@ -213,7 +208,7 @@ class Bus(ChannelLabelFrame):
|
||||
if self.index < self.parent.parent.kind.num_bus:
|
||||
if self.target.levels.is_updated or self.level.get() != -118:
|
||||
val = max(self.target.levels.all)
|
||||
self.level.set((0 if self.mute.get() else 72 + val))
|
||||
self.level.set((0 if self.mute.get() else 72 + val - 12))
|
||||
|
||||
|
||||
class ChannelFrame(ttk.Frame):
|
||||
|
@ -154,24 +154,13 @@ class GainLayer(ttk.LabelFrame):
|
||||
|
||||
if self.parent.target.strip[self.index].levels.is_updated:
|
||||
val = max(self.parent.target.strip[self.index].levels.prefader)
|
||||
if _base_values.vban_connected:
|
||||
self.level.set(
|
||||
(
|
||||
0
|
||||
if self.parent.target.strip[self.index].mute
|
||||
or not self.on.get()
|
||||
else 72 + val - 12 + self.gain.get()
|
||||
)
|
||||
)
|
||||
else:
|
||||
self.level.set(
|
||||
(
|
||||
0
|
||||
if self.parent.target.strip[self.index].mute
|
||||
or not self.on.get()
|
||||
else 72 + val + self.gain.get()
|
||||
)
|
||||
self.level.set(
|
||||
(
|
||||
0
|
||||
if self.parent.target.strip[self.index].mute or not self.on.get()
|
||||
else 72 + val - 12 + self.gain.get()
|
||||
)
|
||||
)
|
||||
|
||||
def grid_configure(self):
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user