<plugin resizable="true">
	<ui:eval id="is_sidechain" value="(ex :sc) or (ex :sc_l) or (ex :sc_r)"/>
	<ui:set id="has_solo" value="
		:bs_1 or (:bs_2 and :se_1) or (:bs_3 and :se_2) or (:bs_4 and :se_3) or (:bs_5 and :se_4) or (:bs_6 and :se_5) or (:bs_7 and :se_6) or (:bs_8 and :se_7)"/>

	<grid rows="3" cols="5" vspacing="4" hspacing="4">
		<!-- Row 1: Graph -->
		<group ui:inject="GraphGroup" ipadding="0" expand="true" fill="true" text="labels.graphs.spectrum">
			<graph width.min="640" height.min="220" 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="+36 db"/>
						<marker v="+24 db"/>
						<marker v="+12 db"/>
						<marker v="-12 db"/>
						<marker v="-36 db"/>
						<marker v="-60 db"/>

						<ui:for id="g" first="-42" last="18" step="12">
							<marker v="${g} db" visibility=":zoom le -9 db"/>
						</ui:for>
						<ui:for id="g" first="-21" last="9" 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.1"
					lcolor.a="0.8"
					hlcolor.a="0.6"
					rcolor.a="0.8"
					hrcolor.a="0.6"
					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="0" hcolor.hue="0" rborder="16" rcolor.hue="0" hrborder="16" hrcolor.hue="0"/>
					<marker id="bfe_1" color.hue="0" hcolor.hue="0" lborder="16" lcolor.hue="0" hlborder="16" hlcolor.hue="0"/>
					<ui:for id="i" first="1" count="7">
						<marker id="sf_${i}" ui:id="split_marker_${i}" visibility=":se_${i}" editable="true" color.hue="${:i * 0.125}" hcolor.hue="${:i * 0.125}" rborder="16" rcolor.hue="${:i * 0.125}" hrborder="16" hrcolor.hue="${:i * 0.125}" pointer="hsize"/>
						<marker id="bfe_${:i+1}" visibility=":se_${i}" color.hue="${:i * 0.125}" hcolor.hue="${:i * 0.125}" lborder="16" lcolor.hue="${:i * 0.125}" hlborder="16" hlcolor.hue="${:i * 0.125}"/>
					</ui:for>
				</ui:with>

				<!-- Meshes -->
				<mesh id="bfc_1" width="2" fill="true" smooth="true" color="graph_mesh_cycle" color.hue="0" fcolor="graph_mesh_cycle" fcolor.hue="0" fcolor.a="0.9" visibility=":flt"/>
				<ui:for id="i" first="1" count="7">
					<mesh id="bfc_${:i+1}" width="2" fill="true" smooth="true" color="graph_mesh_cycle" color.hue="${:i * 0.125}" fcolor="graph_mesh_cycle" fcolor.hue="${:i * 0.125}" fcolor.a="0.9" color.a="0.6" visibility=":flt and :se_${:i}"/>
				</ui:for>

				<mesh id="ifg_l" oy=":_ui_zoomable_spectrum_graph ? 1 : 3" width="0" color="left_in" color.a="0.8" fcolor.a="0.8" fill="true" fcolor="left_in" visibility=":ife_l"/>
				<mesh id="ifg_r" oy=":_ui_zoomable_spectrum_graph ? 1 : 3" width="0" color="right_in" color.a="0.8" fcolor.a="0.8" fill="true" fcolor="right_in" visibility=":ife_r"/>
				<mesh id="ofg_l" oy=":_ui_zoomable_spectrum_graph ? 1 : 3" width="2" color="left" visibility=":ofe_l"/>
				<mesh id="ofg_r" oy=":_ui_zoomable_spectrum_graph ? 1 : 3" width="2" color="right" visibility=":ofe_r"/>

				<mesh id="ag_l" width="3" color="left" smooth="true"/>
				<mesh id="ag_r" width="3" color="right" smooth="true"/>

				<!-- Axis -->
				<axis min="10" max="24000" angle="0.0" log="true" visibility="false"/>
				<axis min="-72 db / (:zoom ** 3)" max="48 db * (:zoom ** 2)" color="graph_prim" angle="0.5" log="true"/>
				<axis min="-1" max="1" visibility="false" angle="0.5"/>
				<axis min="-72 db" max="48 db" color="graph_prim" angle="0.5" log="true"/>
				<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="48" 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="18" step="12">
						<text y="${g} db" text="${g}" visibility=":zoom le -9 db"/>
					</ui:for>
					<ui:for id="g" first="-21" last="9" step="6">
						<text y="${g} db" text="${g}" visibility=":zoom le -15 db"/>
					</ui:for>
				</ui:with>

				<ui:for id="i" first="1" count="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 * 0.125}"/>
					</ui:with>
				</ui:for>
			</graph>
		</group>

		<!-- Row 1: 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>
		<!-- Row 1: 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_l" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="left_in"/>
					<ledchannel id="ilm_r" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="right_in"/>
				</ledmeter>
			</vbox>
		</cell>

		<!-- Row 1: 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_l" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="left"/>
					<ledchannel id="olm_r" min="-72 db" max="12 db" log="true" type="rms_peak" peak.visibility="true" value.color="right"/>
				</ledmeter>
			</vbox>
		</cell>

		<!-- Row 1: signal -->
		<cell rows="2">
			<vbox spacing="4">
				<group text="groups.signal" expand="true">
					<grid rows="4" 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>
					</grid>
				</group>

				<!-- Analysis -->
				<group text="groups.analysis" expand="true" ipadding="0">
					<vbox>
						<grid rows="4" cols="2">
							<align halign="-1" pad.t="4" pad.l="13">
								<label text="labels.fft.fft_in"/>
							</align>
							<hbox spacing="4" pad.v="4" pad.r="13">
								<button id="ife_l" text="labels.chan.L_eft" hfill="true" ui:inject="Button_left_8"/>
								<button id="ife_r" text="labels.chan.R_ight" hfill="true" ui:inject="Button_right_8"/>
							</hbox>

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

							<align halign="-1" pad.t="4" pad.l="13">
								<label text="labels.fft.fft_out" halign="0"/>
							</align>
							<hbox spacing="4" pad.v="4" pad.r="13">
								<button id="ofe_l" text="labels.chan.L_eft" hfill="true" ui:inject="Button_left_8"/>
								<button id="ofe_r" text="labels.chan.R_ight" hfill="true" ui:inject="Button_right_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>

		<!-- Row 2: bottom line -->
		<hbox spacing="4" vreduce="true" bg.color="bg_schema" pad.h="6">
			<label text="labels.mode:"/>
			<combo id="mode" pad.r="4"/>
			<label text="labels.sc_boost:"/>
			<combo id="envb" pad.r="4"/>
			<label text="labels.oversampling:"/>
			<combo id="ovs" pad.r="4" pad.v="4"/>
			<label text="labels.dither:"/>
			<combo id="dither" pad.r="4" pad.v="4"/>
			<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" hfill="true"/>

			<vsep pad.h="2" bg.color="bg" reduce="true"/>
			<combo id="extsc" pad.l="2"/>
			<shmlink id="link" />
		</hbox>

		<!-- Row 3: limiter bands -->
		<cell cols="4">
			<group text="labels.limiter_bands" ipadding="0">
				<grid rows="27" cols="17">
					<!-- Row 1 -->
					<cell rows="3" cols="2">
						<label text="labels.controls"/>
					</cell>
					<cell rows="3">
						<label text="labels.range"/>
					</cell>
					<cell rows="27">
						<vsep pad.h="2" bg.color="bg" hreduce="true"/>
					</cell>
					<cell cols="4">
						<label text="labels.alr" pad.v="4"/>
					</cell>
					<cell rows="27">
						<vsep pad.h="2" bg.color="bg" hreduce="true"/>
					</cell>
					<cell cols="8">
						<label text="labels.plug.limiter"/>
					</cell>

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

					<!-- Row 3 -->
					<ui:with width.min="56" pad.v="4" pad.r="4">
						<label text="labels.attack" pad.l="4"/>
						<label text="labels.release"/>
						<label text="labels.knee"/>
						<label text="labels.smooth"/>

						<label text="labels.preamp" pad.l="4"/>
						<label text="labels.mode"/>
						<label text="labels.thresh_old"/>
						<label text="labels.attack"/>
						<label text="labels.release"/>
						<label text="labels.stereo_link"/>
						<label text="labels.makeup"/>
						<label text="labels.reduction"/>
					</ui:with>

					<ui:for id="i" first="1" count="8">

						<ui:set id="act_ch" value="(!:bm_${:i} and ((${has_solo}) ? :bs_${:i} : true) and (ex :se_${:i-1} ? (:se_${:i-1}) : true ))"/>
						<!-- Row 1 -->
						<cell cols="3">
							<hsep pad.v="2" bg.color="bg" vreduce="true"/>
						</cell>
						<cell cols="4">
							<hsep pad.v="2" bg.color="bg" vreduce="true"/>
						</cell>
						<cell cols="8">
							<hsep pad.v="2" bg.color="bg" vreduce="true"/>
						</cell>

						<ui:with bg.bright="(!${act_ch}) ? :const_bg_darken : 1.0" bright="(!${act_ch}) ? 0.75 : 1.0">
							<!-- Row 2 -->
							<cell rows="2" cols="2">
								<grid rows="2" cols="3" vfill="false" hreduce="true" pad.v="4" pad.h="6" spacing="4">
									<cell rows="2">
										<ui:if test=":i ile 1">
											<button value="1" editable="false" pointer="arrow" text="labels.chan.ON_num_id" text:id="1" font.size="10" width="48" vfill="true" ui:inject="Button_ne_Cycle"/>
										</ui:if>
										<ui:if test=":i igt 1">
											<button
												id="se_${:i-1}"
												text="labels.chan.ON_num_id"
												text:id="${i}" font.size="10"
												ui:inject="Button_Cycle"
												width="48"
												vfill="true"
												down.color.hue="${(:i-1) * 0.125}"
												down.hover.color.hue="${(:i-1) * 0.125}"
												text.down.color.hue="${(:i-1) * 0.125}"
												text.down.hover.color.hue="${(:i-1) * 0.125}"
												border.down.color.hue="${(:i-1) * 0.125}"
												border.down.hover.color.hue="${(:i-1) * 0.125}"/>
										</ui:if>
									</cell>
									<ui:with fill="true" height="20">
										<vbox pad.b="1">
											<button id="on_${i}" text="labels.act_ive" ui:inject="Button_cyan_8" visibility="(${act_ch})"/>
											<button id="on_${i}" text="labels.act_ive" ui:inject="Button_inactive_8" visibility="(!${act_ch})"/>
										</vbox>
										<button id="bs_${i}" text="labels.chan.S_olo" ui:inject="Button_green_8"/>
										<vbox pad.b="1">
											<button id="alr_${i}" text="labels.alr" ui:inject="Button_yellow_8" visibility="(${act_ch})"/>
											<button id="alr_${i}" text="labels.alr" ui:inject="Button_inactive_8" visibility="(!${act_ch})"/>
										</vbox>
										<button id="bm_${i}" text="labels.chan.M_ute" ui:inject="Button_red_8"/>
									</ui:with>
								</grid>
							</cell>

							<cell rows="2" pad.h="6">
								<hbox hfill="false">
									<ui:if test=":i igt 1">
										<knob id="sf_${:i-1}" pad.r="4" size="22" scolor="cycle" scolor.hue="${(:i-1) * 0.125}" visibility="(${act_ch})"/>
										<knob id="sf_${:i-1}" pad.r="4" size="22" scolor="cycle_inactive" visibility="(!${act_ch})"/>
									</ui:if>
									<vbox vfill="false" width.min="30">
										<ui:if test=":i ile 1">
											<label text="0"/>
											<value id="bfe_${i}" detailed="false"/>
										</ui:if>
										<ui:if test=":i igt 1">
											<value id="sf_${:i-1}" detailed="false"/>
											<value id="bfe_${i}" detailed="false"/>
										</ui:if>
									</vbox>
								</hbox>
							</cell>
							<ui:with pad.t="4" size="16">
								<knob id="aat_${i}" scolor="(!${act_ch}) ? 'cycle_inactive' : 'attack'"/>
								<knob id="art_${i}" scolor="(!${act_ch}) ? 'cycle_inactive' : 'release_1'"/>
								<knob id="akn_${i}" scolor="(!${act_ch}) ? 'cycle_inactive' : 'kscale'"/>
								<knob id="asm_${i}" scolor="(!${act_ch}) ? 'cycle_inactive' : 'kscale'"/>

								<knob id="bpa_${i}" scolor="(!${act_ch}) ? 'cycle_inactive' : 'kscale'"/>
							</ui:with>
							<cell rows="2">
								<vbox fill="false" pad.h="6" pad.v="4">
									<combo id="lm_${i}" pad.b="4"/>
									<button id="gb_${i}" height="19" hfill="true" text="labels.boost_" ui:inject="Button_inactive_8" visibility="(!${act_ch})"/>
									<button id="gb_${i}" height="19" hfill="true" text="labels.boost_" ui:inject="Button_violet_8" visibility="(${act_ch})"/>
								</vbox>
							</cell>
							<ui:with pad.t="4" size="16">
								<hbox>
									<knob id="th_${i}" ui:inject="Knob_meter_threshold" meter.max=":ig_${i}" visibility="${act_ch}"/>
									<knob id="th_${i}" scolor="cycle_inactive" visibility="!${act_ch}"/>
								</hbox>
								<knob id="at_${i}" scolor="(!${act_ch}) ? 'cycle_inactive' : 'attack'"/>
								<knob id="rt_${i}" scolor="(!${act_ch}) ? 'cycle_inactive' : 'release'"/>
								<knob id="bsl_${i}" scolor="(!${act_ch}) ? 'cycle_inactive' : 'balance'"/>
								<knob id="bmk_${i}" scolor="(!${act_ch}) ? 'cycle_inactive' : 'kscale'"/>
							</ui:with>
							<cell rows="2" pad.r="4" pad.v="4" hexpand="true">
								<ledmeter height.min="5">
									<ledchannel id="rlm_${i}l" min="-48 db" max="0 db" log="true" balance="0 db" balance.visibility="true" type="peak" peak.visibility="true" value.color="${act_ch} ? 'blue' : 'cycle_inactive'" balance.color="${act_ch} ? 'yellow' : 'cycle_inactive'"/>
									<ledchannel id="rlm_${i}r" min="-48 db" max="0 db" log="true" balance="0 db" balance.visibility="true" type="peak" peak.visibility="true" value.color="${act_ch} ? 'blue' : 'cycle_inactive'" balance.color="${act_ch} ? 'yellow' : 'cycle_inactive'"/>
								</ledmeter>
							</cell>

							<ui:with pad.h="4">
								<value id="aat_${i}" sline="true"/>
								<value id="art_${i}" sline="true"/>
								<value id="akn_${i}" sline="true"/>
								<value id="asm_${i}" sline="true"/>
								<value id="bpa_${i}" sline="true"/>
								<value id="th_${i}" sline="true"/>
								<value id="at_${i}" sline="true"/>
								<value id="rt_${i}" sline="true"/>
								<value id="bsl_${i}" sline="true"/>
								<value id="bmk_${i}" sline="true"/>
							</ui:with>
						</ui:with>
					</ui:for>

				</grid>
			</group>
		</cell>
		<!-- Output Limiter -->
		<cell>
			<ui:set id="act_alr" value=":on and :alr"/>
			<group text="labels.output_limiter" ipadding="0">
				<grid rows="15" cols="4" spacing="0">

					<cell cols="4" reduce="true">
						<button id="on" hfill="true" height="18" pad.v="4" pad.h="6" text="labels.chan.on" ui:inject="Button_cyan" bg.bright=":on ? 1.0 : :const_bg_darken" bright=":on ? 1.0: 0.75"/>
					</cell>
					<cell cols="4">
						<hsep pad.v="2" bg.color="bg" vreduce="true"/>
					</cell>
					<cell cols="2" reduce="true">
						<button id="alr" hfill="true" height="18" pad.v="4" pad.h="6" text="labels.alr" ui:inject="Button_yellow" bg.bright="${act_alr} ? 1.0 : :const_bg_darken" bright="${act_alr} ? 1.0: 0.75"/>
					</cell>
					<cell rows="13">
						<void pad.h="2" bg.color="bg" hreduce="true"/>
					</cell>
					<cell rows="13">
						<vbox>
							<ui:with bg.bright=":on ? 1.0 : :const_bg_darken" bright=":on ? 1.0: 0.75">
								<label text="labels.gain" pad.v="3"/>
								<ledmeter height.min="192" angle="1" vexpand="true">
									<ledchannel id="rlm_l" min="-48 db" max="0 db" log="true" balance="0 db" balance.visibility="true" type="peak" peak.visibility="true" value.color=":on ? 'blue' : 'cycle_inactive'" balance.color=":on ? 'yellow' : 'cycle_inactive'"/>
									<ledchannel id="rlm_r" min="-48 db" max="0 db" log="true" balance="0 db" balance.visibility="true" type="peak" peak.visibility="true" value.color=":on ? 'blue' : 'cycle_inactive'" balance.color=":on ? 'yellow' : 'cycle_inactive'"/>
								</ledmeter>
							</ui:with>
						</vbox>
					</cell>
					<ui:with bg.bright="${act_alr} ? 1.0 : :const_bg_darken" bright="${act_alr} ? 1.0: 0.75">
						<knob id="aat" scolor="${act_alr} ? 'attack' : 'cycle_inactive'" pad.l="6" pad.r="4"/>
						<vbox vfill="false" pad.r="6">
							<label text="labels.attack" halign="0"/>
							<value id="aat" sline="true" halign="0"/>
						</vbox>
						<knob id="art" scolor="${act_alr} ? 'release' : 'cycle_inactive'" pad.l="6" pad.r="4"/>
						<vbox vfill="false" pad.r="6">
							<label text="labels.release" halign="0"/>
							<value id="art" sline="true" halign="0"/>
						</vbox>
						<knob id="akn" scolor="${act_alr} ? 'kscale' : 'cycle_inactive'" pad.l="6" pad.r="4"/>
						<vbox vfill="false" pad.r="6">
							<label text="labels.knee" halign="0"/>
							<value id="akn" sline="true" halign="0"/>
						</vbox>
						<knob id="asm" scolor="${act_alr} ? 'kscale' : 'cycle_inactive'" pad.l="6" pad.r="4"/>
						<vbox vfill="false" pad.r="6">
							<label text="labels.smooth" halign="0"/>
							<value id="asm" sline="true" halign="0"/>
						</vbox>
					</ui:with>

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

					<ui:with bg.bright=":on ? 1.0 : :const_bg_darken" bright=":on ? 1.0: 0.75">
						<knob id="lk" scolor=":on ? 'kscale' : 'cycle_inactive'" pad.l="6" pad.r="4"/>
						<vbox vfill="false" pad.r="6">
							<label text="labels.sc.lookahead" halign="0"/>
							<value id="lk" sline="true" halign="0"/>
						</vbox>
					</ui:with>

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

					<ui:with bg.bright=":on ? 1.0 : :const_bg_darken" bright=":on ? 1.0: 0.75">
						<cell cols="2" vreduce="true">
							<vbox vfill="false" pad.v="4" pad.h="6">
								<combo id="lm" pad.b="4"/>
								<button id="gb" hfill="true" height="18" text="labels.boost_" ui:inject="Button_violet" visibility=":on"/>
								<button id="gb" hfill="true" height="18" text="labels.boost_" ui:inject="Button_inactive" visibility="!:on"/>
							</vbox>
						</cell>

						<vbox pad.l="6" pad.r="4">
							<knob id="th" meter.max=":ig" ui:inject="Knob_meter_threshold" visibility=":on"/>
							<knob id="th" scolor="cycle_inactive" visibility="!:on"/>
						</vbox>
						<vbox vfill="false" pad.r="6">
							<label text="labels.threshold" scolor="threshold" halign="0"/>
							<value id="th" sline="true" halign="0"/>
						</vbox>
						<knob id="at" scolor=":on ? 'attack' : 'cycle_inactive'" pad.l="6" pad.r="4"/>
						<vbox vfill="false" pad.r="6">
							<label text="labels.attack" halign="0"/>
							<value id="at" sline="true" halign="0"/>
						</vbox>
						<knob id="rt" scolor=":on ? 'release' : 'cycle_inactive'" pad.l="6" pad.r="4"/>
						<vbox vfill="false" pad.r="6">
							<label text="labels.release" halign="0"/>
							<value id="rt" sline="true" halign="0"/>
						</vbox>
						<knob id="slink" scolor=":on ? 'balance' : 'cycle_inactive'" pad.l="6" pad.r="4"/>
						<vbox vfill="false" pad.r="6">
							<label text="labels.stereo_link" halign="0"/>
							<value id="slink" sline="true" halign="0"/>
						</vbox>
					</ui:with>
				</grid>
			</group>
		</cell>
	</grid>

	<!-- 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>
