<plugin resizable="true">
	<vbox spacing="4">
		<grid rows="2" cols="7" transpose="true" hspacing="2" vspacing="2" expand="true">
			<!-- Time graph -->
			<vbox expand="true">
				<label />
				<graph width="480" height="256" expand="true">
					<!-- Gray grid -->
					<marker value="3.98107" color="g_gray" basis="1" parallel="0" />  <!-- +12 dB -->
					<marker value="0.25119" color="g_gray" basis="1" parallel="0" />  <!-- -12 dB -->
					<marker value="0.01585" color="g_gray" basis="1" parallel="0" />  <!-- -36 dB -->
					<marker value="0.001" color="g_gray" basis="1" parallel="0" />    <!-- -60 dB -->
					<ui:for id="t" first="0" last="4">
						<marker value="${t}.5" color="g_gray" basis="0" parallel="1" />
					</ui:for>
					
					<!-- Yellow grid -->
					<marker value="0.06310" color="g_yellow" basis="1" parallel="0" /><!-- -24 dB -->
					<marker value="0.00398" color="g_yellow" basis="1" parallel="0" /><!-- -48 dB -->
					<ui:for id="t" first="1" last="4">
						<marker value="${t}" color="g_yellow" basis="0" parallel="1" />
					</ui:for>
	
					<!-- Axises and boundaries -->
					<center hpos="1" vpos="-1" visible="false" />
					<axis min="0" max="5" color="g_white" angle="1.0" logarithmic="false" />
					<axis min="-72 db" max="24 db" color="g_white" angle="0.5" logarithmic="true" />
					<marker value="24 db" color="g_white" basis="1" parallel="0" /> <!-- +24 dB -->
					<marker value="5" color="g_white" basis="0" parallel="1" />
					
					<!-- Baseline -->
					<marker value="1.0" color="g_white" basis="1" parallel="0" width="2" /> <!-- 0 dB -->
					
					<!-- Meshes -->
					<mesh id="isg_m" width="2" color="middle_channel_in" visibility_id="ilv_m" />
					<mesh id="isg_s" width="2" color="side_channel_in" visibility_id="ilv_s" />
					<mesh id="osg_m" width="2" color="middle_channel" visibility_id="olv_m" />
					<mesh id="osg_s" width="2" color="side_channel" visibility_id="olv_s" />
					<mesh id="scg_m" width="2" color="bright_green" visibility_id="slv_m" />
					<mesh id="scg_s" width="2" color="bright_green" visibility_id="slv_s" />
					<mesh id="evg_m" width="2" color="bright_magenta" visibility_id="elv_m" />
					<mesh id="evg_s" width="2" color="bright_magenta" visibility_id="elv_s" />
					<mesh id="grg_m" width="2" color="bright_blue" visibility_id="grv_m" />
					<mesh id="grg_s" width="2" color="bright_blue" visibility_id="grv_s" />
					
					<!-- Text -->
					<text text="graph.units.db" coord="5;15.8489" halign="1" valign="-1" />
					<text text="+12" coord="5;3.98107" halign="1" valign="-1" />
					<text text="0" coord="5;1" halign="1" valign="-1" />
					<text text="-12" coord="5;0.25119" halign="1" valign="-1" />
					<text text="-24" coord="5;0.06310" halign="1" valign="-1" />
					<text text="-36" coord="5;0.01585" halign="1" valign="-1" />
					<text text="-48" coord="5;0.00398" halign="1" valign="-1" />
					<text text="-60" coord="5;0.001" halign="1" valign="-1" />
					
					<text text="graph.units.s" coord="5;0.00025" halign="1" valign="1" />
					<ui:for id="t" first="0" last="4" step="1">
						<text text="${t}" coord="${t};0.00025" halign="-1" valign="1" color="white" />
						<text text="${t}.5" coord="${t}.5;0.00025" halign="-1" valign="1" color="white" />
					</ui:for>
				</graph>
				<label />
			</vbox>
			
			<!-- Graph buttons -->
			<hbox spacing="4">
				<button id="pause" size="16" color="green" led="true" />
				<label text="labels.pause" />
				<button id="clear" size="16" color="red" led="true" />
				<label text="labels.clear" />
				<button id="msl" size="16" color="yellow" led="true" />
				<label text="labels.ms_listen" />
				<align pad_right="4" expand="true" hpos="1">
					<label text="labels.graphs.time" />
				</align>
			</hbox>
			
			<!-- Sidechain meters -->
			<vbox>
				<grid rows="2" cols="2">
					<label text="labels.chan.M_id" font_size="8" />
					<label text="labels.chan.S_ide" font_size="8" />
					<button id="slv_m" size="10" color="bright_green" led="true" />
					<button id="slv_s" size="10" color="bright_green" led="true" />
				</grid>
				<meter expand="true"
					id="slm_m" id2="slm_s" activity_id="slv_m" activity2_id="slv_s"
					stereo="true" angle="1" type="peak"
					min="0.000251189" max="15.8489" height="256"
					color="bright_green" color2="bright_green" />
			</vbox>
			<label text="labels.sc.SC" />

			<!-- Envelope meters -->
			<vbox>
				<grid rows="2" cols="2">
					<label text="labels.chan.M_id" font_size="8" />
					<label text="labels.chan.S_ide" font_size="8" />
					<button id="elv_m" size="10" color="bright_magenta" led="true" />
					<button id="elv_s" size="10" color="bright_magenta" led="true" />
				</grid>
				<meter expand="true"
					id="elm_m" id2="elm_s" activity_id="elv_m" activity2_id="elv_s"
					stereo="true" angle="1" type="peak"
					min="0.000251189" max="15.8489" height="256"
					color="bright_magenta" color2="bright_magenta" />
			</vbox>
			<label text="labels.Env_elope" />
			
			<!-- Gain reduction meters -->
			<vbox>
				<grid rows="2" cols="2">
					<label text="labels.chan.M_id" font_size="8" />
					<label text="labels.chan.S_ide" font_size="8" />
					<button id="grv_m" size="10" color="bright_blue" led="true" />
					<button id="grv_s" size="10" color="bright_blue" led="true" />
				</grid>
				<meter expand="true"
					id="rlm_m" id2="rlm_s" activity_id="grv_m" activity2_id="grv_s"
					stereo="true" angle="1" type="peak"
					min="0.00398" max="251.18861" balance="1.0" height="256"
					color="bright_blue" color2="bright_blue" />
			</vbox>
			<label text="labels.gain_" />
		
			<!-- Curve graph -->
			<vbox expand="true">
				<label />
				<graph width="256" height="256" expand="true" fill="true">
					<!-- Gray grid -->
					<marker value="3.98107" color="g_gray" basis="1" parallel="0" />  <!-- +12 dB -->
					<marker value="3.98107" color="g_gray" basis="0" parallel="1" />  <!-- +12 dB -->
					<marker value="0.25119" color="g_gray" basis="1" parallel="0" />  <!-- -12 dB -->
					<marker value="0.25119" color="g_gray" basis="0" parallel="1" />  <!-- -12 dB -->
					<marker value="0.01585" color="g_gray" basis="1" parallel="0" />  <!-- -36 dB -->
					<marker value="0.01585" color="g_gray" basis="0" parallel="1" />  <!-- -36 dB -->
					<marker value="0.001" color="g_gray" basis="1" parallel="0" />    <!-- -60 dB -->
					<marker value="0.001" color="g_gray" basis="0" parallel="1" />    <!-- -60 dB -->
					
					<!-- Yellow grid -->
					<marker value="0.06310" color="g_yellow" basis="1" parallel="0" /><!-- -24 dB -->
					<marker value="0.06310" color="g_yellow" basis="0" parallel="1" /><!-- -24 dB -->
					<marker value="0.00398" color="g_yellow" basis="1" parallel="0" /><!-- -48 dB -->
					<marker value="0.00398" color="g_yellow" basis="0" parallel="1" /><!-- -48 dB -->
				
					<!-- Axises and boundaries -->
					<center hpos="-1" vpos="-1" visible="false" />
					<axis min="0.00025" max="15.84893" color="g_gray" angle="0.0" logarithmic="true" /> <!-- horizontal axis -->
					<axis min="0.00025" max="15.84893" color="g_gray" angle="0.5" logarithmic="true" /> <!-- vertical axis -->
					<marker id="omk_m" offset="1" color="g_gray" basis="1" parallel="0" dx=":_a_width" dy=":_a_height" width="2" smooth="true" visibility=":cmv_m" />
					<marker id="omk_s" offset="1" color="g_gray" basis="1" parallel="0" dx=":_a_width" dy=":_a_height" width="2" smooth="true" visibility=":cmv_s" />
					<marker value="1" offset="1" color="g_gray" basis="1" parallel="0" dx=":_a_width" dy=":_a_height" width="2" smooth="true" /> <!-- 1:1 -->
					<marker value="15.84893" color="g_gray" basis="1" parallel="0" /> <!-- +24 dB -->
					<marker value="15.84893" color="g_gray" basis="0" parallel="1" /> <!-- +24 dB -->

					<!-- 0 dB markers -->
					<marker value="1.0" color="g_white" basis="1" parallel="0" width="2" /> <!-- 0 dB -->
					<marker value="1.0" color="g_white" basis="0" parallel="1" width="2" /> <!-- 0 dB -->
					
					<!-- Meshes -->
					<mesh id="cmg_m" width="2" color="middle_channel" smooth="true" visibility=":cmv_m" />
					<mesh id="cmg_s" width="2" color="side_channel" smooth="true" visibility=":cmv_s" />
					<mesh id="ccg_m" width="3" color="middle_channel" smooth="true" visibility=":cmv_m" />
					<mesh id="ccg_s" width="3" color="side_channel" smooth="true" visibility=":cmv_s" />
					
					<!-- Markers -->
					<ui:for id="i" first="0" last="3">
						<marker id="al${i}_m" width="2" basis="0" color="g_magenta" parallel="1" smooth="true" visibility=":cmv_m and :ae${i}_m" />
						<text text="graph.values.idM_id" text:id="${i}" coord=":al${i}_m;15.84893" color="magenta" halign="-1" valign="-1" visibility=":cmv_m and :ae${i}_m" />
						<marker id="al${i}_s" width="2" basis="0" color="g_magenta" parallel="1" smooth="true" visibility=":cmv_s and :ae${i}_s" />
						<text text="graph.values.idS_ide" text:id="${i}" coord=":al${i}_s;15.84893" color="magenta" halign="1" valign="-1" visibility=":cmv_s and :ae${i}_s" />
					</ui:for>
					<ui:for id="i" first="0" last="3">
						<marker id="rl${i}_m" width="2" basis="0" color="g_orange" parallel="1" smooth="true" visibility=":cmv_m and :re${i}_m" />
						<text text="graph.values.idM_id" text:id="${i}" coord=":rl${i}_m;0.00025" color="g_orange" halign="-1" valign="1" visibility=":cmv_m and :re${i}_m" />
						<marker id="rl${i}_s" width="2" basis="0" color="g_orange" parallel="1" smooth="true" visibility=":cmv_s and :re${i}_s" />
						<text text="graph.values.idS_ide" text:id="${i}" coord=":rl${i}_s;0.00025" color="g_orange" halign="1" valign="1" visibility=":cmv_s and :re${i}_s" />
					</ui:for>
					
					<!-- Dots -->
					<ui:for id="i" first="0" last="3">
						<dot hpos_id="tl${i}_m" vpos_id="gl${i}_m" scroll_id="kn${i}_m"
							editable="true" color="middle_channel" visibility=":cmv_m and :pe${i}_m"
						/>
						<dot hpos_id="tl${i}_s" vpos_id="gl${i}_s" scroll_id="kn${i}_s"
							editable="true" color="side_channel" visibility=":cmv_s and :pe${i}_s"
						/>
					</ui:for>
					<ui:for id="i" first="0" last="3">
						<text text="graph.values.idM_id" text:id="${i}" coord=":tl${i}_m;:gl${i}_m" color="middle_channel" halign="-1" valign="1" visibility=":cmv_m and :pe${i}_m" />
						<text text="graph.values.idS_ide" text:id="${i}" coord=":tl${i}_s;:gl${i}_s" color="side_channel" halign="1" valign="-1" visibility=":cmv_s and :pe${i}_s" />
					</ui:for>
					
					<dot hpos_id="elm_m" vpos_id="clm_m" color="middle_channel" led="true" visibility=":cmv_m" />
					<dot hpos_id="elm_s" vpos_id="clm_s" color="side_channel" led="true" visibility=":cmv_s" />
					
					<!-- Text -->
					<text text="0" coord="1;1" halign="1" valign="1" />
					
					<text text="graph.units.db" coord="1;15.8489" halign="1" valign="-1" />
					<text text="+12" coord="1;3.98107" halign="1" valign="-1" />
					<text text="-12" coord="1;0.25119" halign="1" valign="-1" />
					<text text="-24" coord="1;0.06310" halign="1" valign="-1" />
					<text text="-36" coord="1;0.01585" halign="1" valign="-1" />
					<text text="-48" coord="1;0.00398" halign="1" valign="-1" />
					<text text="-60" coord="1;0.001" halign="1" valign="-1" />
					<text text="graph.axis.out" coord="1;0.00025" halign="1" valign="1" />
					
					<text text="graph.units.db" coord="15.8489;1" halign="-1" valign="1" />
					<text text="+12" coord="3.98107;1" halign="-1" valign="1" />
					<text text="-12" coord="0.25119;1" halign="-1" valign="1" />
					<text text="-24" coord="0.06310;1" halign="-1" valign="1" />
					<text text="-36" coord="0.01585;1" halign="-1" valign="1" />
					<text text="-48" coord="0.00398;1" halign="-1" valign="1" />
					<text text="-60" coord="0.001;1" halign="-1" valign="1" />
					<text text="graph.axis.in" coord="0.00025;1" halign="1" valign="1" />
				</graph>
				<label />
			</vbox>
			<hbox>
				<label text="labels.model:" />
				<button id="cmv_m" size="16" color="middle_channel" led="true" />
				<label text="labels.chan.middle" />
				<button id="cmv_s" size="16" color="side_channel" led="true" />
				<label text="labels.chan.side" />
				<align pad_right="4" expand="true" hpos="1">
					<label text="labels.graphs.curve" />
				</align>
			</hbox>
			
			<!-- Input signal meters -->
			<vbox>
				<grid rows="2" cols="2">
					<label text="labels.chan.M_id" font_size="8" />
					<label text="labels.chan.S_ide" font_size="8" />
					<button id="ilv_m" size="10" color="middle_channel" led="true" />
					<button id="ilv_s" size="10" color="side_channel" led="true" />
				</grid>
				<meter expand="true"
					id="ilm_m" id2="ilm_s" activity_id="ilv_m" activity2_id="ilv_s"
					stereo="true" angle="1" type="rms_peak"
					min="0.000251189" max="15.8489" height="256"
					color="middle_channel" color2="side_channel" />
			</vbox>
			<label text="labels.chan.in" />
			
			<!-- Output signal meters -->
			<vbox>
				<grid rows="2" cols="2">
					<label text="labels.chan.M_id" font_size="8" />
					<label text="labels.chan.S_ide" font_size="8" />
					<button id="olv_m" size="10" color="middle_channel" led="true" />
					<button id="olv_s" size="10" color="side_channel" led="true" />
				</grid>
				<meter expand="true"
					id="olm_m" id2="olm_s" activity_id="olv_m" activity2_id="olv_s"
					stereo="true" angle="1" type="rms_peak"
					min="0.000251189" max="15.8489" height="256"
					color="middle_channel" color2="side_channel" />
			</vbox>
			<label text="labels.chan.out" />
		</grid>
		<hbox spacing="4">
			<!-- Processors -->
			<cgroup id="psel">
				<ui:for id="p" first="0" last="1">
					<ui:set id="chn" value="${(:p mod 2) ? 'labels.chan.id_S_ide' : 'labels.chan.id_M_id'}" />
					<ui:set id="ch" value="${(:p mod 2) ? '_s' : '_m'}" />
					<ui:set id="chc" value="${(:p mod 2) ? 'side_channel' : 'middle_channel'}" />
					
					<hbox expand="true" fill="true">
						<!-- Sidechain -->
						<grid rows="5" cols="5" expand="true" fill="true" spacing="2">
							<cell cols="5">
								<align hpos="-1">
									<hbox fill="false" spacing="4">
										<button id="scl${ch}" size="16" color="${chc}" led="true" />
										<label text="labels.sc.listen" />
									</hbox>
								</align>
							</cell>
							
							<label text="labels.type" fill="true" halign="0" />
							<cell cols="4" fill="true">
								<align vpos="1" hscale="1">
									<vbox spacing="1" fill="true">
										<combo id="sct${ch}" fill="true" />
										<combo id="scm${ch}" fill="true" />
										<combo id="scs${ch}" fill="true" />
									</vbox>
								</align>
							</cell>
						
							<label text="labels.sc.preamp" />
							<label text="labels.sc.reactivity" />
							<label text="labels.sc.lookahead" />
							<label text="labels.flt.HPF" />
							<label text="labels.flt.LPF" />
							
							<knob id="scp${ch}" />
							<knob id="scr${ch}" />
							<knob id="sla${ch}" />
							<vbox>
								<combo id="shpm${ch}" />
								<knob id="shpf${ch}" size="20" bright="(:shpm${ch} igt 0) ? 1 : 0.5" />
							</vbox>
							<vbox>
								<combo id="slpm${ch}" />
								<knob id="slpf${ch}" size="20" bright="(:slpm${ch} igt 0) ? 1 : 0.5" />
							</vbox>
							
							<value id="scp${ch}" />
							<value id="scr${ch}" />
							<value id="sla${ch}" />
							<value id="shpf${ch}" bright="(:shpm${ch} igt 0) ? 1 : 0.5" />
							<value id="slpf${ch}" bright="(:slpm${ch} igt 0) ? 1 : 0.5" />
						</grid>
						
						<vsep />
						<grid rows="9" cols="1" expand="true" fill="true">
							<label text="labels.ratio_low" />
							<knob id="llr${ch}" size="20" scale_color="${chc}" />
							<value id="llr${ch}" />
							<label text="labels.attack" />
							<knob id="atd${ch}" size="20" scale_color="magenta" />
							<value id="atd${ch}" />
							<label text="labels.makeup" />
							<knob id="omk${ch}" size="20" scale_color="${chc}" />
							<value id="omk${ch}" />
						</grid>
						<vsep />
						<grid rows="9" cols="9" transpose="true" expand="true" fill="true">
							<label text="labels.ranges" />
							<cell rows="2"><label text="labels.thresh_gain:db_db" /></cell>
							<cell rows="2"><label text="labels.knee_:db" /></cell>
							<cell rows="2"><label text="labels.attack:db_ms" /></cell>
							<cell rows="2"><label text="labels.release:db_ms" /></cell>
							
							<ui:for id="c" first="0" last="3">
								<ui:set id="i" value="${c}${ch}" />
								
								<cell cols="2"><label text="${chn}" text:id="${c}" /></cell>
								<knob id="tl${i}" size="20" scale_color="${chc}" />
								<value id="tl${i}" detailed="false" />
								<knob id="kn${i}" size="20" scale_color="${chc}" />
								<value id="kn${i}" detailed="false" />
								<knob id="al${i}" size="20" scale_color="magenta" />
								<value id="al${i}" detailed="false" />
								<knob id="rl${i}" size="20" scale_color="orange" />
								<value id="rl${i}" detailed="false" />
								
								<knob id="gl${i}" size="20" scale_color="${chc}" />
								<value id="gl${i}" detailed="false" />
								<cell rows="2" fill="false">
									<grid rows="3" cols="2" transpose="true" fill="false">
										<button id="pe${i}" led="true" size="12" color="${chc}" />
										<button id="ae${i}" led="true" size="12" color="magenta" />
										<button id="re${i}" led="true" size="12" color="orange" />
										
										<label text="labels.thr_eshold" font_size="9" detailed="false" />
										<label text="labels.att_ack" font_size="9" detailed="false" />
										<label text="labels.rel_ease" font_size="9" detailed="false" />
									</grid>
								</cell>
								<knob id="at${i}" size="20" scale_color="magenta" />
								<value id="at${i}" detailed="false" />
								<knob id="rt${i}" size="20" scale_color="orange" />
								<value id="rt${i}" detailed="false" />
							</ui:for>
						</grid>
						<vsep />
						<grid rows="9" cols="1" fill="true">
							<label text="labels.ratio_high" />
							<knob id="hlr${ch}" size="20" scale_color="${chc}" />
							<value id="hlr${ch}" />
							<label text="labels.release" />
							<knob id="rtd${ch}" size="20" scale_color="orange" />
							<value id="rtd${ch}" />
							<cell rows="3" expand="true">
								<grid rows="3" cols="2" expand="true">
									<label text="labels.signal.dry" />
									<label text="labels.signal.wet" />
									
									<knob id="cdr${ch}" scale_color="yellow" size="20" />
									<knob id="cwt${ch}" scale_color="yellow" size="20" />
									
									<value id="cdr${ch}" />
									<value id="cwt${ch}" />
								</grid>
							</cell>
						</grid>
					</hbox>
				</ui:for>
			</cgroup>
			
			<!-- Signal control -->
			<group text="groups.signal">
				<grid rows="6" cols="1" transpose="true">
					<label text="labels.input" />
					<knob id="g_in" />
					<value id="g_in" />
												
					<label text="labels.output" />
					<knob id="g_out" />
					<value id="g_out" />
				</grid>
			</group>
		</hbox>
	</vbox>
</plugin>