<plugin resizable="true">
	<ui:eval id="is_sidechain" value="(ex :sc) or (ex :sc_l) or (ex :sc_r)"/>

	<vbox spacing="4">
		<grid rows="2" cols="5" vspacing="4" hspacing="4" expand="true">

			<group ui:inject="GraphGroup" ipadding="0" expand="true" fill="true" text="labels.graphs.spectrum">
				<graph width.min="680" height.min="330" expand="true" fill="true">
					<origin hpos="-1" vpos="-1" visible="false"/>

					<!-- Additional grid -->
					<ui:with color="graph_alt_1">
						<ui:for id="f" first="20" last="90" step="10">
							<marker v="${:f}"/>
							<marker v="${:f*10}"/>
							<marker v="${:f*100}"/>
						</ui:for>
						<marker v="20000"/>
						<ui:with ox="1" oy="0">
							<marker v="+12 db"/>
							<marker v="-12 db"/>
							<marker v="-36 db"/>
							<marker v="-60 db"/>

							<ui:for id="g" first="-42" last="6" step="12">
								<marker v="${g} db" visibility=":zoom le -9 db"/>
							</ui:for>
							<ui:for id="g" first="-21" last="3" step="6">
								<marker v="${g} db" visibility=":zoom le -15 db"/>
							</ui:for>
						</ui:with>
					</ui:with>

					<!-- Secondary grid -->
					<ui:with color="graph_sec">
						<marker v="100"/>
						<marker v="1000"/>
						<marker v="10000"/>
						<marker value="0 db" ox="1" oy="0"/>
						<marker value="-24 db" ox="1" oy="0"/>
						<marker value="-48 db" ox="1" oy="0"/>
					</ui:with>

					<!-- Piano keys -->
					<embed oy="4" start.x="midi_freq_start(12, 127)" start.y="20" end.x="midi_freq_end(12, 127)" end.y="44" valign="1" alpha="0" visibility=":_ui_graph_piano_layout">
						<piano natural="false" note.min="12" note.max="127" height="24" editable="false" selectable="false" border="0"/>
					</embed>

					<!-- Octave text -->
					<ui:with ox="0" oy="4" y="44" halign="1" valign="1" pgroup="0" priority="10" visibility=":_ui_graph_piano_layout" pad.b="2">
						<ui:for id="octave" first="0" last="9">
							<text x="midi_freq(12 * ${:octave + 1})" text="lists.notes.fmt.c" text:octave="${octave}" valign="1" halign="0"/>
						</ui:for>
					</ui:with>

					<!-- Band markers -->
					<ui:with
						width="2"
						fill="0.5"
						color.a="0.2"
						hcolor.a="0.8"
						lcolor.a="0.8"
						hlcolor.a="0.8"
						rcolor.a="0.8"
						hrcolor.a="0.8"
						color="graph_marker_cycle"
						hcolor="graph_marker_cycle"
						lcolor="graph_marker_cycle"
						hlcolor="graph_marker_cycle"
						rcolor="graph_marker_cycle"
						hrcolor="graph_marker_cycle">
						<marker v="10" color.hue=":hue_0" hcolor.hue=":hue_0" rborder="16" rcolor.hue=":hue_0" hrborder="16" hrcolor.hue=":hue_0"/>
						<marker id="fre_0" color.hue=":hue_0" hcolor.hue=":hue_0" lborder="16" lcolor.hue=":hue_0" hlborder="16" hlcolor.hue=":hue_0"/>
						<ui:for id="i" first="1" last="7">
							<marker id="sf_${i}" ui:id="split_marker_${i}" visibility=":cbe_${i}" editable="true" color.hue=":hue_${i}" hcolor.hue=":hue_${i}" rborder="16" rcolor.hue=":hue_${i}" hrborder="16" hrcolor.hue=":hue_${i}" pointer="hsize"/>
							<marker id="fre_${i}" visibility=":cbe_${i}" color.hue=":hue_${i}" hcolor.hue=":hue_${i}" lborder="16" lcolor.hue=":hue_${i}" hlborder="16" hlcolor.hue=":hue_${i}"/>
						</ui:for>
					</ui:with>

					<!-- Meshes -->
					<mesh id="bfc_0" width="2" fill="true" smooth="true" color="graph_mesh_cycle" color.hue=":hue_0" fcolor="graph_mesh_cycle" fcolor.hue=":hue_0" fcolor.a="0.9" visibility=":flt"/>

					<ui:for id="i" first="1" last="7">
						<mesh id="bfc_${i}" width="2" fill="true" smooth="true" color="graph_mesh_cycle" color.hue=":hue_${i}" fcolor="graph_mesh_cycle" fcolor.hue=":hue_${i}" fcolor.a="0.9" visibility=":flt and :cbe_${i}"/>
					</ui:for>
					<mesh id="ifg" oy=":_ui_zoomable_spectrum_graph ? 1 : 3" width="0" color="mono_in" color.a="0.8" fcolor.a="0.8" fill="true" fcolor="mono_in" visibility=":ife"/>
					<mesh id="ofg" oy=":_ui_zoomable_spectrum_graph ? 1 : 3" width="2" color="mono" visibility=":ofe"/>

					<mesh id="ag" width="3" color="left" smooth="true"/>

					<!-- Boundaries -->
					<marker v="1" ox="2" oy="0" color="graph_prim" visibility="false"/>
					<marker v="24000" color="graph_prim" visibility="false"/>

					<!-- Axis -->
					<axis min="10" max="24000" angle="0.0" log="true" visibility="false"/>
					<axis min="-72 db / (:zoom ** 3)" max="24 db * :zoom" color="graph_prim" angle="0.5" log="true"/>
					<axis min="-1" max="1" visibility="false" angle="0.5"/>
					<axis min="-72 db" max="24 db" color="graph_prim" angle="0.5" log="true" visibility="false"/>
					<axis min="0" max=":_a_scaled_height" visibility="false" angle="0.5"/>

					<!-- Text -->
					<ui:with ox="0" oy="2" y="0" halign="1" valign="1">
						<text x="10" text="graph.units.hz"/>
						<text x="20" text="20"/>
						<text x="30" text="30"/>
						<text x="50" text="50"/>
						<text x="100" text="100"/>
						<text x="200" text="200"/>
						<text x="300" text="300"/>
						<text x="500" text="500"/>
						<text x="1000" text="graph.values.x_k" text:value="1"/>
						<text x="2000" text="graph.values.x_k" text:value="2"/>
						<text x="3000" text="graph.values.x_k" text:value="3"/>
						<text x="5000" text="graph.values.x_k" text:value="5"/>
						<text x="10000" text="graph.values.x_k" text:value="10"/>
						<text x="20000" text="graph.values.x_k" text:value="20"/>
					</ui:with>

					<ui:with x="10" halign="1" valign="1">
						<ui:for id="g" first="-60" last="12" step="12">
							<text y="${g} db" text="${g}"/>
						</ui:for>
						<text y="0 db" ox="0" oy="2" text="graph.units.db" valign="-1"/>
						<ui:for id="g" first="-42" last="6" step="12">
							<text y="${g} db" text="${g}" visibility=":zoom le -9 db"/>
						</ui:for>
						<ui:for id="g" first="-21" last="3" step="6">
							<text y="${g} db" text="${g}" visibility=":zoom le -15 db"/>
						</ui:for>
					</ui:with>

					<ui:for id="i" first="1" last="7">
						<ui:with ox="0" oy="2" y="1" valign="-1" color="graph_marker_cycle" visibility="false" pad.h="4" font.bold="true">
							<text ui:id="split_note_${i}" x=":sf_${i}" halign="(:sf_${i} lt 500) ? 1 : -1" text.halign="(:sf_${i} lt 500) ? -1 : 1" color.hue="${(:i-1) * 0.125}"/>
						</ui:with>
					</ui:for>
				</graph>
			</group>
			<!-- zoom -->
			<cell rows="2">
				<vbox vexpand="true" bg.color="bg_schema">
					<label font.name="lsp-icons" font.size="12" font.antialias="true" text="icons.main.zoom" color="text_icon" pad.b="4" pad.t="4"/>
					<fader id="zoom" angle="1" vexpand="true" bg.inherit="true" flat="true"/>
					<value id="zoom" width="40"/>
				</vbox>
			</cell>
			<!-- meter in -->
			<cell rows="2">
				<vbox vexpand="true" bg.color="bg_schema">
					<label text="labels.chan.in" pad.b="3" pad.t="3"/>
					<ledmeter vexpand="true" angle="1">
						<ledchannel id="ilm" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="mono_in"/>
					</ledmeter>
				</vbox>
			</cell>

			<!-- meter out -->
			<cell rows="2">
				<vbox vexpand="true" bg.color="bg_schema">
					<label text="labels.chan.out" pad.b="3" pad.t="3"/>
					<ledmeter vexpand="true" angle="1">
						<ledchannel id="olm" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="mono"/>
					</ledmeter>
				</vbox>
			</cell>

			<!-- signal -->
			<cell rows="2">
				<vbox spacing="4">
					<group text="groups.signal" expand="true">
						<grid rows="5" cols="2" hspacing="4">
							<knob id="g_in" pad.r="4"/>
							<vbox vfill="false">
								<label text="labels.input" halign="0"/>
								<value id="g_in" sline="true" halign="0"/>
							</vbox>

							<knob id="g_out" pad.r="4"/>
							<vbox vfill="false">
								<label text="labels.output" expand="true" halign="0"/>
								<value id="g_out" width.min="50" sline="true" halign="0"/>
							</vbox>

							<knob id="g_dry" scolor="dry" pad.r="4"/>
							<vbox vfill="false">
								<label text="labels.signal.dry" halign="0"/>
								<value id="g_dry" width.min="50" sline="true" halign="0"/>
							</vbox>

							<knob id="g_wet" scolor="wet" pad.r="4"/>
							<vbox vfill="false">
								<label text="labels.signal.wet" halign="0"/>
								<value id="g_wet" width.min="50" sline="true" halign="0"/>
							</vbox>

							<knob id="drywet" scolor="drywet" pad.r="4"/>
							<vbox vfill="false">
								<label text="labels.signal.drywet" halign="0"/>
								<value id="drywet" width.min="50" sline="true" halign="0"/>
							</vbox>
						</grid>
					</group>

					<!-- Analysis -->
					<group text="groups.analysis" expand="true" ipadding="0">
						<vbox>
							<grid rows="2" cols="2">
								<align halign="-1" pad.t="4" pad.l="6">
									<label text="labels.fft.fft"/>
								</align>
								<hbox spacing="4" pad.v="4" pad.h="6" hfill="false">
									<button id="ife" text="labels.chan.in" height="19" width="30" ui:inject="Button_mono_8"/>
									<button id="ofe" text="labels.chan.out" height="19" width="30" ui:inject="Button_mono_8"/>
								</hbox>

								<cell cols="2"><hsep pad.v="2" bg.color="bg" vreduce="true"/></cell>
							</grid>

							<grid rows="2" cols="2" transpose="false" expand="true" hspacing="4">
								<knob id="react" size="20" pad.r="4" pad.l="6"/>
								<vbox vfill="false" pad.r="6">
									<label text="labels.metering.reactivity" halign="0"/>
									<value id="react" width.min="50" sline="true" halign="0"/>
								</vbox>

								<knob id="shift" size="20" pad.r="4" pad.l="6"/>
								<vbox vfill="false" pad.r="6">
									<label text="labels.metering.shift" halign="0"/>
									<value id="shift" width.min="50" sline="true" halign="0"/>
								</vbox>
							</grid>
						</vbox>
					</group>
				</vbox>
			</cell>

			<!-- bottom line -->
			<hbox spacing="4" vreduce="true" bg.color="bg_schema" pad.h="6">
				<label text="labels.mode:"/>
				<combo id="mode" pad.r="8" pad.v="4"/>
				<label text="labels.sc_boost:"/>
				<combo id="envb" pad.r="8"/>
				<button ui:id="premix_trigger" id="showpmx" text="labels.premix" size="22"/>
				<button id="flt" text="labels.filters" size="22" ui:inject="Button_cyan"/>

				<void hexpand="true"/>
				<vsep pad.h="2" bg.color="bg" reduce="true"/>
				<shmlink id="link" pad.l="2"/>
			</hbox>
		</grid>

		<!-- down part -->
		<hbox>

			<cgroup id="bsel" embed.h=":bsel ilt 1" embed.b=":bsel ilt 1" width.min="855" height.min="373">
				<grid rows="12" cols="25" transpose="true">
					<!-- Labels -->
					<label text="labels.band" pad.v="4" bg.color="bg_schema" hreduce="true"/>
					<vbox pad.v="4">
						<label text="labels.range"/>
						<label text="labels.units.:hz"/>
					</vbox>
					<label text="labels.controls" pad.v="4" bg.color="bg_schema"/>
					<label text="labels.sidechain" pad.v="4" bg.color="bg_schema"/>
					<cell rows="2" pad.v="4" hreduce="true" pad.h="6">
						<label text="labels.sc_preamp_makeup:db_db"/>
					</cell>
					<cell rows="2" pad.v="4">
						<label text="labels.ratio_knee:db" bg.color="bg_schema"/>
					</cell>
					<cell rows="2" pad.v="4">
						<label text="labels.attack:db_ms"/>
					</cell>
					<cell rows="2" pad.v="4">
						<label text="labels.release:db_ms" bg.color="bg_schema"/>
					</cell>

					<!-- Bands -->
					<ui:for id="i" first="0" last="7">

						<!-- Column 1 -->
						<ui:if test=":i ieq 0">
							<!-- Separator -->
							<cell rows="12"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>

							<ui:with bright="((${i} ieq 0) or :cbe_${i}) ? 1 : 0.75" bg.bright="((${i} ieq 0) or :cbe_${i}) ? 1.0 : :const_bg_darken">

								<cell cols="2" bg.color="bg_schema">
									<button text="labels.chan.num_id" text:id="${:i+1}" value="1" editable="false" pointer="arrow" hfill="true" ui:inject="Button_ne_Cycle" height="19" pad.h="6" pad.v="4"/>
								</cell>
								<cell cols="2" fill="false">
									<vbox width.min="40" height="36" vreduce="true">
										<label text="0"/>
										<value id="fre_${i}" sline="true" detailed="false"/>
									</vbox>
								</cell>
							</ui:with>
						</ui:if>

						<ui:if test=":i ine 0">
							<!-- Separator -->
							<cell rows="12"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>

							<ui:with bright="((${i} ieq 0) or :cbe_${i}) ? 1 : 0.75" bg.bright="((${i} ieq 0) or :cbe_${i}) ? 1.0 : :const_bg_darken">

								<cell cols="2" bg.color="bg_schema">
									<button
										id="cbe_${i}"
										text="labels.chan.num_id"
										text:id="${:i+1}"
										ui:inject="Button_Cycle"
										hfill="true"
										height="19"
										down.color.hue=":hue_${i}"
										down.hover.color.hue=":hue_${i}"
										text.down.color.hue=":hue_${i}"
										text.down.hover.color.hue=":hue_${i}"
										border.down.color.hue=":hue_${i}"
										border.down.hover.color.hue=":hue_${i}"
										pad.h="6"
										pad.v="4"/>
								</cell>
								<knob id="sf_${i}" size="16" ssize="3" pad.v="4" scolor="((${i} ieq 0) or :cbe_${i}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${i}"/>
							</ui:with>
						</ui:if>

						<ui:with bright="((${i} ieq 0) or :cbe_${i}) ? 1 : 0.75" bg.bright="((${i} ieq 0) or :cbe_${i}) ? 1.0 : :const_bg_darken">
							<cell cols="2" pad.h="6" bg.color="bg_schema">
								<grid rows="2" cols="1" hspacing="4" vreduce="true">
									<button
										id="ce_${i}"
										text="labels.chan.on"
										height="19"
										hfill="true"
										ui:inject="Button_Cycle"
										down.color.hue=":hue_${i}"
										down.hover.color.hue=":hue_${i}"
										text.down.color.hue=":hue_${i}"
										text.down.hover.color.hue=":hue_${i}"
										border.down.color.hue=":hue_${i}"
										border.down.hover.color.hue=":hue_${i}"
										pad.v="4"/>
									<hbox pad.b="4">
										<button id="bs_${i}" text="labels.chan.solo" height="19" hfill="true" ui:inject="Button_green_8"/>

										<button id="bm_${i}" text="labels.chan.mute" height="19" hfill="true" ui:inject="Button_red_8" pad.l="4"/>
									</hbox>
								</grid>
							</cell>
							<cell cols="2" pad.h="6" bg.color="bg_schema">
								<combo id="sce_${i}" fill="true" pad.l="4"/>
							</cell>
							<knob id="scp_${i}" size="16" ssize="3" pad.t="4" scolor="((${i} ieq 0) or :cbe_${i}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${i}"/>
							<value id="scp_${i}" pad.b="4" width.min="32" detailed="false"/>
							<knob id="cr_${i}" size="16" ssize="3" pad.t="4" scolor="((${i} ieq 0) or :cbe_${i}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${i}" bg.color="bg_schema"/>
							<hbox fill="false" pad.b="4" bg.color="bg_schema">
								<value id="cr_${i}" detailed="false"/>
								<label text=":"/>
								<label text="1"/>
							</hbox>
							<knob id="al_${i}" size="16" ssize="3" pad.t="4" scolor="((${i} ieq 0) or :cbe_${i}) ? 'attack' : 'attack_inactive'"/>
							<value id="al_${i}" pad.b="4" detailed="false"/>
							<knob id="rrl_${i}" size="16" ssize="3" pad.t="4" scolor="((${i} ieq 0) or :cbe_${i}) ? 'release' : 'release_inactive'" bg.color="bg_schema"/>
							<value id="rrl_${i}" pad.b="4" detailed="false" bg.color="bg_schema"/>

							<!-- Column 2 -->
							<ui:if test=":i ine 0">
								<vbox width.min="40" height="36" vreduce="true">
									<value id="sf_${i}" detailed="false"/>
									<value id="fre_${i}" detailed="false" visibility=":cbe_${i}"/>
									<label text="labels.chan.off" visibility="not :cbe_${i}"/>
								</vbox>
							</ui:if>
							<knob id="mk_${i}" size="16" pad.t="4" ssize="3" scolor="((${i} ieq 0) or :cbe_${i}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${i}"/>
							<value id="mk_${i}" pad.b="4" width.min="32" detailed="false"/>
							<knob id="kn_${i}" size="16" pad.t="4" ssize="3" scolor="((${i} ieq 0) or :cbe_${i}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${i}" bg.color="bg_schema"/>
							<value id="kn_${i}" pad.b="4" detailed="false" bg.color="bg_schema"/>
							<knob id="at_${i}" size="16" pad.t="4" ssize="3" scolor="((${i} ieq 0) or :cbe_${i}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${i}"/>
							<value id="at_${i}" pad.b="4" detailed="false"/>
							<knob id="rt_${i}" size="16" pad.t="4" ssize="3" scolor="((${i} ieq 0) or :cbe_${i}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${i}" bg.color="bg_schema"/>
							<value id="rt_${i}" size="16" pad.b="4" detailed="false" bg.color="bg_schema"/>
						</ui:with>
					</ui:for>
				</grid>

				<!-- inner blocks -->
				<ui:for id="i" first="0" last="7">
					<hbox spacing="4" bg.color="bg">

						<vbox expand="true" bg.color="bg_schema">
							<hbox>
								<vbox expand="true">
									<void bg.color="bg" height="4" vreduce="true"/>
									<align halign="-1">
										<label text="labels.sidechain" pad.h="6" height.max="20" bg.color="bg_schema_name" vreduce="true"/>
									</align>
									<hsep vreduce="true"/>

									<grid rows="4" cols="8" spacing="0" expand="true">
										<label text="labels.mode" pad.v="4" vreduce="true"/>
										<label text="labels.sc.lookahead"/>
										<label text="labels.sc.preamp"/>
										<label text="labels.sc.reactivity"/>
										<cell cols="2">
											<label text="labels.flt.LCF"/>
										</cell>
										<cell cols="2">
											<label text="labels.flt.HCF"/>
										</cell>

										<cell cols="8"><hsep bg.color="bg" pad.v="2" vreduce="true"/></cell>

										<cell rows="2">
											<vbox vfill="false" spacing="4" pad.l="6" pad.v="4">
												<combo id="scm_${i}" fill="true"/>
												<combo id="sce_${i}" fill="true"/>
											</vbox>
										</cell>
										<knob id="sla_${i}" size="16" ssize="3" scolor="cycle" pad.t="4" scolor.hue=":hue_${i}"/>
										<knob id="scp_${i}" size="16" ssize="3" scolor="cycle" pad.t="4" scolor.hue=":hue_${i}"/>
										<knob id="scr_${i}" size="16" ssize="3" scolor="cycle" pad.t="4" scolor.hue=":hue_${i}"/>

										<cell cols="2" bg.bright="(:sclc_${i} ieq 0) ? :const_bg_darken : 1.0">
											<button
												text="labels.flt.LCF"
												pad.h="6"
												id="sclc_${i}"
												ui:inject="Button_Cycle"
												hfill="true"
												height="19"
												down.color.hue=":hue_${i}"
												down.hover.color.hue=":hue_${i}"
												text.down.color.hue=":hue_${i}"
												text.down.hover.color.hue=":hue_${i}"
												border.down.color.hue=":hue_${i}"
												border.down.hover.color.hue=":hue_${i}"/>
										</cell>

										<cell cols="2" bg.bright="(:schc_${i} ieq 0) ? :const_bg_darken : 1.0">
											<button
												text="labels.flt.HCF"
												pad.h="6"
												id="schc_${i}"
												ui:inject="Button_Cycle"
												hfill="true"
												height="19"
												down.color.hue=":hue_${i}"
												down.hover.color.hue=":hue_${i}"
												text.down.color.hue=":hue_${i}"
												text.down.hover.color.hue=":hue_${i}"
												border.down.color.hue=":hue_${i}"
												border.down.hover.color.hue=":hue_${i}"/>
										</cell>

										<value id="sla_${i}"/>
										<value id="scp_${i}"/>
										<value id="scr_${i}"/>

										<knob id="sclf_${i}" size="16" ssize="3" scolor="(:sclc_${i} ieq 0) ? 'cycle_inactive' : 'cycle'" pad.v="4" pad.l="4" scolor.hue=":hue_${i}" bg.bright="(:sclc_${i} ieq 0) ? :const_bg_darken : 1.0"/>
										<value id="sclf_${i}" pad.h="6" bg.bright="(:sclc_${i} ieq 0) ? :const_bg_darken : 1.0" bright="(:sclc_${i} ieq 0) ? 0.75 : 1.0" width.min="30"/>

										<knob id="schf_${i}" size="16" ssize="3" scolor="(:schc_${i} ieq 0) ? 'cycle_inactive' : 'cycle'" pad.v="4" pad.l="4" scolor.hue=":hue_${i}" bg.bright="(:schc_${i} ieq 0) ? :const_bg_darken : 1.0"/>
										<value id="schf_${i}" pad.h="6" bg.bright="(:schc_${i} ieq 0) ? :const_bg_darken : 1.0" bright="(:schc_${i} ieq 0) ? 0.75 : 1.0" width.min="30"/>

									</grid>
								</vbox>
								<vsep bg.color="bg" pad.h="2" hreduce="true"/>

								<grid rows="6" cols="1" transpose="true" bg.color="bg_schema">
									<void bg.color="bg" height="4" vreduce="true"/>

									<label text="labels.band"/>
									<ui:if test=":i ieq 0">
										<button text="labels.chan.active_num_id" text:id="${:i+1}" value="1" editable="false" pointer="arrow" hfill="true" ui:inject="Button_ne_Cycle" height="19" pad.h="6" pad.v="4"/>
									</ui:if>

									<ui:if test=":i ine 0">
										<button
											id="cbe_${i}"
											text="labels.chan.active_num_id"
											text:id="${:i+1}"
											ui:inject="Button_Cycle"
											hfill="true"
											height="19"
											pad.h="6"
											pad.v="4"
											down.color.hue=":hue_${i}"
											down.hover.color.hue=":hue_${i}"
											text.down.color.hue=":hue_${i}"
											text.down.hover.color.hue=":hue_${i}"
											border.down.color.hue=":hue_${i}"
											border.down.hover.color.hue=":hue_${i}"/>
									</ui:if>

									<hsep bg.color="bg" pad.v="2" vreduce="true"/>
									<hbox fill="false" pad.h="6" pad.t="4">
										<label text="labels.range" pad.r="4"/>
										<label text="labels.units.:hz"/>
									</hbox>

									<ui:if test=":i ieq 0">
										<vbox width="82" pad.v="2" fill="false">
											<label text="0"/>
											<value id="fre_${i}" sline="true" detailed="false"/>
										</vbox>
									</ui:if>

									<ui:if test=":i ine 0">
										<hbox fill="false" pad.h="6">
											<knob id="sf_${i}" size="16" ssize="3" pad.v="4" scolor="((${i} ieq 0) or :cbe_${i}) ? 'cycle' : 'cycle_inactive'" scolor.hue=":hue_${i}"/>
											<vbox fill="false" pad.l="6">
												<value id="sf_${i}" width.min="32" detailed="false"/>
												<value id="fre_${i}" detailed="false" width.min="32" visibility=":cbe_${i}"/>
												<label text="labels.chan.off" width.min="32" visibility="not :cbe_${i}"/>
											</vbox>
										</hbox>
									</ui:if>

								</grid>

							</hbox>

							<void bg.color="bg" height="4" vreduce="true"/>

							<align halign="-1">
								<label text="labels.plug.compressor" halign="-1" pad.h="6" height.max="20" bg.color="bg_schema_name" vreduce="true"/>
							</align>
							<hsep vreduce="true"/>

							<grid rows="7" cols="10" hspacing="0" expand="true">
								<!-- r1,2 -->
								<ui:with vreduce="true">
									<cell rows="2"><label text="labels.mode"/></cell>
									<cell rows="2"><label text="labels.ratio"/></cell>
									<cell rows="2"><label text="labels.knee"/></cell>
									<cell rows="2"><label text="labels.makeup"/></cell>
									<cell rows="2"><label text="labels.boost" bright="((:cm_${i} ieq 0) and (:cm_${i} ieq 0)) ? 0.5 : 1"/></cell>
									<cell cols="2"><label text="labels.attack" pad.t="4"/></cell>
									<cell cols="2"><label text="labels.release"/></cell>
									<cell rows="2"><label text="labels.hold"/></cell>

									<label text="labels.thresh_old"/>
									<label text="labels.time"/>
									<label text="labels.thresh_old"/>
									<label text="labels.time" pad.b="4"/>
								</ui:with>

								<!-- r3 -->
								<cell cols="10"><hsep bg.color="bg" pad.v="2" vreduce="true"/></cell>
								<!-- r4 -->
								<cell rows="2">
									<vbox vfill="false" spacing="4" pad.h="6" pad.v="4">
										<combo id="cm_${i}" fill="true"/>
										<button
											id="ce_${i}"
											text="labels.chan.on"
											ui:inject="Button_Cycle_8"
											hfill="true"
											height="19"
											hexpand="true"
											down.color.hue=":hue_${i}"
											down.hover.color.hue=":hue_${i}"
											text.down.color.hue=":hue_${i}"
											text.down.hover.color.hue=":hue_${i}"
											border.down.color.hue=":hue_${i}"
											border.down.hover.color.hue=":hue_${i}"/>

										<hbox fill="true" spacing="4">
											<button id="bs_${i}" text="labels.chan.S_olo" ui:inject="Button_green_8" hfill="true" height="19" hexpand="true"/>
											<button id="bm_${i}" text="labels.chan.M_ute" ui:inject="Button_red_8" hfill="true" height="19" hexpand="true"/>
										</hbox>
									</vbox>
								</cell>
								<knob id="cr_${i}" size="16" ssize="3" scolor="cycle" pad.t="4" scolor.hue=":hue_${i}"/>
								<knob id="kn_${i}" size="16" ssize="3" scolor="cycle" pad.t="4" scolor.hue=":hue_${i}"/>
								<knob id="mk_${i}" size="16" ssize="3" scolor="cycle" pad.t="4" scolor.hue=":hue_${i}"/>
								<hbox>
									<knob id="bth_${i}" size="16" ssize="3" pad.t="4" scolor="(:cm_${i} ieq 0) ? 'cycle_inactive' : 'cycle'" scolor.hue=":hue_${i}" bright="(:cm_${i} ieq 0) ? 0.75 : 1" bg.bright="(:cm_${i} ieq 0) ? :const_bg_darken : 1.0" visibility=":cm_${i} ine 2"/>
									<knob id="bsa_${i}" size="16" ssize="3" pad.t="4" scolor="(:cm_${i} ieq 0) ? 'cycle_inactive' : 'cycle'" scolor.hue=":hue_${i}" bright="(:cm_${i} ieq 0) ? 0.75 : 1" bg.bright="(:cm_${i} ieq 0) ? :const_bg_darken : 1.0" visibility=":cm_${i} ieq 2"/>
								</hbox>
								<knob id="al_${i}" size="16" ssize="3" pad.t="4" scolor="attack_1"/>
								<knob id="at_${i}" size="16" ssize="3" scolor="cycle" pad.t="4" scolor.hue=":hue_${i}"/>
								<knob id="rrl_${i}" size="16" ssize="3" pad.t="4" scolor="release_1"/>
								<knob id="rt_${i}" size="16" ssize="3" scolor="cycle" pad.t="4" scolor.hue=":hue_${i}"/>
								<knob id="ht_${i}" size="16" ssize="3" scolor="cycle" pad.t="4" scolor.hue=":hue_${i}"/>
								<!-- r5 -->
								<hbox fill="false" pad.h="6" pad.v="4" width.min="30">
									<value id="cr_${i}" detailed="false"/>
									<label text=":"/>
									<label text="1"/>
								</hbox>
								<ui:with sline="true" pad.h="6" pad.v="4" width.min="48">
									<value id="kn_${i}"/>
									<value id="mk_${i}"/>
								</ui:with>
								<hbox pad.h="6" pad.v="4" bright="(:cm_${i} ieq 0) ? 0.75 : 1" bg.bright="(:cm_${i} ieq 0) ? :const_bg_darken : 1.0" width.min="54">
									<value id="bth_${i}" sline="true" bright="(:cm_${i} ieq 0) ? 0.75 : 1" bg.bright="(:cm_${i} ieq 0) ? :const_bg_darken : 1.0" visibility=":cm_${i} ine 2"/>
									<value id="bsa_${i}" sline="true" bright="(:cm_${i} ieq 0) ? 0.75 : 1" bg.bright="(:cm_${i} ieq 0) ? :const_bg_darken : 1.0" visibility=":cm_${i} ieq 2"/>
								</hbox>
								<ui:with sline="true" pad.h="6" pad.v="4" width.min="48">
									<value id="al_${i}"/>
									<value id="at_${i}"/>
									<value id="rrl_${i}"/>
									<value id="rt_${i}"/>
									<value id="ht_${i}"/>
								</ui:with>

								<cell cols="10"><hsep bg.color="bg" pad.v="2" vreduce="true"/></cell>
								<cell cols="10"><void fill="true" expand="true"/></cell>
							</grid>
						</vbox>

						<vbox>
							<void bg.color="bg" height="4" vreduce="true"/>

							<group ui:inject="GraphGroup" ipadding="0" expand="true" fill="true" text.show="false">
								<graph width.min="256" height.min="256" expand="false">
									<origin hpos="-1" vpos="-1" visible="false"/>

									<!-- Gray grid -->
									<ui:for id="g" first="-60" last="12" step="24">
										<marker v="${g} db" color="graph_alt_1"/>
										<marker v="${g} db" ox="1" oy="0" color="graph_alt_1"/>
									</ui:for>

									<!-- Yellow grid -->
									<ui:for id="g" first="-48" last="-24" step="24">
										<marker v="${g} db" color="graph_sec"/>
										<marker v="${g} db" ox="1" oy="0" color="graph_sec"/>
									</ui:for>

									<!-- Axes and boundaries -->
									<marker v="1" ox="1" oy="0" dv="1" dx=":_a_width" dy=":_a_height" color="graph_alt_1" width="2" smooth="true"/>
									<marker v="24 db" color="graph_alt_1" visibility="false"/>
									<marker v="24 db" ox="1" oy="0" color="graph_alt_1" visibility="false"/>
									<axis min="-72 db" max="24 db" color="graph_prim" angle="0.0" log="true" visibility="false"/>
									<axis min="-72 db" max="24 db" color="graph_prim" angle="0.5" log="true" visibility="false"/>

									<!-- 0 dB markers -->
									<marker v="0 db" ox="0" oy="1" width="2" color="graph_prim"/>
									<marker v="0 db" ox="1" oy="0" width="2" color="graph_prim"/>

									<!-- Meshes -->
									<mesh id="ccg_${i}" width="3" color="graph_mesh" smooth="true"/>
									<dot x.id="elm_${i}" y.id="clm_${i}" color="graph_mesh" bcolor="graph_mesh"/>

									<!-- Markers -->
									<marker id="al_${i}" editable="true" width="2" pointer="hsize" color="attack_1" hcolor="attack_1"/>
									<marker id="rl_${i}" color="release_1"/>

									<!-- Text -->
									<text x="0 db" y="0 db" text="0" halign="1" valign="1"/>
									<ui:attributes x="0 db" halign="1" valign="-1">
										<text y="24 db" text="graph.units.db"/>
										<text y="12 db" text="+12"/>
										<text y="-12 db" text="-12"/>
										<text y="-24 db" text="-24"/>
										<text y="-36 db" text="-36"/>
										<text y="-48 db" text="-48"/>
										<text y="-60 db" text="-60"/>
										<text y="-72 db" text="graph.axis.out" valign="1"/>
									</ui:attributes>
									<ui:attributes y="0 db" halign="-1" valign="1">
										<text x="24 db" text="graph.units.db"/>
										<text x="12 db" text="+12"/>
										<text x="-12 db" text="-12"/>
										<text x="-24 db" text="-24"/>
										<text x="-36 db" text="-36"/>
										<text x="-48 db" text="-48"/>
										<text x="-60 db" text="-60"/>
										<text x="-72 db" text="graph.axis.in" halign="1"/>
									</ui:attributes>
								</graph>
							</group>
						</vbox>
						<vbox>
							<void bg.color="bg" height="4" vreduce="true"/>
							<label text="labels.gain_" bg.color="bg_schema" pad.v="4"/>
							<ledmeter vexpand="true" height.min="256" angle="1">
								<ledchannel id="rlm_${i}" min="-72 db" max="24 db" log="true" balance="0 db" balance.visibility="true" type="peak" value.color="bright_blue"/>
							</ledmeter>
						</vbox>
					</hbox>
				</ui:for>
			</cgroup>
		</hbox>
	</vbox>

	<!-- Premix overlay -->
	<overlay id="showpmx" trigger="premix_trigger" hpos="1" vpos="1" halign="-1" valign="1" ipadding.t="4">
		<group text="groups.premix" vexpand="false" ipadding="0">
			<grid rows="3" cols="${(:is_sidechain) ? 8 : 5}" spacing="0" bg.color="bg_schema" transpose="true">
				<ui:if test=":is_sidechain">
					<label text="labels.premix.in_to_sc" pad.h="6" pad.v="4"/>
					<knob id="in2sc"/>
					<value id="in2sc" pad.h="6" pad.v="4"/>
				</ui:if>

				<label text="labels.premix.in_to_link" pad.h="6" pad.v="4"/>
				<knob id="in2lk"/>
				<value id="in2lk"/>

				<cell rows="3"><vsep pad.h="2" bg.color="bg" reduce="true"/></cell>

				<ui:if test=":is_sidechain">
					<label text="labels.premix.sc_to_in" pad.h="6" pad.v="4"/>
					<knob id="sc2in"/>
					<value id="sc2in" pad.h="6" pad.v="4"/>

					<label text="labels.premix.sc_to_link" pad.h="6" pad.v="4"/>
					<knob id="sc2lk"/>
					<value id="sc2lk" pad.h="6" pad.v="4"/>

					<cell rows="3"><vsep pad.h="2" bg.color="bg" reduce="true"/></cell>
				</ui:if>

				<label text="labels.premix.link_to_in" pad.h="6" pad.v="4"/>
				<knob id="lk2in"/>
				<value id="lk2in" pad.h="6" pad.v="4"/>

				<label text="labels.premix.link_to_sc" pad.h="6" pad.v="4"/>
				<knob id="lk2sc"/>
				<value id="lk2sc" pad.h="6" pad.v="4"/>
			</grid>
		</group>
	</overlay>
</plugin>
