mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2024-11-15 17:40:52 +00:00
changes to progressbar level udpates
This commit is contained in:
parent
4db7be172b
commit
294dfe7d03
@ -226,7 +226,7 @@ class ChannelLabelFrameBuilder(AbstractBuilder):
|
||||
"""Adds a progress bar widget to a single label frame"""
|
||||
self.labelframe.pb = ttk.Progressbar(
|
||||
self.labelframe,
|
||||
maximum=100,
|
||||
maximum=72,
|
||||
orient="vertical",
|
||||
mode="determinate",
|
||||
variable=self.labelframe.level,
|
||||
|
@ -185,9 +185,14 @@ class Strip(ChannelLabelFrame):
|
||||
if self.index < self.parent.parent.kind.num_strip:
|
||||
if self.target.levels.is_updated:
|
||||
val = max(self.target.levels.prefader)
|
||||
self.level.set(
|
||||
(0 if self.mute.get() else 100 + val - 18 + self.gain.get())
|
||||
)
|
||||
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())
|
||||
)
|
||||
|
||||
|
||||
class Bus(ChannelLabelFrame):
|
||||
@ -208,7 +213,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 100 + val - 18))
|
||||
self.level.set((0 if self.mute.get() else 72 + val))
|
||||
|
||||
|
||||
class ChannelFrame(ttk.Frame):
|
||||
|
@ -154,13 +154,24 @@ class GainLayer(ttk.LabelFrame):
|
||||
|
||||
if self.parent.target.strip[self.index].levels.is_updated:
|
||||
val = max(self.parent.target.strip[self.index].levels.prefader)
|
||||
self.level.set(
|
||||
(
|
||||
0
|
||||
if self.parent.target.strip[self.index].mute or not self.on.get()
|
||||
else 100 + val - 18 + self.gain.get()
|
||||
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()
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
def grid_configure(self):
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user