<vbox>
    <table expand-y="0" expand-x="1" spacing="5" rows="3" cols="10">
        <label param="level_in" attach-x="0" attach-y="0" expand-x="0" />
        <knob param="level_in" attach-x="0" attach-y="1" attach-h="2" expand-x="0" type="1" />
        <value param="level_in" attach-x="0" attach-y="3" expand-x="0" />
        
        <label attach-x="1" attach-y="0" expand-x="1" text="Input level" />
        <vumeter param="meter_inL" position="2" mode="0" hold="1.5" falloff="2.5" attach-x="1" attach-y="1" expand-x="1" />
        <vumeter param="meter_inR" position="2" mode="0" hold="1.5" falloff="2.5" attach-x="1" attach-y="2" expand-x="1" />
        <meterscale param="meter_outR" marker="0 0.0625 0.125 0.25 0.5 0.71 1" dots="1" position="2" mode="0" attach-x="1" attach-y="3" expand-x="1" />
        
        <label attach-x="2" attach-y="0" expand-x="0" text="Clip" />
        <led param="clip_inL" attach-x="2" attach-y="1" expand-x="0" />
        <led param="clip_inR" attach-x="2" attach-y="2" expand-x="0" />
        
        <label param="bypass" attach-x="4" attach-y="0" expand-x="0" />
        <toggle param="bypass" icon="bypass" attach-x="4" attach-y="1" attach-h="2" expand-x="0" pad-x="10"/>
        
        <label param="sidechain_enable" attach-x="5" attach-y="0" expand-x="0" />
        <toggle param="sidechain_enable" icon="sc_filter" attach-x="5" attach-y="1" attach-h="2" expand-x="0" pad-x="10"/>
        
        <label attach-x="6" attach-y="0" expand-x="1" text="Output level"/>
        <vumeter param="meter_outL" position="2" mode="0" hold="1.5" falloff="2.5" attach-x="6" attach-y="1" expand-x="1" />
        <vumeter param="meter_outR" position="2" mode="0" hold="1.5" falloff="2.5" attach-x="6" attach-y="2" expand-x="1" />
        <meterscale param="meter_outR" marker="0 0.0625 0.125 0.25 0.5 0.71 1" dots="1" position="2" mode="0" attach-x="6" attach-y="3" expand-x="1" />
        
        <label attach-x="7" attach-y="0" expand-x="0" text="Clip"/>
        <led param="clip_outL" mode="1" attach-x="7" attach-y="1" expand-x="0" />
        <led param="clip_outR" mode="1" attach-x="7" attach-y="2" expand-x="0" />
        
        <label param="mix" attach-x="8" attach-y="0" expand-x="0" />
        <knob param="mix" ticks="0 0.5 1" attach-x="8" attach-y="1" attach-h="2" expand-x="0" pad-x="10" />
        <value param="mix" attach-x="8" attach-y="3" expand-x="0" />
        
        <label param="level_out" attach-x="9" attach-y="0" expand-x="0" />
        <knob param="level_out" attach-x="9" attach-y="1" attach-h="2" expand-x="0" type="1" />
        <value param="level_out" attach-x="9" attach-y="3" expand-x="0" />
    </table>
    <hbox spacing="10">
        <vbox>
            <label param="gain" />
            <knob param="gain" size="5" type="1"/>
            <value param="gain" />
        </vbox>
        <vbox spacing="15">
            <hbox spacing="0" homogeneous="1">
                <vbox>
                    <label param="response" />
                    <knob param="response" size="2" type="1" />
                    <value param="response" />
                </vbox>
                <vbox>
                    <label param="attack" />
                    <knob param="attack" ticks="1 10 100 500" size="2" />
                    <value param="attack" />
                </vbox>
                <vbox>
                    <label param="release" />
                    <knob param="release" ticks="10 100 1000 5000" size="2" />
                    <value param="release" />
                </vbox>
            </hbox>
            <vbox expand="0" fill="0">
                <combo param="mode" expand="0" fill="0" />
            </vbox>
        </vbox>
        <vbox>
            <label param="res" />
            <knob param="res" size="5" />
            <value param="res" />
        </vbox>
<!--
        <table rows="3" cols="3">
            <label param="attack" attach-x="0" attach-y="0" />
            <knob param="attack" size="2" attach-x="1" attach-y="0" />
            <value param="attack" attach-x="2" attach-y="0" />
            
            <label param="release" attach-x="0" attach-y="1" />
            <knob param="release" size="2" attach-x="1" attach-y="1" />
            <value param="release" attach-x="2" attach-y="1" />
            
            <label param="response" attach-x="0" attach-y="2" />
            <knob param="response" size="2" type="1" attach-x="1" attach-y="2" />
            <value param="response" attach-x="2" attach-y="2" />
        </table>
-->
        <if cond="directlink">
            <frame label="Frequency Response">
                <vbox>
                    <line-graph refresh="1" width="320" height="120" param="res" crosshairs="1" freqhandles="2" handle1-x="lower" label1="Lower" handle2-x="upper" label2="Upper" />
                </vbox>
            </frame>
        </if>
    </hbox>
</vbox>
