<plugin resizable="true">
	<hbox>
		<grid rows="5" cols="7" hexpand="true">
			<!-- Row 1 -->
			<!-- Rate, Tempo -->
			<hbox hexpand="false" bg.color="bg_schema">
				<!-- Rate -->
				<vbox fill="false" pad.v="4" pad.h="6" width="108">
					<combo id="time" fill="true" pad.v="4"/>
					<hbox fill="true" pad.b="1" height="38" visibility=":time ieq 0">
						<align halign="-1">
							<knob id="rate"/>
						</align>
						<value id="rate" width="52" sline="true"/>
					</hbox>
					<hbox fill="true" pad.b="1" height="38" visibility=":time ieq 1">
						<align halign="-1">
							<hbox width="52">
								<frac id="frac" pad.r="6" pad.b="2" pad.t="3" den.id="denom" max="8" color="green"/>
							</hbox>
						</align >
						<value id="frac" width="52" sline="true"/>
					</hbox>
					<void fill="true" pad.b="1" height="38" visibility=":time ieq 2"/>
				</vbox>
				<vsep pad.h="2" bg.color="bg" hreduce="true"/>
				<!-- Tempo -->
				<vbox fill="false" pad.v="4" pad.h="6" width="108">
					<hbox height="43" fill="false" visibility="!:sync">
						<knob id="tempo" pad.r="6"/>
						<vbox fill="false">
							<label text="labels.tempo"/>
							<value id="tempo" width.min="48" same_line="true"/>
						</vbox>
					</hbox>
					<vbox fill="false" visibility=":sync">
						<indicator id="_time_bpm" format="f4.1!" pad="0" text_color="green"/>
						<hbox pad.t="3" fill="false">
							<label text="labels.tempo"/>
							<label pad.l="6" text="labels.host_bpm"/>
						</hbox>
					</vbox>
					<hbox pad.t="4" width="93">
						<button id="sync" text="labels.sync" fill="true" ui:inject="Button_green"/>
						<ttap id="tempo" text="actions.tap" pad.l="6" fill="true" tcolor="label_text" visibility="!:sync"/>
					</hbox>
				</vbox>
			</hbox>
			<!-- Separator -->
			<void pad.h="2" bg.color="bg" hreduce="true"/>
			<!-- Time Graph -->
			<cell cols="3">
				<graph hfill="true" height.min="64">
					<ui:set id="axis_max" value="(min(:ld_1, (:lfo2) ? :ld_2 : :ld_1) + max(:ld_1, (:lfo2) ? :ld_2 : :ld_1) + :depth)"/>
					<origin hpos="-1" vpos="0" visibility="false"/>
					<axis angle="0" min="0" max="max(${axis_max}, 2)" visiblity="true"/>
					<axis angle="0.5" min="-3" max="3" visibility="false"/>
					<axis angle="0" min="0" max="1"/>

					<ui:with color="graph_alt_2" visibility="(${axis_max} lt 4)">
						<marker v="0.5"/>
						<marker v="1.5"/>
						<marker v="2.5"/>
						<marker v="3.5"/>
					</ui:with>

					<ui:with color="graph_alt_2" visibility="(${axis_max} lt 10)">
						<marker v="1"/>
						<marker v="2"/>
						<marker v="3"/>
						<marker v="4"/>
						<marker v="5"/>
						<marker v="6"/>
						<marker v="7"/>
						<marker v="8"/>
						<marker v="9"/>
					</ui:with>

					<ui:with color="graph_alt_2" visibility="(${axis_max} lt 40) and (${axis_max} ge 10)">
						<marker v="2.5"/>
						<marker v="7.5"/>
						<marker v="12.5"/>
						<marker v="17.5"/>
						<marker v="22.5"/>
						<marker v="27.5"/>
						<marker v="32.5"/>
						<marker v="37.5"/>
					</ui:with>

					<ui:with color="graph_alt_2">
						<marker v="5"/>
						<marker v="15"/>
						<marker v="25"/>
						<marker v="35"/>
						<marker v="45"/>
						<marker v="55"/>
					</ui:with>

					<ui:with color="graph_alt_1">
						<marker v="10"/>
						<marker v="30"/>
						<marker v="50"/>
					</ui:with>

					<ui:with color="graph_sec">
						<marker v="20"/>
						<marker v="40"/>
					</ui:with>

					<!-- Markers -->
					<ui:if test="!(ex :in_r)">
						<ui:for id="i" first="1" count="16">
							<marker v=":vmd_${i}" color="graph_mesh" color.a="0.65" visibility=":vml_${i} ine 0"/>
						</ui:for>
					</ui:if>
					<ui:if test="ex :in_r">
						<ui:for id="i" first="1" count="16">
							<marker v=":vmd_${i}l" color="(:ms) ? 'mid' : 'left'" color.a="0.65" visibility=":vml_${i}l ine 0"/>
						</ui:for>
						<ui:for id="i" first="1" count="16">
							<marker v=":vmd_${i}r" color="(:ms) ? 'side' : 'right'" color.a="0.65" visibility=":vml_${i}r ine 0"/>
						</ui:for>
					</ui:if>

					<!-- Dots -->
					<ui:if test="!(ex :in_r)">
						<ui:for id="i" first="1" count="16">
							<dot x.id="vmd_${i}" y="(:vml_${i} ieq 1) ? 1.5 : -1.5" color="graph_mesh" bcolor="graph_mesh" visibility=":vml_${i} ine 0"/>
						</ui:for>
					</ui:if>
					<ui:if test="ex :in_r">
						<ui:for id="i" first="1" count="16">
							<dot x.id="vmd_${i}l" y="(:vml_${i}l ieq 1) ? 2 : -1" color="(:ms) ? 'mid' : 'left'" bcolor="(:ms) ? 'mid' : 'left'" visibility=":vml_${i}l ine 0"/>
						</ui:for>
						<ui:for id="i" first="1" count="16">
							<dot x.id="vmd_${i}r" y="(:vml_${i}r ieq 1) ? 1 : -2" color="(:ms) ? 'side' : 'right'" bcolor="(:ms) ? 'side' : 'right'" visibility=":vml_${i}r ine 0"/>
						</ui:for>
					</ui:if>

					<!-- Text -->
					<ui:with y="0" valign="-1" halign="1" pgroup="0" priority="50" visibility="(${axis_max} lt 4)">
						<text x="0.5" text="0.5"/>
						<text x="1.5" text="1.5"/>
						<text x="2.5" text="2.5"/>
						<text x="3.5" text="3.5"/>
					</ui:with>

					<ui:with y="0" valign="-1" halign="1" pgroup="0" priority="40" visibility="(${axis_max} lt 10)">
						<text x="1" text="1"/>
						<text x="2" text="2"/>
						<text x="3" text="3"/>
						<text x="4" text="4"/>
						<text x="5" text="5"/>
						<text x="6" text="6"/>
						<text x="7" text="7"/>
						<text x="8" text="8"/>
						<text x="9" text="9"/>
					</ui:with>

					<ui:with y="0" valign="-1" halign="1" pgroup="0" priority="30" visibility="(${axis_max} lt 40) and (${axis_max} ge 10)">
						<text x="2.5" text="2.5"/>
						<text x="7.5" text="7.5"/>
						<text x="12.5" text="12.5"/>
						<text x="17.5" text="17.5"/>
						<text x="22.5" text="22.5"/>
						<text x="27.5" text="27.5"/>
						<text x="32.5" text="32.5"/>
						<text x="37.5" text="37.5"/>
					</ui:with>

					<ui:with y="0" valign="-1" halign="1" pgroup="0" priority="20">
						<text x="5" text="5"/>
						<text x="15" text="15"/>
						<text x="25" text="25"/>
						<text x="35" text="35"/>
						<text x="45" text="45"/>
						<text x="55" text="55"/>
					</ui:with>

					<ui:with y="0" valign="-1" halign="1" pgroup="0" priority="10">
						<text x="10" text="10"/>
						<text x="20" text="20"/>
						<text x="30" text="30"/>
						<text x="40" text="40"/>
						<text x="50" text="50"/>
						<text x="60" text="60"/>
					</ui:with>

					<ui:with ox="2" y="0" valign="-1" pgroup="0" priority="0">
						<text x="0" halign="1" text="0"/>
						<text x="1" halign="-1" text="graph.units.ms"/>
					</ui:with>
				</graph>
			</cell>
			<!-- Separator -->
			<void pad.h="2" bg.color="bg" hreduce="true"/>
			<!-- Crossfade, Voices -->
			<hbox hexpand="false" bg.color="bg_schema">
				<!-- Crossfade -->
				<vbox fill="false" pad.v="4" pad.h="6" width="108">
					<hbox fill="true">
						<align halign="-1">
							<knob id="xfade"/>
						</align>
						<vbox>
							<label text="labels.lfo.crossfade"/>
							<value id="xfade" sline="true"/>
						</vbox>
					</hbox>
					<combo id="xtype" fill="true" pad.t="4"/>
				</vbox>

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

				<!-- Voices -->
				<vbox fill="false" pad.v="4" width="120">
					<hbox pad.h="6" pad.b="4">
						<label text="labels.lfo.voices" pad.r="6"/>
						<combo fill="false" id="voices"/>
					</hbox>
					<hsep pad.v="2" bg.color="bg" vreduce="true"/>
					<hbox fill="true" pad.t="4" pad.h="6">
						<knob id="depth"/>
						<vbox width.min="48">
							<label text="labels.depth"/>
							<value id="depth" sline="true"/>
						</vbox>
					</hbox>
				</vbox>

			</hbox>

			<!-- Row 2 -->
			<!-- Long separator -->
			<cell cols="7">
				<hsep pad.v="2" bg.color="bg" vreduce="true"/>
			</cell>

			<!-- Row 3 -->
			<!-- Bottom Line -->
			<void hexpand="true" vexpand="false" bg.color="bg_schema"/>
			<void pad.h="2" bg.color="bg" hreduce="true"/>
			<cell cols="3">
				<hbox spacing="6" vexpand="false" bg.color="bg_schema" pad.h="6">
					<button id="reset" text="actions.restart" ui:inject="Button_yellow" height="19" pad.v="4"/>
					<void hexpand="true"/>
					<button id="lfo2" text="labels.separate" ui:inject="Button_cyan" height="19" pad.v="4"/>
				</hbox>
			</cell>
			<void pad.h="2" bg.color="bg" hreduce="true"/>
			<hbox hexpand="true" vexpand="false" bg.color="bg_schema" pad.h="6">
				<void hexpand="true"/>
				<label text="labels.oversampling" pad.r="4"/>
				<combo id="ovs" pad.v="4"/>
			</hbox>

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

			<!-- Row 5 -->
			<!-- LFO 1 Group -->
			<group text="labels.lfo.1" ipadding="0" width.min="29">
				<grid rows="7" cols="3" transpose="true">
					<!-- Type -->
					<cell cols="3">
						<vbox vfill="false" vreduce="true">
							<label text="labels.lfo.type" pad.v="4"/>
							<hbox pad.h="6" pad.b="4">
								<combo id="lt_1" hfill="true"/>
								<combo id="lp_1" hfill="true" pad.l="6"/>
							</hbox>
						</vbox>
					</cell>
					<cell cols="3"><hsep pad.v="2" bg.color="bg" vreduce="true"/></cell>

					<!-- Overlap -->
					<hbox fill="false" pad.v="4" pad.h="6" width.min="108">
						<knob id="lo_1" pad.r="6"/>
						<vbox width.min="64">
							<label text="labels.overlap"/>
							<value id="lo_1" width="48" same_line="true"/>
						</vbox>
					</hbox>

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

					<!-- Phase -->

					<hbox fill="false" pad.v="4" pad.h="6" width.min="108">
						<knob id="lip_1" pad.r="6"/>
						<vbox width.min="64">
							<label text="labels.lfo.phase"/>
							<value id="lip_1" width="48" same_line="true"/>
						</vbox>
					</hbox>

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

					<!-- Difference -->
					<cell cols="3">
						<ui:if test="ex :lcp_1">
							<hbox fill="false" pad.v="4" pad.h="6">
								<knob id="lcp_1" pad.r="6"/>
								<vbox width.min="64">
									<label text="labels.lfo.difference"/>
									<value id="lcp_1" width="48" same_line="true"/>
								</vbox>
							</hbox>
						</ui:if>
						<ui:if test="!(ex :lcp_1)">
							<void height.min="32" pad.v="6"/>
						</ui:if>
					</cell>

					<cell rows="1"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>
					<cell rows="1"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>

					<!-- Delay -->
					<hbox fill="false" pad.v="4" width.min="108">
						<knob id="ld_1" pad.r="6"/>
						<vbox width.min="64">
							<label text="labels.delay"/>
							<value id="ld_1" width="48" same_line="true"/>
						</vbox>
					</hbox>

					<!-- Phase Range -->
					<hbox fill="false" pad.v="4" pad.h="6" width.min="108">
						<knob id="lvp_1" pad.r="6"/>
						<vbox width.min="64">
							<label text="labels.lfo.phase_range"/>
							<value id="lvp_1" width="48" same_line="true"/>
						</vbox>
					</hbox>

				</grid>
			</group>

			<void pad.h="2" bg.color="bg" hreduce="true"/>

			<!-- LFO 1 Graph -->
			<group ui:inject="GraphGroup" ipadding="0" expand="true" fill="true" text="labels.graphs.LFO_1">
				<graph width.min="210" expand="true" height.min="210">
					<origin hpos="-1" vpos="1" visibility="false"/>
					<origin hpos="-1" vpos="-1" visibility="false"/>

					<!-- Grid -->
					<ui:with color="graph_alt_2">
						<marker v="45"/>
						<marker v="135"/>
						<marker v="225"/>
						<marker v="315"/>
						<marker v="0.125" ox="1" oy="0"/>
						<marker v="0.375" ox="1" oy="0"/>
						<marker v="0.625" ox="1" oy="0"/>
						<marker v="0.875" ox="1" oy="0"/>
					</ui:with>

					<ui:with color="graph_alt_1">
						<marker v="90"/>
						<marker v="270"/>
						<marker v="0.25" ox="1" oy="0"/>
						<marker v="0.75" ox="1" oy="0"/>
					</ui:with>

					<ui:with color="graph_sec">
						<marker v="180"/>
						<marker v="0.5" ox="1" oy="0"/>
					</ui:with>

					<!-- Axes -->
					<axis min="0" max="360" angle="1.5" visibility="false"/>
					<axis min="0" max="1" angle="0" visibility="false"/>
					<axis o="1" min="0" max="100" angle="0.5" visibility="false"/>

					<!-- Mesh -->
					<ui:for id="i" first="1" count="16">
						<mesh id="lgr_1" x.index="0" y.index="${i}" width="3" color="graph_mesh" smooth="true"/>
					</ui:for>

					<!-- Markers -->
					<marker o="1" ox="2" oy="1" zero="0" id="xfade" editable="true" pointer="vsize" color="graph_marker_cycle" hcolor="graph_marker_cycle" color.a="0.5" hcolor.a="0.5"/>

					<ui:if test="!(ex :in_r)">
						<ui:for id="i" first="1" count="16">
							<marker v=":vms_${i}" ox="1" oy="0" color="graph_mesh" color.a="0.65" visibility=":vml_${i} ieq 1"/>
						</ui:for>
					</ui:if>
					<ui:if test="ex :in_r">
						<ui:for id="i" first="1" count="16">
							<marker v=":vms_${i}l" ox="1" oy="0" color="(:ms) ? 'mid' : 'left'" color.a="0.65" visibility=":vml_${i}l ieq 1"/>
						</ui:for>
						<ui:for id="i" first="1" count="16">
							<marker v=":vms_${i}r" ox="1" oy="0" color="(:ms) ? 'side' : 'right'" color.a="0.65" visibility=":vml_${i}r ieq 1"/>
						</ui:for>
					</ui:if>

					<!-- Dots -->
					<ui:if test="!(ex :in_r)">
						<ui:for id="i" first="1" count="16">
							<dot x.id="vmp_${i}" y.id="vms_${i}" color="graph_mesh" bcolor="graph_mesh" visibility=":vml_${i} ieq 1"/>
						</ui:for>
					</ui:if>
					<ui:if test="ex :in_r">
						<ui:for id="i" first="1" count="16">
							<dot x.id="vmp_${i}l" y.id="vms_${i}l" color="(:ms) ? 'mid' : 'left'" bcolor="(:ms) ? 'mid' : 'left'" visibility=":vml_${i}l ieq 1"/>
						</ui:for>
						<ui:for id="i" first="1" count="16">
							<dot x.id="vmp_${i}r" y.id="vms_${i}r" color="(:ms) ? 'side' : 'right'" bcolor="(:ms) ? 'side' : 'right'" visibility=":vml_${i}r ieq 1"/>
						</ui:for>
					</ui:if>

					<ui:for id="i" first="1" count="7">
						<text x="${:i*45}" y="0" halign="1" valign="1" text="graph.values.x:deg" text:value="${:i*45}"/>
					</ui:for>
					<text x="360" y="0" halign="1" valign="1" text="graph.axis.phase"/>

					<text x="360.0 - 3.6*:xfade" y="1" halign="-1" valign="1" text="labels.lfo.crossfade" color="graph_marker_cycle" color.a="0.5"/>
				</graph>
			</group>

			<void pad.h="2" bg.color="bg" hreduce="true"/>

			<!-- LFO 2 Graph -->
			<ui:with bg.bright="!:lfo2 ? :const_bg_darken : 1.0" bright="!:lfo2 ? 0.75 : 1.0">
				<group ui:inject="GraphGroup" ipadding="0" expand="true" fill="true" text="labels.graphs.LFO_2">
					<graph width.min="210" expand="true" height.min="210">
						<origin hpos="-1" vpos="1" visibility="false"/>
						<origin hpos="-1" vpos="-1" visibility="false"/>

						<!-- Grid -->
						<ui:with color="graph_alt_2">
							<marker v="45"/>
							<marker v="135"/>
							<marker v="225"/>
							<marker v="315"/>
							<marker v="0.125" ox="1" oy="0"/>
							<marker v="0.375" ox="1" oy="0"/>
							<marker v="0.625" ox="1" oy="0"/>
							<marker v="0.875" ox="1" oy="0"/>
						</ui:with>

						<ui:with color="graph_alt_1">
							<marker v="90"/>
							<marker v="270"/>
							<marker v="0.25" ox="1" oy="0"/>
							<marker v="0.75" ox="1" oy="0"/>
						</ui:with>

						<ui:with color="graph_sec">
							<marker v="180"/>
							<marker v="0.5" ox="1" oy="0"/>
						</ui:with>

						<!-- Axes -->
						<axis min="0" max="360" angle="1.5" visibility="false"/>
						<axis min="0" max="1" angle="0" visibility="false"/>
						<axis o="1" min="0" max="100" angle="0.5" visibility="false"/>

						<!-- Mesh -->
						<ui:for id="i" first="1" count="8">
							<mesh id="lgr_2" x.index="0" y.index="${i}" width="3" color="graph_mesh" visibility=":lfo2" smooth="true"/>
						</ui:for>

						<!-- Markers -->
						<marker o="1" ox="2" oy="1" zero="0" id="xfade" editable="true" pointer="vsize" color="graph_marker_cycle" hcolor="graph_marker_cycle" color.a="0.5" hcolor.a="0.5"/>

						<ui:if test="!(ex :in_r)">
							<ui:for id="i" first="1" count="16">
								<marker v=":vms_${i}" ox="1" oy="0" color="graph_mesh" color.a="0.65" visibility=":vml_${i} ieq 2"/>
							</ui:for>
						</ui:if>
						<ui:if test="ex :in_r">
							<ui:for id="i" first="1" count="16">
								<marker v=":vms_${i}l" ox="1" oy="0" color="(:ms) ? 'mid' : 'left'" color.a="0.65" visibility=":vml_${i}l ieq 2"/>
							</ui:for>
							<ui:for id="i" first="1" count="16">
								<marker v=":vms_${i}r" ox="1" oy="0" color="(:ms) ? 'side' : 'right'" color.a="0.65" visibility=":vml_${i}r ieq 2"/>
							</ui:for>
						</ui:if>

						<!-- Dots -->
						<ui:if test="!(ex :in_r)">
							<ui:for id="i" first="1" count="16">
								<dot x.id="vmp_${i}" y.id="vms_${i}" color="graph_mesh" bcolor="graph_mesh" visibility=":vml_${i} ieq 2"/>
							</ui:for>
						</ui:if>
						<ui:if test="ex :in_r">
							<ui:for id="i" first="1" count="16">
								<dot x.id="vmp_${i}l" y.id="vms_${i}l" color="(:ms) ? 'mid' : 'left'" bcolor="(:ms) ? 'mid' : 'left'" visibility=":vml_${i}l ieq 2"/>
							</ui:for>
							<ui:for id="i" first="1" count="16">
								<dot x.id="vmp_${i}r" y.id="vms_${i}r" color="(:ms) ? 'side' : 'right'" bcolor="(:ms) ? 'side' : 'right'" visibility=":vml_${i}r ieq 2"/>
							</ui:for>
						</ui:if>

						<ui:for id="i" first="1" count="7">
							<text x="${:i*45}" y="0" halign="1" valign="1" text="graph.values.x:deg" text:value="${:i*45}"/>
						</ui:for>
						<text x="360" y="0" halign="1" valign="1" text="graph.axis.phase"/>

						<text x="360.0 - 3.6*:xfade" y="1" halign="-1" valign="1" text="labels.lfo.crossfade" color="graph_marker_cycle" color.a="0.5"/>
					</graph>
				</group>
			</ui:with>

			<void pad.h="2" bg.color="bg" hreduce="true"/>

			<!-- LFO 2 Group -->
			<group text="labels.lfo.2" ipadding="0" width.min="29">
				<grid rows="7" cols="3" transpose="true">

					<!-- Type -->
					<ui:with bright="(:lfo2) ? 1 : 0.75" bg.bright="(:lfo2) ? 1 : :const_bg_darken">
						<cell cols="3">
							<vbox vfill="false" vreduce="true">
								<label text="labels.lfo.type" pad.v="4"/>
								<hbox pad.h="6" pad.b="4">
									<combo id="lt_2" hfill="true"/>
									<combo id="lp_2" hfill="true" pad.l="6"/>
								</hbox>
							</vbox>
						</cell>
					</ui:with>

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

					<!-- Overlap -->
					<ui:with bright="(:lfo2) ? 1 : 0.75" bg.bright="(:lfo2) ? 1 : :const_bg_darken">
						<hbox fill="false" pad.v="4" pad.h="6" width.min="108">
							<knob id="lo_2" pad.r="6" scolor=":lfo2 ? 'kscale' : 'cycle_inactive'"/>
							<vbox width.min="64">
								<label text="labels.overlap"/>
								<value id="lo_2" width="48" same_line="true"/>
							</vbox>
						</hbox>
					</ui:with>

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

					<!-- Phase -->
					<ui:with bright="(:lfo2) ? 1 : 0.75" bg.bright="(:lfo2) ? 1 : :const_bg_darken">
						<hbox fill="false" pad.v="4" pad.h="6" width.min="108">
							<knob id="lip_2" pad.r="6" scolor=":lfo2 ? 'kscale' : 'cycle_inactive'"/>
							<vbox width.min="64">
								<label text="labels.lfo.phase"/>
								<value id="lip_2" width="48" same_line="true"/>
							</vbox>
						</hbox>
					</ui:with>

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

					<!-- Difference -->
					<ui:with bright="(:lfo2) ? 1 : 0.75" bg.bright="(:lfo2) ? 1 : :const_bg_darken">
						<cell cols="3">
							<ui:if test="ex :lcp_2">
								<hbox fill="false" pad.v="4" pad.h="6">
									<knob id="lcp_2" pad.r="6" scolor=":lfo2 ? 'kscale' : 'cycle_inactive'"/>
									<vbox width.min="64">
										<label text="labels.lfo.difference"/>
										<value id="lcp_2" width="48" same_line="true"/>
									</vbox>
								</hbox>
							</ui:if>
							<ui:if test="!(ex :lcp_2)">
								<void height.min="32" pad.v="6"/>
							</ui:if>
						</cell>
					</ui:with>

					<cell rows="1"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>
					<cell rows="1"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>

					<!-- Delay -->
					<ui:with bright="(:lfo2) ? 1 : 0.75" bg.bright="(:lfo2) ? 1 : :const_bg_darken">
						<hbox fill="false" pad.v="4" pad.h="6" width.min="108">
							<knob id="ld_2" pad.r="6" scolor=":lfo2 ? 'kscale' : 'cycle_inactive'"/>
							<vbox width.min="64">
								<label text="labels.delay"/>
								<value id="ld_2" width="48" same_line="true"/>
							</vbox>
						</hbox>

						<!-- Phase Range -->
						<hbox fill="false" pad.v="4" pad.h="6" width.min="108">
							<knob id="lvp_2" pad.r="6" scolor=":lfo2 ? 'kscale' : 'cycle_inactive'"/>
							<vbox width.min="64">
								<label text="labels.lfo.phase_range"/>
								<value id="lvp_2" width="48" same_line="true"/>
							</vbox>
						</hbox>
					</ui:with>
				</grid>
			</group>
		</grid>

		<vsep vexpand="true" bg.color="bg" pad.h="2"/>

		<!-- Mono meter for mono version -->
		<ui:if test="ex :in">
			<vbox vexpand="true" bg.color="bg_schema">
				<label text="labels.chan.in" pad.v="3"/>
				<ledmeter angle="1" bg.inherit="true" expand="true">
					<ledchannel id="min" min="-36 db" max="+6 db" log="true" type="rms_peak" peak.visibility="true" value.color="mid_in"/>
				</ledmeter>
			</vbox>
		</ui:if>
		<!-- Stereo meter for stereo version -->
		<ui:if test="ex :in_l">
			<vbox vexpand="true" bg.color="bg_schema">
				<label text="labels.chan.in" pad.v="3"/>
				<ledmeter angle="1" bg.inherit="true" expand="true">
					<ledchannel id="min_l" min="-36 db" max="+6 db" log="true" type="rms_peak" peak.visibility="true" value.color="left_in"/>
					<ledchannel id="min_r" min="-36 db" max="+6 db" log="true" type="rms_peak" peak.visibility="true" value.color="right_in"/>
				</ledmeter>
			</vbox>
		</ui:if>

		<!-- Mono meter for mono version -->
		<ui:if test="ex :in">
			<vbox vexpand="true" bg.color="bg_schema">
				<label text="labels.chan.out" pad.v="3"/>
				<ledmeter angle="1" expand="true" bg.inherit="true">
					<ledchannel id="mout" min="-36 db" max="+6 db" log="true" type="rms_peak" peak.visibility="true" value.color="mid"/>
				</ledmeter>
			</vbox>
		</ui:if>

		<!-- Stereo meter for stereo version -->
		<ui:if test="ex :in_l">
			<vbox vexpand="true" bg.color="bg_schema">
				<label text="labels.chan.out" pad.v="3"/>
				<ledmeter angle="1" expand="true" bg.inherit="true">
					<ledchannel id="mout_l" min="-36 db" max="+6 db" log="true" type="rms_peak" peak.visibility="true" value.color="left"/>
					<ledchannel id="mout_r" min="-36 db" max="+6 db" log="true" type="rms_peak" peak.visibility="true" value.color="right"/>
				</ledmeter>
			</vbox>
		</ui:if>

		<vsep vexpand="true" bg.color="bg" pad.h="2"/>
		<!-- Controls and Signal -->
		<vbox>
			<!-- Controls -->
			<group text="labels.controls" vexpand="true" ipadding="0">
				<vbox>
					<!-- mid/side -->

					<hbox hfill="true" pad.v="4" pad.h="6">
						<button id="ms" width.min="89" text="labels.chan.mid_side" hfill="true" ui:inject="Button_mid" height="19" visibility="ex :in_l"/>
						<button id="mono" width.min="89" text="labels.signal.mono" hfill="true" pad.h="6" ui:inject="Button_mono" height="19" visibility="ex :in_l"/>
						<button id="sphase" width.min="89" text="labels.signal.phase" fill="true" height="19" ui:inject="Button_orange"/>
					</hbox>

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

					<!-- feedback -->
					<ui:with bright=":fb_on ? 1 : 0.75" bg.bright=":fb_on ? 1.0 : :const_bg_darken">
						<void vexpand="true"/>

						<hbox pad.v="4" pad.h="6">
							<button id="fb_on" width.min="134" text="labels.feedback" hfill="true" ui:inject="Button_cyan" height="19"/>
							<button id="fphase" width.min="134" text="labels.signal.phase" hfill="true" pad.l="6" ui:inject="Button_orange" height="19"/>
						</hbox>

					</ui:with>

					<grid rows="2" cols="5" vexpand="true">
						<cell cols="8"><hsep pad.v="2" bg.color="bg" vreduce="true"/></cell>
						<ui:with bright=":fb_on ? 1 : 0.75" bg.bright=":fb_on ? 1.0 : :const_bg_darken">
							<hbox fill="false" pad.v="4" pad.h="6">
								<knob id="fgain" pad.r="6" scolor=":fb_on ? 'kscale' : 'cycle_inactive'"/>
								<vbox width.min="4">
									<label text="labels.gain"/>
									<value id="fgain" width="48" same_line="true"/>
								</vbox>
							</hbox>
						</ui:with>
						<vsep pad.h="2" bg.color="bg" hreduce="true"/>
						<ui:with bright=":fb_on ? 1 : 0.75" bg.bright=":fb_on ? 1.0 : :const_bg_darken">
							<hbox fill="false" pad.v="4" pad.h="6">
								<knob id="fdrive" pad.r="6" scolor=":fb_on ? 'kscale' : 'cycle_inactive'"/>
								<vbox width.min="4">
									<label text="labels.signal.drive"/>
									<value id="fdrive" width="48" same_line="true"/>
								</vbox>
							</hbox>
						</ui:with>
						<vsep pad.h="2" bg.color="bg" hreduce="true"/>
						<ui:with bright=":fb_on ? 1 : 0.75" bg.bright=":fb_on ? 1.0 : :const_bg_darken">
							<hbox fill="false" pad.v="4" pad.h="6">
								<knob id="fdelay" pad.r="6" scolor=":fb_on ? 'kscale' : 'cycle_inactive'"/>
								<vbox width.min="4">
									<label text="labels.delay"/>
									<value id="fdelay" width="48" same_line="true"/>
								</vbox>
							</hbox>
						</ui:with>
					</grid>

					<void vexpand="true" bright=":fb_on ? 1 : 0.75" bg.bright=":fb_on ? 1.0 : :const_bg_darken"/>

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

					<!-- HPF and LPF -->
					<grid rows="6" cols="3" transpose="true" vexpand="true">
						<ui:with bright="(:hpm) ? 1 : 0.75" bg.bright="(:hpm) ? 1 : :const_bg_darken">
							<void vexpand="true"/>
							<label text="labels.flt.HPF" pad.h="6" pad.v="4" fill="false"/>
							<combo id="hpm" pad.h="6"/>
							<knob id="hpf" size="20" scolor="(:hpm) ? 'kscale' : 'kscale_inactive'" pad.t="4"/>
							<value id="hpf" sline="true"/>
							<void vexpand="true"/>
						</ui:with>

						<cell rows="6"><vsep pad.h="2" bg.color="bg" hreduce="true"/></cell>

						<ui:with bright="(:lpm) ? 1 : 0.75" bg.bright="(:lpm) ? 1 : :const_bg_darken">
							<void vexpand="true"/>
							<label text="labels.flt.LPF" pad.h="6" pad.v="4" fill="false"/>
							<combo id="lpm" pad.h="6"/>
							<knob id="lpf" size="20" scolor="(:lpm) ? 'kscale' : 'kscale_inactive'" pad.t="4"/>
							<value id="lpf" sline="true"/>
							<void vexpand="true"/>
						</ui:with>
					</grid>

				</vbox>
			</group>

			<!-- Separator -->
			<hsep pad.v="2" bg.color="bg" vreduce="true"/>
			<!-- Signal -->
			<group hexpand="true" text="groups.signal">
				<grid rows="3" cols="5">
					<label text="labels.chan.input"/>
					<label text="labels.signal.dry"/>
					<label text="labels.signal.wet"/>
					<label text="labels.signal.drywet"/>
					<label text="labels.chan.output"/>

					<knob id="g_in" pad.h="6" pad.v="4"/>
					<knob id="dry" scolor="dry" pad.h="6" pad.v="4"/>
					<knob id="wet" scolor="wet" pad.h="6" pad.v="4"/>
					<knob id="drywet" scolor="drywet" pad.h="6" pad.v="4"/>
					<knob id="g_out" pad.h="6" pad.v="4"/>

					<value id="g_in" width.min="56" sline="true"/>
					<value id="dry" width.min="56" sline="true"/>
					<value id="wet" width.min="56" sline="true"/>
					<value id="drywet" width.min="56" sline="true"/>
					<value id="g_out" width.min="56" sline="true"/>
				</grid>
			</group>
		</vbox>
	</hbox>
</plugin>
