<plugin resizable="true">
	<grid rows="2" cols="3" spacing="4">
		<vbox spacing="4" expand="true">
			<!-- Signal meters -->
			<hbox spacing="4">
				<meter expand="true"
					id="im" angle="0"
				    type="rms_peak"
					min="-36 db" max="+6 db" 
					color="middle_channel"
				/>
				<label text="labels.input:db" />
				<void min_width="64" />
				<label text="labels.output:db" />
				<meter expand="true"
					id="sm" angle="0"
				    type="rms_peak"
					min="-36 db" max="+6 db" 
					color="middle_channel"
				/>
			</hbox>
			
			<!-- Graph -->
			<graph width="640" height="340" expand="true" fill="true" hscale="1">
				<center hpos="-1" vpos="-1" visible="false" />
				
				<!-- Gray grid -->
				<ui:for id="f" first="20" last="90" step="10"><marker value="${f}" color="g_gray" basis="0" parallel="1" /></ui:for>
				<ui:for id="f" first="200" last="900" step="100"><marker value="${f}" color="g_gray" basis="0" parallel="1" /></ui:for>
				<ui:for id="f" first="2000" last="9000" step="1000"><marker value="${f}" color="g_gray" basis="0" parallel="1" /></ui:for>
				<marker value="20000" color="g_gray" basis="0" parallel="1" />
				
				<marker value="+36 db" color="g_gray" basis="1" parallel="0" /> <!-- +36 dB -->
				<marker value="+12 db" color="g_gray" basis="1" parallel="0" /> <!-- +12 dB -->
				<marker value="-12 db" color="g_gray" basis="1" parallel="0" /> <!-- -12 dB -->
				<marker value="-36 db" color="g_gray" basis="1" parallel="0" /> <!-- -36 dB -->
				
				<!-- Additional markers for zoom -->
				<marker value="+18 db" color="g_gray" basis="1" parallel="0" visibility=":zoom le -18 db" />
				<marker value="+6 db" color="g_gray" basis="1" parallel="0" visibility=":zoom le -18 db" />
				<marker value="-6 db" color="g_gray" basis="1" parallel="0" visibility=":zoom le -18 db" />
				<marker value="-18 db" color="g_gray" basis="1" parallel="0" visibility=":zoom le -18 db" />
				
				<marker value="+9 db" color="g_gray" basis="1" parallel="0" visibility=":zoom le -33 db" />
				<marker value="+3 db" color="g_gray" basis="1" parallel="0" visibility=":zoom le -33 db" />
				<marker value="-3 db" color="g_gray" basis="1" parallel="0" visibility=":zoom le -33 db" />
				<marker value="-9 db" color="g_gray" basis="1" parallel="0" visibility=":zoom le -33 db" />
				
				<!-- Yellow grid -->
				<marker value="100" color="g_yellow" basis="0" parallel="1" /> <!-- 100 Hz -->
				<marker value="1000" color="g_yellow" basis="0" parallel="1" /> <!-- 1 kHz -->
				<marker value="10000" color="g_yellow" basis="0" parallel="1" /> <!-- 10 kHz -->

				<marker value="+24 db" color="g_yellow" basis="1" parallel="0" /> <!-- 24 dB -->
				<marker value="0 db" color="g_white" basis="1" parallel="0" /> <!-- 0 dB -->
				<marker value="-24 db" color="g_yellow" basis="1" parallel="0" /> <!-- -24 dB -->

				<!-- Amplitude graph -->
				<mesh id="fftg" width="2" color="middle_channel" />
				<mesh id="ag" width="3" color="middle_channel" fill="0.8" smooth="true" />
				
				<!-- Dots -->
				<ui:attributes editable="true" color="middle_channel" border="8" padding="8">
					<dot hpos="16" vpos_id="g_0" visibility_id="fv_0" />
					<dot hpos="25" vpos_id="g_1" visibility_id="fv_1" />
					<dot hpos="40" vpos_id="g_2" visibility_id="fv_2" />
					<dot hpos="63" vpos_id="g_3" visibility_id="fv_3" />
					<dot hpos="100" vpos_id="g_4" visibility_id="fv_4" />
					<dot hpos="160" vpos_id="g_5" visibility_id="fv_5" />
					<dot hpos="250" vpos_id="g_6" visibility_id="fv_6" />
					<dot hpos="400" vpos_id="g_7" visibility_id="fv_7" />
					<dot hpos="630" vpos_id="g_8" visibility_id="fv_8" />
					<dot hpos="1000" vpos_id="g_9" visibility_id="fv_9" />
					<dot hpos="1600" vpos_id="g_10" visibility_id="fv_10" />
					<dot hpos="2500" vpos_id="g_11" visibility_id="fv_11" />
					<dot hpos="4000" vpos_id="g_12" visibility_id="fv_12" />
					<dot hpos="6300" vpos_id="g_13" visibility_id="fv_13" />
					<dot hpos="10000" vpos_id="g_14" visibility_id="fv_14" />
					<dot hpos="16000" vpos_id="g_15" visibility_id="fv_15" />
				</ui:attributes>
				
				<!-- Boundaries -->
				<marker value="1" color="g_white" basis="2" parallel="0" /> <!-- +48 dB -->
				<marker value="24000" color="g_white" basis="0" parallel="1" />
				
				<!-- Axis -->
				<axis min="10" max="24000" color="g_white" angle="0.0" logarithmic="true" />
				<axis min="-48 db / :zoom" max="48 db * :zoom" color="g_white" angle="0.5" logarithmic="true" /> <!-- -48..+48 dB -->
				<axis min="-1" max="1" visible="false" angle="0.5" />
				
				<!-- Text -->
				<text text="graph.units.hz" basis="0;2" coord="10;0" halign="1" valign="1" />
				<text text="100" basis="0;2" coord="100;0" halign="1" valign="1" />
				<text text="graph.values.x_k" text:value="1" basis="0;2" coord="1000;0" halign="1" valign="1" />
				<text text="graph.values.x_k" text:value="10" basis="0;2" coord="10000;0" halign="1" valign="1" />
				
				<text text="+36" coord="10;36 db" halign="1" valign="-1" />
				<text text="+24" coord="10;24 db" halign="1" valign="-1" />
				<text text="+12" coord="10;12 db" halign="1" valign="-1" />
				<text text="0" coord="10;0 db" halign="1" valign="1" />
				<text text="-12" coord="10;-12 db" halign="1" valign="1" />
				<text text="-24" coord="10;-24 db" halign="1" valign="1" />
				<text text="-36" coord="10;-36 db" halign="1" valign="1" />
				<text text="graph.units.db" basis="0;2" coord="10;1" halign="1" valign="-1" />
				
				<!-- Additional text -->
				<text text="+18" coord="10;18 db" halign="1" valign="-1" visibility=":zoom le -18 db" />
				<text text="+6" coord="10;6 db" halign="1" valign="-1" visibility=":zoom le -18 db" />
				<text text="-6" coord="10;-6 db" halign="1" valign="1" visibility=":zoom le -18 db" />
				<text text="-18" coord="10;-18 db" halign="1" valign="1" visibility=":zoom le -18 db" />

				<text text="+9" coord="10;9 db" halign="1" valign="-1" visibility=":zoom le -33 db" />
				<text text="+3" coord="10;3 db" halign="1" valign="-1" visibility=":zoom le -33 db" />
				<text text="-3" coord="10;-3 db" halign="1" valign="1" visibility=":zoom le -33 db" />
				<text text="-9" coord="10;-9 db" halign="1" valign="1" visibility=":zoom le -33 db" />
			</graph>
			<hbox spacing="4">
				<label text="labels.mode" />
				<combo id="slope" />
				<combo id="mode" />
				<void expand="true" />
				<label text="labels.graphs.spectrum" />
			</hbox>
		</vbox>
		<vbox>
			<label text="labels.zoom" />
			<fader id="zoom" angle="1" expand="true" />
			<value id="zoom" />
		</vbox>
		<vbox spacing="4">
			<group text="groups.signal" expand="true">
				<grid rows="2" cols="2" hspacing="4">
					<knob id="g_in" />
					<vbox vfill="false">
						<label text="labels.input" halign="0" />
						<value id="g_in" same_line="true" halign="0" />
					</vbox>
					
					<knob id="g_out" />
					<vbox vfill="false">
						<label text="labels.output" expand="true" halign="0" />
						<value id="g_out" same_line="true" halign="0" />
					</vbox>
				</grid>
			</group>
			<group text="groups.analysis" expand="true">
				<vbox>
					<label text="labels.fft.fft" halign="0" />
					<combo id="fft" fill="true" />
					
					<grid rows="2" cols="2" transpose="false" expand="true" hspacing="4" >
						<knob id="react" size="20" />
						<vbox vfill="false">
							<label text="labels.metering.reactivity" halign="0" />
							<value id="react" same_line="true" halign="0" />
						</vbox>
						
						<knob id="shift" size="20" />
						<vbox vfill="false">
							<label text="labels.metering.shift" halign="0" />
							<value id="shift" same_line="true" halign="0" />
						</vbox>
					</grid>
				</vbox>
			</group>
		</vbox>
		
		<cell cols="3">
			<group text="groups.bands">
				<grid rows="5" cols="17">
					<label text="labels.units.hz" fill="true" halign="0" />
					<label text="16" />
					<label text="25" />
					<label text="40" />
					<label text="63" />
					<label text="100" />
					<label text="160" />
					<label text="250" />
					<label text="400" />
					<label text="630" />
					<label text="labels.values.x_k" text:value="1" />
					<label text="labels.values.x_k" text:value="1.6" />
					<label text="labels.values.x_k" text:value="2.5" />
					<label text="labels.values.x_k" text:value="4" />
					<label text="labels.values.x_k" text:value="6.3" />
					<label text="labels.values.x_k" text:value="10" />
					<label text="labels.values.x_k" text:value="16" />
					
					<label text="labels.ctl" halign="0" />
					<ui:for id="i" first="0" last="15">
						<grid rows="3" cols="2" fill="false">
							<button id="xe_${i}" led="true" size="12" color="yellow" />
							<label text="labels.chan.on" font_size="9" />
							<button id="xs_${i}" led="true" size="12" color="green" />
							<button id="xm_${i}" led="true" size="12" color="red" />
							<label text="labels.chan.S_olo" font_size="9" />
							<label text="labels.chan.M_ute" font_size="9" />
						</grid>
					</ui:for>
					
					<cell rows="2"><label text="labels.gain:db" halign="0" /></cell>
					<ui:for id="i" first="0" last="15">
						<knob id="g_${i}" size="20" scale_color="middle_channel" />
					</ui:for>
					
					<ui:for id="i" first="0" last="15">
						<value id="g_${i}" detailed="false" />
					</ui:for>
				</grid>
			</group>
		</cell>
	</grid>
</plugin>
