<plugin resizable="true">
	<vbox spacing="4">
		<!-- Head settings -->
		<hbox fill="true" bg.color="bg_schema">
			<label text="labels.mode" pad.l="6" pad.v="4"/>
			<combo id="mode" pad.h="6" pad.v="4"/>
			<vsep bg.color="bg" pad.h="2" hreduce="true" hexpand="false"/>
			<button ui:inject="Button_cyan" text="actions.freeze" size="16" width="64" id="freeze" pad.h="6" pad.v="4"/>
			<vsep bg.color="bg" pad.h="2" hreduce="true" hexpand="false"/>
			<button ui:inject="Button_magenta" text="actions.linear_frequency" size="16" width="64" id="linfreq" pad.h="6"/>
			<vsep bg.color="bg" pad.h="2" hreduce="true" hexpand="false"/>
			<button ui:inject="Button_orange" text="labels.chan.inspect" size="16" width="64" id="insp_on" pad.h="6"/>
			<knob id="insp_r" scale.size="3" scolor="orange" size="10" pad.h="6"/>
			<value id="insp_r" width.min="48" same_line="true" fill="true" halign="1" pad.r="6"/>
			<vsep bg.color="bg" pad.h="2" hreduce="true" hexpand="false"/>
			<shmlink id="ret_0" value.maxlen="6" text.clip="true" pad.h="6" font.size="10" pad.v="4"/>
			<void hexpand="true" hfill="true"/>
		</hbox>

		<hbox expand="true" spacing="4">
			<vbox spacing="4" expand="true">
				<!-- Analyzer, Mastering -->
				<group ui:inject="GraphGroup" ipadding="0" text="labels.graphs.frequency" expand="true" visibility=":mode ile 1">
					<graph ui:id="main_graph" width.min="776" height.min="470" expand="true" fill="true">
						<origin hpos="-1" vpos="-1" visibility="false"/>

						<!-- Secondary grid -->
						<ui:with color="graph_sec">
							<ui:with visibility="!:linfreq">
								<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>
							<ui:for id="f" first="1000" last="23000" step="1000">
								<marker v="${:f}" visibility=":linfreq"/>
							</ui:for>

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

							<ui:for id="t" first="-42" last="-6" step="12">
								<marker v="${t} db" ox="1" oy="0" visibility=":zoom le -18 db"/>
							</ui:for>
							<ui:for id="t" first="-33" last="-15" step="6">
								<marker v="${t} db" ox="1" oy="0" visibility=":zoom le -33 db"/>
							</ui:for>
						</ui:with>

						<!-- Primary Grid -->
						<ui:with color="graph_prim">
							<marker v="100" visibility="!:linfreq"/>
							<marker v="1000" visibility="!:linfreq"/>
							<marker v="10000" visibility="!:linfreq"/>

							<marker v="0 db" ox="1" oy="0"/>
							<marker v="-24 db" ox="1" oy="0"/>
							<marker v="-48 db" ox="1" oy="0"/>

							<marker v="1" ox="2" oy="0" visibility="false"/>
							<marker v="24000" visibility="false"/>
						</ui:with>

						<!-- Piano keys -->
						<embed oy="3" 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 and !:linfreq">
							<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="3" y="44" halign="1" valign="1" pgroup="0" priority="10" visibility=":_ui_graph_piano_layout and !:linfreq" 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>

						<!-- Meshes -->
						<mesh xi="0" yi="5" id="spd" width="1" color="cyan" fill.color="cyan" fill.color.a="0.9" color.a="0.5" fill="true" visibility=":mtrack"/>
						<mesh xi="0" yi="3" id="spd" width="1" color="left" color.a="0.5" fill.color="left" fill.color.a="0.9" fill="true" visibility=":ctrack and :on_0"/>
						<mesh xi="0" yi="4" id="spd" width="1" color="right" color.a="0.5" fill.color="right" fill.color.a="0.9" fill="true" visibility=":ctrack and :on_1"/>
						<mesh xi="0" yi="1" id="spd" width=":lthick+1" color="left" color.a="0.2" visibility="on_0"/>
						<mesh xi="0" yi="2" id="spd" width=":lthick+1" color="right" color.a="0.2" visibility="on_1"/>
						<mesh id="ifmesh" width="3" color="cyan" fill.color="cyan" fill.color.a="0.8" fill="true" visibility=":insp_id > 0.5"/>

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

						<!-- Marker horizontal line -->
						<marker id="mlval" ox="1" oy="0" width="2" hwidth="2" color="graph_marker_line" hcolor="graph_marker_line_hover" pointer="vsize" visibility=":mline" editable="true"/>

						<!-- Marker -->
						<marker id="sel" ox="0" oy="1" width="2" hwidth="2" editable="true" color="graph_marker_left" hcolor="graph_marker_left" pointer="hsize" visibility="(((:mode ieq 0) or (:mode ieq 1)) and ((:on_0) and (:chn ieq 0)))"/>
						<marker id="sel" ox="0" oy="1" width="2" hwidth="2" editable="true" color="graph_marker_right" hcolor="graph_marker_right" pointer="hsize" visibility="(((:mode ieq 0) or (:mode ieq 1)) and ((:on_1) and (:chn ieq 1)))"/>

						<!-- Text -->
						<ui:with ox="0" oy="2" y="0" halign="1" valign="1" visibility="!:linfreq">
							<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 ox="0" oy="2" y="0" halign="1" valign="1">
							<text x="10" text="graph.units.hz"/>
							<ui:for id="f" first="1" last="23">
								<text x="${:f * 1000}" text="graph.values.x_k" text:value="${f}" visibility=":linfreq"/>
							</ui:for>
						</ui:with>

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

						<!-- Measure text -->
						<text ui:id="mline_level" visibility=":mline" valign="(:mlval lt 0 db) ? 1 : -1" text.valign="(:mlval lt 0 db) ? -1 : 1" ox="0" oy="1" x="24000" y=":mlval" halign="-1" color="graph_marker_line" font.bold="true"/>

						<!-- Selector text -->
						<ui:with ox="0" oy="2" y="1" valign="-1" visibility="false" pad.h="4" font.bold="true" halign="(:sel lt (:linfreq ? 12000 : 500)) ? 1 : -1" text.halign="(:sel lt (:linfreq ? 12000 : 500)) ? -1 : 1">
							<text ui:id="selector_freq_0" x=":sel" color="graph_marker_left" visibility="(((:mode ieq 0) or (:mode ieq 1)) and ((:on_0) and (:chn ieq 0)))"/>
							<text ui:id="selector_freq_1" x=":sel" color="graph_marker_right" visibility="(((:mode ieq 0) or (:mode ieq 1)) and ((:on_1) and (:chn ieq 1)))"/>
						</ui:with>
					</graph>
				</group>

				<!-- Spectralizer (1 channel) -->
				<group ui:inject="GraphGroup" ipadding="0" text="labels.graphs.frequency" expand="true" visibility=":mode ieq 2">
					<graph ui:id="spc_single_graph" width.min="738" height.min="470" expand="true" fill="true">
						<origin hpos="-1" vpos="1" visibility="false"/>
						<origin hpos="-1" vpos="-1" visibility="false"/>

						<!-- Frame buffer -->
						<fbuffer id="fb0" width="1" height="1" hpos="-1" vpos="1" transparency="0.25" angle="0" mode=":spm" color="left" color.hue=":spc / 2.0"/>

						<!-- Secondary grid -->
						<ui:with color="graph_prim" color.a="0.5">
							<ui:with visibility="!:linfreq">
								<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>

							<ui:for id="f" first="1000" last="23000" step="1000">
								<marker v="${:f}" visibility=":linfreq"/>
							</ui:for>

							<ui:for id="t" first="1" last="7" step="2">
								<marker v="${t}" ox="1" oy="0"/>
							</ui:for>
						</ui:with>

						<!-- Primary grid -->
						<ui:with color="graph_prim">
							<marker v="100" visibility="!:linfreq"/>
							<marker v="1000" visibility="!:linfreq"/>
							<marker v="10000" visibility="!:linfreq"/>
							<ui:for id="t" first="2" last="6" step="2">
								<marker v="${t}" ox="1" oy="0"/>
							</ui:for>
							<marker v="8" ox="1" oy="0" visibility="false"/>
							<marker v="24000" ox="0" oy="1" visibility="false"/>
						</ui:with>

						<!-- Piano keys -->
						<embed ox="0" oy="2" o="1" start.x="midi_freq_start(12, 127)" start.y="20" end.x="midi_freq_end(12, 127)" end.y="44" valign="1" alpha="0.35" visibility=":_ui_graph_piano_layout and !:linfreq">
							<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="2" o="1" y="44" halign="1" valign="1" pgroup="0" priority="10" visibility=":_ui_graph_piano_layout and !:linfreq" 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>

						<!-- Axis -->
						<axis angle="0.0" min="10" ui:id="spc_single_graph_ox" max="24000" log="!:linfreq" visibility="false"/>
						<axis angle="1.5" min="0" max="8" log="false" visibility="false"/>
						<axis min="0" max=":_a_scaled_height" visibility="false" angle="0.5"/>

						<marker id="sel" ox="0" oy="1" width="2" hwidth="2" color="graph_marker_line" hcolor="graph_marker_line" pointer="hsize" editable="true"/>
						<text
							ox="0"
							oy="1"
							y="0"
							valign="-1"
							color="graph_marker_line"
							pad.h="4"
							font.bold="true"
							ui:id="global_selector_spc"
							text="xxx"
							x=":sel"
							halign="(:sel lt (:linfreq ? 12000 : 500)) ? 1 : -1"
							text.halign="(:sel lt (:linfreq ? 12000 : 500)) ? -1 : 1"/>

						<!-- Text -->
						<ui:with y="8" halign="1" valign="1" color="graph_prim" visibility="!:linfreq">
							<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 y="8" halign="1" valign="1" color="graph_prim" visibility=":linfreq">
							<text x="10" text="graph.units.hz"/>
							<ui:for id="f" first="1" last="23">
								<text x="${:f * 1000}" text="graph.values.x_k" text:value="${f}"/>
							</ui:for>
						</ui:with>

						<text x="10" y="0" text="graph.axis.time" halign="1" valign="-1" color="graph_prim"/>
						<ui:for id="t" first="1" last="7">
							<text x="10" y="${t}" text="${t}" halign="1" valign="1" color="graph_prim"/>
						</ui:for>
					</graph>
				</group>

				<!-- Spectralizer (2 channels) -->
				<group ui:inject="GraphGroup" ipadding="0" text="labels.graphs.frequency" expand="true" visibility=":mode ieq 3">
					<graph ui:id="spc_dual_graph" width.min="738" height.min="470" expand="true" fill="true">
						<origin hpos="-1" vpos="1" visibility="false"/>
						<origin hpos="0" vpos="1" visibility="false"/>

						<!-- Frame buffer -->
						<fbuffer id="fb0" x="-1" y="1" width="0.5" height="1" transparency="0.25" angle="0" mode=":spm" color="left"/>
						<fbuffer id="fb1" x="0" y="1" width="0.5" height="1" transparency="0.25" angle="0" mode=":spm" color="right"/>

						<!-- Secondary grid -->
						<ui:with color="graph_prim" color.a="0.6" visibility="!:linfreq">
							<ui:for id="f" first="20" last="90" step="10">
								<marker v="${:f}"/>
								<marker v="${:f * 10}"/>
								<marker v="${:f * 100}"/>

								<marker v="${:f}" o="1" ox="2" oy="1"/>
								<marker v="${:f * 10}" o="1" ox="2" oy="1"/>
								<marker v="${:f * 100}" o="1" ox="2" oy="1"/>
							</ui:for>
							<marker v="20000"/>
							<marker v="20000" o="1" ox="2" oy="1"/>
						</ui:with>
						<ui:with color="graph_prim" color.a="0.6" visibility=":linfreq">
							<ui:for id="f" first="1000" last="23000" step="1000">
								<marker v="${:f}"/>
								<marker v="${:f}" o="1" ox="2" oy="1"/>
							</ui:for>
						</ui:with>

						<ui:with color="graph_prim" color.a="0.6">
							<ui:for id="t" first="1" last="7" step="2">
								<marker v="${t}" ox="1" oy="0"/>
							</ui:for>
						</ui:with>

						<!-- Primary grid -->
						<ui:with color="graph_prim">
							<ui:for id="c" first="0" last="1">
								<marker v="100" o="${c}" visibility="!:linfreq"/>
								<marker v="1000" o="${c}" visibility="!:linfreq"/>
								<marker v="10000" o="${c}" visibility="!:linfreq"/>
							</ui:for>
							<ui:for id="t" first="2" last="6" step="2">
								<marker v="${t}" ox="1" oy="0"/>
							</ui:for>
							<marker v="24000"/>
						</ui:with>

						<!-- Axis -->
						<axis ui:id="spc_dual_graph_ox_1" angle="0.0" min="10" max="24000" length=":_a_width idiv 2" log="!:linfreq" visibility="false"/>
						<axis angle="1.5" min="0" max="8" log="false" visibility="false"/>
						<axis ui:id="spc_dual_graph_ox_2" o="1" angle="0.0" min="10" max="24000" length=":_a_width idiv 2" log="!:linfreq" visibility="false"/>

						<marker id="sel" ox="0" oy="1" width="2" hwidth="2" color="graph_marker_line" hcolor="graph_marker_line" pointer="hsize" editable="true"/>
						<marker id="sel" ox="2" oy="1" o="1" width="2" hwidth="2" color="graph_marker_line" hcolor="graph_marker_line" pointer="hsize" editable="true"/>

						<text
							ox="0"
							oy="1"
							y="0"
							valign="-1"
							color="graph_marker_line"
							pad.h="4"
							font.bold="true"
							ui:id="global_selector_spc_d1"
							text="xxx"
							x=":sel"
							halign="(:sel lt (:linfreq ? 12000 : 500)) ? 1 : -1"
							text.halign="(:sel lt (:linfreq ? 12000 : 500)) ? -1 : 1"/>

						<text
							ox="2"
							oy="1"
							y="0"
							o="1"
							valign="-1"
							color="graph_marker_line"
							pad.h="4"
							font.bold="true"
							ui:id="global_selector_spc_d2"
							text="xxx"
							x=":sel"
							halign="(:sel lt (:linfreq ? 12000 : 500)) ? 1 : -1"
							text.halign="(:sel lt (:linfreq ? 12000 : 500)) ? -1 : 1"/>

						<!-- Text -->
						<ui:for id="c" first="0" last="1">
							<ui:with y="8" halign="1" valign="1" visibility="!:linfreq">
								<text x="10" o="${c}" text="graph.units.hz"/>
								<text x="100" o="${c}" text="100"/>
								<text x="1000" o="${c}" text="graph.values.1k"/>
								<text x="10000" o="${c}" text="graph.values.10k"/>
							</ui:with>

							<ui:with y="8" halign="1" valign="1" visibility=":linfreq">
								<text x="10" o="${c}" text="graph.units.hz"/>
								<ui:for id="f" first="1" last="23">
									<text x="${:f * 1000}" o="${c}" text="graph.values.x_k" text:value="${f}"/>
								</ui:for>
							</ui:with>

							<ui:for id="t" first="1" last="7">
								<text o="${c}" text="${t}" x="10" y="${t}" halign="1" valign="1"/>
							</ui:for>
							<text o="${c}" text="graph.axis.time" x="10" y="0" halign="1" valign="-1"/>
						</ui:for>
					</graph>
				</group>

				<!-- Bottom menu -->
				<hbox pad.l="6" pad.r="6" pad.t="4" pad.b="4" bg.color="bg_schema">
					<hbox spacing="8">
						<label text="labels.fft.window"/>
						<combo id="wnd" pad.r="15"/>
						<label text="labels.fft.tolerance"/>
						<combo id="tol" pad.r="15"/>
						<label text="labels.fft.envelope"/>
						<combo id="env" pad.r="15"/>
					</hbox>
					<void hexpand="true"/>
					<hbox spacing="8">
						<label text="labels.line_size" visibility=":mode ilt 2"/>
						<combo id="lthick" visibility=":mode ilt 2"/>
						<hbox fill="false" spacing="4" pad.h="4" visibility=":mode ilt 2">
							<button ui:inject="Button_cyan" text="labels.history" id="mtrack" size="16"/>
							<button ui:inject="Button_cyan" text="labels.signal.max" id="ctrack" size="16"/>
							<button ui:inject="Button_cyan" text="labels.clear" id="mreset" size="16"/>
						</hbox>

						<button ui:inject="Button_cyan" text="labels.metering.measure_line" id="mline" size="16" visibility=":mode ilt 2" pad.l="15"/>
						<label text="labels.spectrogram" visibility=":mode ige 2"/>
						<combo id="spm" visibility=":mode ige 2"/>
						<button ui:inject="Button_yellow" text="labels.log_dots" id="splog" size="16" visibility=":mode ige 2" pad.l="15"/>
					</hbox>
				</hbox>
			</vbox>

			<!-- Zoom Fader -->
			<vbox visibility=":mode ile 1" 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>

			<!-- metering -->
			<vbox fill="true" vexpand="true" visibility=":mode ile 1" spacing="4">
				<group text="groups.metering" vexpand="true" bg.color="bg" ipadding="0">
					<grid rows="3" cols="1" expand="true" vspacing="2">
						<cell>
							<grid rows="3" cols="3" transpose="true" spacing="2">
								<ui:with bg.color="bg_schema">
									<vbox padding="6">
										<label text="labels.metering.preamp"/>
										<hbox>
											<knob id="pamp" width="60"/>
											<value id="pamp" sline="true" width="60"/>
										</hbox>
									</vbox>

									<cell expand="false">
										<hsep/>
									</cell>

									<vbox padding="6">
										<label text="labels.metering.reactivity" width="58"/>
										<hbox>
											<knob id="react" width="60"/>
											<value id="react" sline="true" width="60"/>
										</hbox>
									</vbox>

									<cell rows="3" cols="1" expand="false">
										<vsep/>
									</cell>
									<ui:with bright="(:on[chn]) ? 1.0 : 0.75" bg.bright="(:on[chn]) ? 1.0 : :const_bg_darken">
										<cell rows="3" cols="2" padding="6">
											<vbox>
												<label text="labels.metering.channel" width="58"/>
												<combo id="chn" width="48" pad.b="4"/>
												<button ui:inject="Button_left_8" text="labels.chan.on" id="on_0" width="48" height="10" visibility=":chn ieq 0"/>
												<button ui:inject="Button_right_8" text="labels.chan.on" id="on_1" width="48" height="10" visibility=":chn ieq 1"/>
												<label text="labels.metering.selector" width="58" pad.t="4"/>
												<knob id="sel" scolor="(:on[chn]) ? ((:chn) ? 'right' : 'left') : ((:chn) ? 'right_inactive' : 'left_inactive')"/>
												<void/>
												<value id="sel" sline="true"/>
											</vbox>
										</cell>
									</ui:with>
								</ui:with>
							</grid>
						</cell>

						<cell expand="false" padding="0">
							<hsep/>
						</cell>

						<cell>
							<hbox spacing="2" bg.color="bg">
								<ui:with bg.color="bg_schema" bright="(:on[chn]) ? 1.0 : 0.75" bg.bright="(:on[chn]) ? 1.0 : :const_bg_darken">
									<void fill="true" expand="true" padding="6"/>
									<vsep expand="false" padding="0"/>
									<vbox expand="false" padding="6">
										<vbox bg.color="bg_schema" vfill="false">
											<label text="labels.metering.fft_frequency:hz" pad.b="6"/>
											<indicator id="freq" format="f6.1!" tcolor="(:on[chn]) ? ((:chn) ? 'right' : 'left') : ((:chn) ? 'right_inactive' : 'left_inactive')" pad.b="6"/>
										</vbox>
										<vbox bg.color="bg_schema" vfill="false">
											<label text="labels.metering.level:db" pad.b="6"/>
											<indicator id="lvl" format="+-f5.1!" tcolor="(:on[chn]) ? ((:chn) ? 'right' : 'left') : ((:chn) ? 'right_inactive' : 'left_inactive')"/>
										</vbox>
									</vbox>
								</ui:with>
							</hbox>
						</cell>
					</grid>
				</group>

				<!-- <vbox> -->
				<button bg.color="bg_schema" text="labels.chan.mid_side" id="ms_0" height="19" hfill="true" pad.v="4" pad.h="6"/>
				<!-- </vbox> -->

				<vbox vfill="false" bg.color="bg_schema" pad.v="4" pad.h="6">
					<label text="labels.chan.correlation" pad.v="0"/>
					<hbox>
						<label text="-1" font.size="8" hfill="true" text.halign="-1" pad.t="2" pad.r="1"/>
						<ledchannel
							id="cm_0"
							width.min="13"
							width.max="13"
							min="-100"
							max="100"
							balance="0"
							balance.visibility="true"
							log="false"
							type="peak"
							text.visibility="false"
							hexpand="true"
							bg.color="bg_schema"
							balance.color="bright_cyan"
							value.color="cyan"
							inactive.brightness="1.0"
							inactive.bg.brightness="1.0"
							inactive.bg.color="bg_schema"
							activity=":on_0 and :on_1"/>
						<label text="+1" font.size="8" hfill="true" text.halign="1" pad.t="2"/>
					</hbox>
				</vbox>

				<group text="groups.channels" vexpand="true" bg.color="bg" ipadding="0">
					<grid rows="3" cols="3" hfill="false" spacing="2">
						<ui:with bg.color="bg_schema">
							<ui:with bright="(:on_0 ine 0) ? 1.0 : 0.75" bg.bright="(:on_0 ine 0) ? 1.0 : :const_bg_darken">
								<label text="labels.specials.idx" text:id="1" padding="6"/>
								<vsep expand="false" padding="0"/>
								<hbox>
									<vbox height="44" padding="6">
										<button ui:inject="Button_left_8" text="labels.chan.on" id="on_0" width="37" height="10"/>
										<hbox fill="false" spacing="4">
											<button ui:inject="Button_green_8" id="solo_0" text="labels.chan.S_olo" height="10" width="10"/>
											<button ui:inject="Button_cyan_8" id="frz_0" text="labels.chan.H_old" height="10" width="10"/>
										</hbox>
									</vbox>
									<hbox width="99" padding="6">
										<knob id="sh_0" scolor="(:on_0 ine 0) ? 'left' : 'left_inactive'" size="24"/>
										<vbox height="44">
											<label text="labels.chan.shift"/>
											<value id="sh_0" detailed="true" sline="true" width="60"/>
										</vbox>
									</hbox>
								</hbox>
							</ui:with>

							<cell rows="1" cols="3" expand="false" padding="0">
								<hsep/>
							</cell>
							<ui:with bright="(:on_1 ine 0) ? 1.0 : 0.75" bg.bright="(:on_1 ine 0) ? 1.0 : :const_bg_darken">
								<label text="labels.specials.idx" text:id="2" padding="6"/>
								<vsep expand="false" padding="0"/>

								<hbox>
									<vbox height="44" padding="6">
										<button ui:inject="Button_right_8" text="labels.chan.on" id="on_1" width="37" height="10"/>
										<hbox fill="false" spacing="4">
											<button ui:inject="Button_green_8" id="solo_1" text="labels.chan.S_olo" height="10" width="10"/>
											<button ui:inject="Button_cyan_8" id="frz_1" text="labels.chan.H_old" height="10" width="10"/>
										</hbox>
									</vbox>
									<hbox width="99" padding="6">
										<knob id="sh_1" scolor="(:on_1 ine 0) ? 'right' : 'right_inactive'" size="24"/>
										<vbox height="44">
											<label text="labels.chan.shift"/>
											<value id="sh_1" detailed="true" sline="true" width="60"/>
										</vbox>
									</hbox>
								</hbox>
							</ui:with>
						</ui:with>
					</grid>
				</group>

			</vbox>

			<!-- Spectralizer (1 channel) -->
			<vbox fill="true" vexpand="true" spacing="4" visibility=":mode ige 2">
				<group text="groups.metering" vexpand="true" bg.color="bg" ipadding="0">
					<grid rows="3" cols="1" expand="true" vspacing="4">
						<cell>
							<vbox bg.color="bg_schema" padding="6">
								<label text="labels.metering.preamp" pad.b="6"/>
								<knob id="pamp" width="60" pad.b="6"/>
								<value id="pamp" sline="true" width="60"/>
							</vbox>
						</cell>

						<cell>
							<vbox bg.color="bg_schema" padding="6">
								<label text="labels.metering.reactivity" width="58" pad.b="6"/>
								<knob id="react" width="60" pad.b="6"/>
								<value id="react" sline="true" width="60"/>
							</vbox>
						</cell>

						<cell visibility=":mode ieq 2">
							<vbox bg.color="bg_schema" padding="6">
								<label text="labels.metering.channel" width="58" pad.b="6"/>
								<combo id="spc" width="48"/>
							</vbox>
						</cell>
					</grid>
				</group>
				<button bg.color="bg_schema" text="labels.chan.mid_side" id="ms" height="19" hfill="true" pad.v="4" pad.h="6" visibility=":mode ieq 3"/>
				<vbox vfill="false" bg.color="bg_schema" pad.v="4" pad.h="6" visibility=":mode ieq 3">
					<label text="labels.chan.correlation" pad.v="0"/>
					<hbox>
						<label text="-1" font.size="8" hfill="true" text.halign="-1" pad.t="2" pad.r="1"/>
						<ledchannel
							id="cm_0"
							width.min="13"
							width.max="13"
							min="-100"
							max="100"
							balance="0"
							balance.visibility="true"
							log="false"
							type="peak"
							text.visibility="false"
							hexpand="true"
							bg.color="bg_schema"
							balance.color="bright_cyan"
							value.color="cyan"
							activity="(:on_0 and :on_1) or :mode ieq 3"/>
						<label text="+1" font.size="8" hfill="true" text.halign="1" pad.t="2"/>
					</hbox>
				</vbox>
				<group text="groups.channels" vexpand="true" bg.color="bg" ipadding="0">
					<grid rows="3" cols="3" hfill="false" spacing="2">
						<ui:with bg.color="bg_schema">
							<ui:with bright="(:spc ieq 0) or (:mode ine 2) ? 1.0 : 0.75" bg.bright="(:spc ieq 0) or (:mode ine 2) ? 1.0 : :const_bg_darken">
								<cell padding="6">
									<label text="labels.specials.idx" text:id="1"/>
								</cell>
								<cell expand="false" padding="0">
									<vsep/>
								</cell>
								<cell>
									<vbox>
										<button ui:inject="Button_cyan_8" id="frz_0" text="labels.chan.hold" height="10" width="48" pad.v="4"/>
										<label text="labels.chan.shift"/>
										<knob id="sh_0" scolor="(:spc ieq 0) or (:mode ine 2) ? 'left' : 'left_inactive'" size="20" pad.v="4"/>
										<value id="sh_0" detailed="true" sline="true" width="60" pad.b="4"/>
									</vbox>
								</cell>
							</ui:with>
							<cell rows="1" cols="3" expand="false" padding="0">
								<hsep/>
							</cell>
							<ui:with bright="(:spc ieq 1) or (:mode ine 2) ? 1.0 : 0.75" bg.bright="(:spc ieq 1) or (:mode ine 2) ? 1.0 : :const_bg_darken">
								<cell padding="6">
									<label text="labels.specials.idx" text:id="2"/>
								</cell>
								<cell expand="false" padding="0">
									<vsep/>
								</cell>
								<cell>
									<vbox>
										<button ui:inject="Button_cyan_8" id="frz_1" text="labels.chan.hold" height="10" width="48" pad.v="4"/>
										<label text="labels.chan.shift"/>
										<knob id="sh_1" scolor="(:spc ieq 1) or (:mode ine 2) ? 'right' : 'right_inactive'" size="20" pad.v="4"/>
										<value id="sh_1" detailed="true" sline="true" width="60" pad.b="4"/>
									</vbox>
								</cell>
							</ui:with>
						</ui:with>
					</grid>
				</group>
			</vbox>
		</hbox>
	</vbox>
</plugin>
