Debian Codegraph @

modules/lsp-plugins-mixer/res/main/ui/plugins/util/mixer/mono.xml

raw
1 <plugin resizable="true">
2 <ui:set id="channels" value="${(ex :in_16) ? 16 : (ex :in_8) ? 8 : 4}"/>
3 <ui:set id="has_solo" value="
4 :cs_1 or :cs_2 or :cs_3 or :cs_4 or
5 ((ex :cs_8) ? :cs_5 or :cs_6 or :cs_7 or :cs_8 : false) or
6 ((ex :cs_16) ? :cs_9 or :cs_10 or :cs_11 or :cs_12 or :cs_13 or :cs_14 or :cs_15 or :cs_16 : false)
7 "/>
8
9 <grid rows="9" cols="${3 * :channels + 2}" transpose="true" bg.color="bg_schema">
10 <!-- Input channels -->
11 <ui:for id="i" first="1" count=":channels">
12 <!-- Column 1 -->
13 <ui:if test=":i ieq 1">
14 <cell cols="12">
15 <hbox>
16 <shmlink id="return" pad.v="4" pad.l="6"/>
17 <shmlink id="send" pad.v="4" pad.h="6"/>
18 <vsep bg.color="bg" pad.h="2" hreduce="true" hexpand="false"/>
19 <void hexpand="true"/>
20 </hbox>
21 </cell>
22 </ui:if>
23 <ui:if test=":i igt 4">
24 <cell cols="3" pad.v="4">
25 <label/>
26 </cell>
27 </ui:if>
28 <cell cols="3" bg.color="bg" pad.v="2" vreduce="true" vexpand="false">
29 <hsep/>
30 </cell>
31
32 <cell cols="2" pad.v="4" pad.h="4">
33 <edit ui:id="channel_name_${i}" bright="(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 0.75 : 1.0" bg.bright="(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? :const_bg_darken : 1.0"/>
34 </cell>
35 <cell cols="2" bg.color="bg" pad.v="2" vreduce="true" vexpand="false">
36 <hsep/>
37 </cell>
38 <cell cols="2" pad.v="4" pad.h="6">
39 <shmlink id="ret_${i}" value.maxlen="3" text.clip="true" hfill="true"/>
40 </cell>
41 <cell cols="2" bg.color="bg" pad.v="2" vreduce="true" vexpand="false">
42 <hsep/>
43 </cell>
44 <ui:with bright="(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 0.75 : 1.0" bg.bright="(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? :const_bg_darken : 1.0">
45 <cell cols="2" pad.v="4" pad.h="6">
46 <hbox>
47 <button id="cs_${i}" text="labels.chan.S_olo" ui:inject="Button_green_8" font.size="8" pad.r="6" hfill="true" expand="false"/>
48 <button id="cm_${i}" text="labels.chan.M_ute" ui:inject="Button_red_8" font.size="8" pad.r="6" hfill="true" expand="false"/>
49 <button id="ci_${i}" text="labels.chan.P_hase" ui:inject="Button_yellow_8" font.size="8" hfill="true" expand="false"/>
50 </hbox>
51 </cell>
52 </ui:with>
53 <cell cols="2" bg.color="bg" pad.v="2" vreduce="true" vexpand="false">
54 <hsep/>
55 </cell>
56 <ui:with bright="(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 0.75 : 1.0" bg.bright="(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? :const_bg_darken : 1.0">
57 <vbox vexpand="true">
58 <fader id="cg_${i}" vexpand="true" angle="1" pad.t="4" scolor="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'fader' : 'fader_inactive'"/>
59 <value id="cg_${i}" vreduce="true" width.min="48" pad.b="4"/>
60 </vbox>
61 </ui:with>
62 <ledmeter height.min="256" vexpand="true" angle="1" bright="(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? :const_led_darken : 1.0" bg.bright="(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? :const_bg_darken : 1.0">
63 <ledchannel
64 id="cl_${i}"
65 min="-72 db"
66 max="12 db"
67 log="true"
68 type="rms_peak"
69 peak.visibility="true"
70 value.color="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'mono' : 'cycle_inactive'"
71 yellow.color="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'meter_yellow' : 'cycle_inactive'"
72 red.color="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'meter_red' : 'cycle_inactive'"/>
73 </ledmeter>
74
75 <!-- Column 3 -->
76 <cell rows="9" bg.color="bg" pad.h="2" hreduce="true" hexpand="false">
77 <vsep/>
78 </cell>
79
80 </ui:for>
81
82 <!-- Master section -->
83 <!-- Column 1 -->
84 <cell cols="2" rows="5">
85 <label text="labels.chan.output"/>
86 </cell>
87
88 <cell cols="2" bg.color="bg" pad.v="2" vreduce="true" vexpand="false">
89 <hsep/>
90 </cell>
91
92 <cell rows="9" cols="2" expand="false">
93
94 <vbox>
95 <grid rows="2" cols="5">
96 <cell cols="5">
97 <grid rows="4" cols="2">
98 <label text="labels.signal.dry" pad.v="4" pad.h="6"/>
99 <label text="labels.signal.wet" pad.v="4" pad.r="6"/>
100 <knob id="dry" size="20" scolor="dry" pad.h="6"/>
101 <knob id="wet" size="20" scolor="wet" pad.r="6"/>
102 <value id="dry" sline="true" pad.l="6" width.min="48" pad.v="4" pad.r="6"/>
103 <value id="wet" sline="true" pad.r="6" width.min="48" pad.v="4"/>
104
105 <cell cols="2" bg.color="bg" pad.v="2" vreduce="true" vexpand="false">
106 <hsep/>
107 </cell>
108 </grid>
109 </cell>
110 <vbox vexpand="true" bg.color="bg_schema">
111 <label text="labels.chan.in" pad.b="3" pad.t="3"/>
112 <ledmeter height.min="256" vexpand="true" angle="1">
113 <ledchannel id="ilm" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="mono"/>
114 </ledmeter>
115 </vbox>
116 <vsep bg.color="bg" pad.h="2" hreduce="true" hexpand="false"/>
117 <vbox>
118 <fader id="g_out" vexpand="true" angle="1" pad.t="4"/>
119 <value id="g_out" vreduce="true" width.min="32" pad.b="4"/>
120 </vbox>
121 <vsep bg.color="bg" pad.h="2" hreduce="true" hexpand="false"/>
122 <vbox vexpand="true" bg.color="bg_schema">
123 <label text="labels.chan.out" pad.b="3" pad.t="3"/>
124 <ledmeter height.min="256" vexpand="true" angle="1">
125 <ledchannel id="olm" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="mono"/>
126 </ledmeter>
127 </vbox>
128 </grid>
129 </vbox>
130 </cell>
131
132 </grid>
133 </plugin>