implements events for patch composite

This commit is contained in:
2023-08-25 20:23:21 +01:00
parent c308a8fd07
commit 7d3647afd7
4 changed files with 49 additions and 24 deletions

View File

@@ -1,6 +1,3 @@
import PySimpleGUI as psg
def get_asio_checkbox_index(channel, num):
if channel == 0:
return 2 * num - 2
@@ -22,8 +19,9 @@ def get_input_device_list(vm):
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")]
for i in range(kind.phys_out):
[temp.append(f"IN#{i + 1} {channel}") for channel in ("Left", "Right")]
for i in range(kind.phys_out, kind.phys_out + kind.virt_out):
[temp.append(f"IN#{i + 1} {channel}") for channel in ("Left", "Right", "Center", "LFE", "SL", "SR", "BL", "BR")]
temp.append(f"BUS Channel")
return temp