implements a basic tab structure

using tabgroup ("settings", "physical", "virtual")

Patch Composite buttons placed.
Events for patch composite not yet implemented
This commit is contained in:
2023-08-25 18:29:43 +01:00
parent c74e4c40c2
commit b98f892b23
3 changed files with 80 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
import PySimpleGUI as psg
def get_asio_checkbox_index(channel, num):
if channel == 0:
return 2 * num - 2
@@ -15,3 +18,12 @@ def get_insert_checkbox_index(kind, channel, num):
def get_input_device_list(vm):
return ["{type}: {name}".format(**vm.device.output(i)) for i in range(vm.device.outs)]
def get_patch_composite_list(kind):
temp = []
for i in range(1, kind.phys_out + 1):
[temp.append(f"IN#{i} {channel}") for channel in ("Left", "Right")]
for i in range(kind.phys_out + 1, kind.phys_out + kind.virt_out + 1):
[temp.append(f"IN#{i} {channel}") for channel in ("Left", "Right", "Center", "LFE", "SL", "SR", "BL", "BR")]
return temp