<plugin resizable="true">
	<vbox spacing="4">
		<!-- IR editor -->
		<align halign="-1" hfill="true" vreduce="true">
			<hbox pad.l="6" pad.r="6" pad.t="4" pad.b="4" spacing="4" fill="false" bg.color="bg_schema">
				<label text="labels.fft.frame"/>
				<combo id="fft" pad.r="10"/>
				<button id="eqv" ui:id="eq_trigger" ui:inject="Button_yellow" text="labels.ir_equalizer" size="16"/>
				<button id="wpp" ui:inject="Button_green" text="labels.enable" size="16"/>
			</hbox>
		</align>

		<group text="groups.impulse_response" expand="true" bg.color="bg" spacing="0" ipadding="0">
			<vbox>
				<!-- File editor -->

				<hbox width.min="803" height.min="256" expand="true">
					<asample
						expand="true"
						id="ifn"
						mesh_id="ifd"
						path.id="_ui_dlg_ir_path"
						ftype.id="_ui_dlg_ir_ftype"
						hcut=":ihc"
						tcut=":itc"
						fadein=":ifi"
						fadeout=":ifo"
						length=":ifl"
						status=":ifs"
						width.min="600"
						height.min="128"
						load.preview="true"
						clipboard.head_cut="ihc"
						clipboard.tail_cut="itc"
						clipboard.fade_in="ifi"
						clipboard.fade_out="ifo"
						format="audio_lspc,audio,all"/>

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

					<vbox vexpand="true" visibility="(:ifs ine 1)">
						<void bg.color="bg_graph" pad.v="2" vreduce="true"/>
						<afolder id="ifn" expand="true" width.min="199"
							autoload=":_ui_ir_list_navigation_autoload"
							autoplay=":_ui_ir_list_navigation_autoplay" />
						<void bg.color="bg_graph" pad.v="2" vreduce="true"/>

						<ui:with fill="true">
							<hbox pad.h="6" pad.v="4" spacing="4" bg.color="bg_schema">
								<ui:with height="22">
									<anavigator id="ifn" text="icons.navigation_big.first_alt" action="first"/>
									<anavigator id="ifn" text="icons.navigation_big.last_alt" action="last"/>
									<void hexpand="true"/>
									<anavigator id="ifn" text="icons.navigation_big.previous" action="previous"/>
									<anavigator id="ifn" text="icons.navigation_big.next" action="next"/>
									<void hexpand="true"/>

									<anavigator id="ifn" text="icons.random.dice_fill" action="random"/>
									<void hexpand="true"/>
									<anavigator id="ifn" text="icons.actions.cancel_alt" action="clear"/>
								</ui:with>
							</hbox>
						</ui:with>
					</vbox>
				</hbox>

				<void bg.color="bg" height="4" vreduce="true"/>

				<grid rows="4" cols="16" bg.color="bg_schema">
					<!-- row 1 -->
					<ui:with pad.h="6" pad.v="4" vreduce="true">
						<label text="labels.sedit.reverse"/>
						<label text="labels.sedit.pitch"/>
						<label text="labels.sedit.head_cut"/>
						<label text="labels.sedit.tail_cut"/>
						<label text="labels.sedit.fade_in"/>
						<label text="labels.sedit.fade_out"/>
						<label text="labels.listen"/>
					</ui:with>
					<cell rows="4"><vsep bg.color="bg" pad.h="2" hreduce="true"/></cell>
					<label text="labels.source" bright=":ca and (:cs ine 0) ? 1 : 0.75" bg.bright=":ca and (:cs ine 0) ? 1 : :const_bg_darken"/>
					<ui:with pad.v="4" vreduce="true">
						<label pad.r="6" text="labels.predelay" bright=":ca and (:cs ine 0) ? 1 : 0.75" bg.bright=":ca and (:cs ine 0) ? 1 : :const_bg_darken"/>
						<label pad.h="6" text="labels.makeup" bright=":ca and (:cs ine 0) ? 1 : 0.75" bg.bright=":ca and (:cs ine 0) ? 1 : :const_bg_darken"/>
					</ui:with>
					<cell rows="4"><vsep bg.color="bg" pad.h="2" hreduce="true"/></cell>
					<ui:with pad.h="6" pad.v="4" vreduce="true">
						<label text="labels.signal.dry"/>
						<label text="labels.signal.wet"/>
						<label text="labels.signal.drywet"/>
						<label text="labels.output"/>
					</ui:with>

					<!-- row 2 -->
					<ui:with bg.color="bg" pad.v="2" vreduce="true">
						<cell cols="7"><hsep/></cell>
						<cell cols="3"><hsep/></cell>
						<cell cols="4"><hsep/></cell>
					</ui:with>

					<!-- row 3 -->
					<cell rows="2">
						<button id="irv" bg.color="bg_schema" font.size="14" size="32" ui:inject="Button_cyan" font.name="lsp-icons" text="icons.actions.reverse"/>
					</cell>

					<ui:with pad.h="6" pad.v="4">
						<knob id="psh" size="20"/>
						<knob id="ihc" size="20"/>
						<knob id="itc" size="20"/>
						<knob id="ifi" size="20" scolor="fade_in"/>
						<knob id="ifo" size="20" scolor="fade_out"/>
					</ui:with>

					<cell rows="2">
						<hbox fill="false" spacing="4">
							<ui:with font.name="lsp-icons" font.size="10" size="32" ui:inject="Button_cyan" toggle="false">
								<button id="ils" text="icons.playback_big.play"/>
								<button id="ilc" text="icons.playback_big.stop"/>
							</ui:with>
						</hbox>
					</cell>

					<combo id="cs" hfill="false" hreduce="true" pad.h="6" bright=":ca and (:cs ine 0) ? 1 : 0.75" bg.bright=":ca and (:cs ine 0) ? 1 : :const_bg_darken"/>

					<ui:with pad.v="4" bright=":ca and (:cs ine 0) ? 1 : 0.75" bg.bright=":ca and (:cs ine 0) ? 1 : :const_bg_darken">
						<knob id="pd" pad.r="6" scolor=":ca and (:c  ine 0) ? 'left' : 'cycle_inactive'"/>
						<knob id="mk" pad.h="6" scolor=":ca and (:c  ine 0) ? 'left' : 'cycle_inactive'"/>
					</ui:with>

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

					<!-- row 4 -->
					<ui:with pad.h="6" pad.b="4">
						<value id="psh"/>
						<value id="ihc"/>
						<value id="itc"/>
						<value id="ifi"/>
						<value id="ifo"/>
					</ui:with>

					<ui:with bright=":ca and (:cs ine 0) ? 1 : 0.75" bg.bright=":ca and (:cs ine 0) ? 1 : :const_bg_darken">
						<hbox hfill="false" hreduce="true" spacing="4">
							<led id="ca" size="10" pad.b="1"/>
							<label text="labels.active"/>
						</hbox>
					</ui:with>

					<value id="pd" pad.r="6" pad.b="4" bright=":ca and (:cs ine 0) ? 1 : 0.75" bg.bright=":ca and (:cs ine 0) ? 1 : :const_bg_darken"/>
					<value id="mk" pad.h="6" pad.b="4" bright=":ca and (:cs ine 0) ? 1 : 0.75" bg.bright=":ca and (:cs ine 0) ? 1 : :const_bg_darken"/>
					<ui:with pad.h="6" pad.b="4">
						<value id="dry"/>
						<value id="wet"/>
						<value id="drywet"/>
						<value id="g_out"/>
					</ui:with>

				</grid>
			</vbox>
		</group>
	</vbox>

	<overlay id="eqv" trigger="eq_trigger" hpos="0" vpos="1" halign="1" valign="1" ipadding.t="4" padding.l="0" ipadding.l="0" padding.r="0" ipadding.r="0">
		<group text="groups.wet_signal_eq" ipadding="0">
			<grid rows="7" cols="12">

				<cell cols="12">
						<hbox pad.l="6" pad.r="6" pad.t="4" pad.b="4" spacing="4" bg.color="bg_schema">
							<void hfill="true" hexpand="true"/>
							<button id="wpp" ui:inject="Button_green" text="labels.enable" size="16"/>
						</hbox>
				</cell>

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

				<label text="labels.flt.low_cut" pad.h="6" pad.v="4" bright="(:wpp) and (:lcm igt 0) ? 1 : 0.75" bg.bright="(:wpp) and (:lcm igt 0) ? 1 : :const_bg_darken"/>

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

				<ui:with pad.h="6" pad.v="4" bright="(:wpp) ? 1 : 0.75" bg.bright="(:wpp) ? 1 : :const_bg_darken">
					<label text="50"/>
					<label text="107"/>
					<label text="227"/>
					<label text="484"/>
					<label text="labels.flt.1k"/>
					<label text="labels.flt.2_2k"/>
					<label text="labels.flt.4_7k"/>
					<label text="labels.flt.10k"/>
				</ui:with>

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

				<label text="labels.flt.high_cut" bright="(:wpp) and (:hcm igt 0) ? 1 : 0.75" bg.bright="(:wpp) and (:hcm igt 0) ? 1 : :const_bg_darken"/>

				<combo id="lcm" pad.h="6" fill="false" bright="(:wpp) and (:lcm igt 0) ? 1 : 0.75" bg.bright="(:wpp) and (:lcm igt 0) ? 1 : :const_bg_darken"/>

				<ui:with pad.h="6" pad.v="4" bright="(:wpp)? 1 : 0.75" bg.bright="(:wpp) ? 1 : :const_bg_darken">
					<ui:for id="f" first="0" last="7">
						<cell rows="3">
							<fader id="eq_${f}" angle="1" scolor="(:wpp) ? 'fader' : 'fader_inactive'"/>
						</cell>
					</ui:for>
				</ui:with>

				<combo id="hcm" pad.h="6" fill="false" bright="(:wpp) and (:hcm igt 0) ? 1 : 0.75" bg.bright="(:wpp) and (:hcm igt 0) ? 1 : :const_bg_darken"/>

				<ui:with pad.h="6" pad.v="4">
					<label text="labels.frequency" bright="(:wpp) and (:lcm igt 0) ? 1 : 0.75" bg.bright="(:wpp) and (:lcm igt 0) ? 1 : :const_bg_darken"/>
					<label text="labels.frequency" bright="(:wpp) and (:hcm igt 0) ? 1 : 0.75" bg.bright="(:wpp) and (:hcm igt 0) ? 1 : :const_bg_darken"/>
					<knob id="lcf" scolor="(:wpp) and (:lcm igt 0)? 'kscale' : 'cycle_inactive'" bg.bright="(:wpp) and (:lcm igt 0) ? 1 : :const_bg_darken"/>
					<knob id="hcf" scolor="(:wpp) and (:hcm igt 0)? 'kscale' : 'cycle_inactive'" bg.bright="(:wpp) and (:hcm igt 0) ? 1 : :const_bg_darken"/>
					<value id="lcf" bright="(:wpp) and (:lcm igt 0) ? 1 : 0.75" bg.bright="(:wpp) and (:lcm igt 0) ? 1 : :const_bg_darken"/>
					<ui:for id="f" first="0" last="7">
						<value width.min="32" id="eq_${f}" bright="(:wpp) ? 1 : 0.75" bg.bright="(:wpp) ? 1 : :const_bg_darken"/>
					</ui:for>
					<value id="hcf" bright="(:wpp) and (:hcm igt 0) ? 1 : 0.75" bg.bright="(:wpp) and (:hcm igt 0) ? 1 : :const_bg_darken"/>
				</ui:with>
			</grid>
		</group>
	</overlay>
</plugin>
