| 1 |
<plugin resizable="true"> |
| 2 |
<ui:set id="channels" value="${(ex :in_16l) ? 16 : (ex :in_8l) ? 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="18" 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 |
<cell cols="2"> |
| 58 |
<label text="labels.signal.pan"/> |
| 59 |
</cell> |
| 60 |
|
| 61 |
<knob id="cp_${i}l" size="16" scolor="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'left' : 'cycle_inactive'" pad.h="6"/> |
| 62 |
<value id="cp_${i}l" detailed="false" pad.v="4" pad.r="6"/> |
| 63 |
</ui:with> |
| 64 |
<cell cols="2" bg.color="bg" pad.v="2" vreduce="true" vexpand="false"> |
| 65 |
<hsep/> |
| 66 |
</cell> |
| 67 |
<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"> |
| 68 |
<cell cols="2" pad.v="4"> |
| 69 |
<label text="labels.balance"/> |
| 70 |
</cell> |
| 71 |
<cell cols="2" pad.h="6"> |
| 72 |
<fader id="cb_${i}" ui:inject="Fader_balance" bcolor="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'fader_balance' : 'fader_inactive'" scolor="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'fader_balance' : 'fader_inactive'"/> |
| 73 |
</cell> |
| 74 |
<cell cols="2" pad.v="4"> |
| 75 |
<value id="cb_${i}" same.line="true"/> |
| 76 |
</cell> |
| 77 |
</ui:with> |
| 78 |
<cell cols="2" bg.color="bg" pad.v="2" vreduce="true" vexpand="false"> |
| 79 |
<hsep/> |
| 80 |
</cell> |
| 81 |
<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"> |
| 82 |
<fader id="cg_${i}" vexpand="true" angle="1" pad.t="4" scolor="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'fader' : 'fader_inactive'" button.width="20"/> |
| 83 |
<value id="cg_${i}" vreduce="true" width.min="48" pad.b="4"/> |
| 84 |
|
| 85 |
<!-- Column 2 --> |
| 86 |
<knob id="cp_${i}r" size="16" scolor="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'right' : 'cycle_inactive'" pad.r="6"/> |
| 87 |
<value id="cp_${i}r" detailed="false" pad.v="4" pad.r="6"/> |
| 88 |
</ui:with> |
| 89 |
<cell rows="2"> |
| 90 |
<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"> |
| 91 |
<ledchannel |
| 92 |
id="cl_${i}l" |
| 93 |
min="-72 db" |
| 94 |
max="12 db" |
| 95 |
log="true" |
| 96 |
type="rms_peak" |
| 97 |
peak.visibility="true" |
| 98 |
value.color="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'left' : 'cycle_inactive'" |
| 99 |
yellow.color="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'meter_yellow' : 'cycle_inactive'" |
| 100 |
red.color="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'meter_red' : 'cycle_inactive'"/> |
| 101 |
<ledchannel |
| 102 |
id="cl_${i}r" |
| 103 |
min="-72 db" |
| 104 |
max="12 db" |
| 105 |
log="true" |
| 106 |
type="rms_peak" |
| 107 |
peak.visibility="true" |
| 108 |
value.color="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'right' : 'cycle_inactive'" |
| 109 |
yellow.color="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'meter_yellow' : 'cycle_inactive'" |
| 110 |
red.color="!(:cm_${i} or ((${has_solo}) and !:cs_${i})) ? 'meter_red' : 'cycle_inactive'"/> |
| 111 |
</ledmeter> |
| 112 |
</cell> |
| 113 |
<!-- Column 3 --> |
| 114 |
<cell rows="16" bg.color="bg" pad.h="2" hreduce="true" hexpand="false"> |
| 115 |
<vsep/> |
| 116 |
</cell> |
| 117 |
|
| 118 |
</ui:for> |
| 119 |
|
| 120 |
<!-- Master section --> |
| 121 |
<!-- Column 1 --> |
| 122 |
<cell cols="2" rows="5"> |
| 123 |
<label text="labels.chan.output"/> |
| 124 |
</cell> |
| 125 |
|
| 126 |
<cell cols="2" bg.color="bg" pad.v="2" vreduce="true" vexpand="false"> |
| 127 |
<hsep/> |
| 128 |
</cell> |
| 129 |
|
| 130 |
<cell cols="2" pad.v="4" pad.h="6"> |
| 131 |
<button id="mono" text="labels.signal.mono" ui:inject="Button_orange_8" font.size="8" hfill="true" expand="false"/> |
| 132 |
</cell> |
| 133 |
<cell cols="2" bg.color="bg" pad.v="2" vreduce="true" vexpand="false"> |
| 134 |
<hsep/> |
| 135 |
</cell> |
| 136 |
|
| 137 |
<label text="labels.signal.dry" pad.v="4" pad.h="6"/> |
| 138 |
<knob id="dry" size="20" scolor="dry" pad.h="6"/> |
| 139 |
<value id="dry" sline="true" pad.l="6" width.min="48" pad.v="4" pad.r="6"/> |
| 140 |
<cell cols="2" bg.color="bg" pad.v="2" vreduce="true" vexpand="false"> |
| 141 |
<hsep/> |
| 142 |
</cell> |
| 143 |
<cell rows="6" cols="2"> |
| 144 |
<vbox> |
| 145 |
<grid rows="1" cols="5"> |
| 146 |
<vbox vexpand="true" bg.color="bg_schema"> |
| 147 |
<label text="labels.chan.in" pad.b="3" pad.t="3"/> |
| 148 |
<ledmeter height.min="256" vexpand="true" angle="1"> |
| 149 |
<ledchannel id="ilm_l" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="left_in"/> |
| 150 |
<ledchannel id="ilm_r" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="right_in"/> |
| 151 |
</ledmeter> |
| 152 |
</vbox> |
| 153 |
<vsep bg.color="bg" pad.h="2" hreduce="true" hexpand="false"/> |
| 154 |
<vbox> |
| 155 |
<label text="labels.balance" pad.v="4" pad.h="6"/> |
| 156 |
<knob id="bal" size="20" scolor="balance"/> |
| 157 |
<value id="bal" same.line="true" pad.v="4"/> |
| 158 |
<hsep bg.color="bg" pad.v="2" vreduce="true" vexpand="false"/> |
| 159 |
<fader id="g_out" vexpand="true" angle="1" pad.t="4"/> |
| 160 |
<value id="g_out" vreduce="true" width.min="32" pad.b="4"/> |
| 161 |
</vbox> |
| 162 |
<vsep bg.color="bg" pad.h="2" hreduce="true" hexpand="false"/> |
| 163 |
<vbox vexpand="true" bg.color="bg_schema"> |
| 164 |
<label text="labels.chan.out" pad.b="3" pad.t="3"/> |
| 165 |
<ledmeter height.min="256" vexpand="true" angle="1"> |
| 166 |
<ledchannel id="olm_l" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="left"/> |
| 167 |
<ledchannel id="olm_r" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="right"/> |
| 168 |
</ledmeter> |
| 169 |
</vbox> |
| 170 |
</grid> |
| 171 |
</vbox> |
| 172 |
</cell> |
| 173 |
|
| 174 |
<!-- Column 3 --> |
| 175 |
<label text="labels.signal.wet" pad.v="4" pad.r="6"/> |
| 176 |
<knob id="wet" size="20" scolor="wet" pad.r="6"/> |
| 177 |
<value id="wet" sline="true" pad.r="6" width.min="48" pad.v="4"/> |
| 178 |
|
| 179 |
</grid> |
| 180 |
</plugin> |