<hbox spacing="8">

    <vbox spacing="20" expand="0" fill="0">
        <vbox attach-x="0" attach-y="0" expand="0" fill="0" pad-x="7" pad-y="7" spacing="7" >
            <label param="bypass" expand="0" fill="0" />
            <align><toggle param="bypass" icon="bypass" shrink="1" size="2"/></align>
        </vbox>
        <label/>
        <vbox attach-x="0" attach-y="1" expand="0" fill="0" pad-y="20" pad-x="7" spacing="5">
            <label param="range" expand="0" fill="0" expand-y="0" fill-y="0" />
            <knob param="range" size="5" type="2" expand="1" fill="1" ticks="0 0.0625 0.25 0"/>
            <value param="range" />
        </vbox>
    </vbox>

    <vbox>
        <frame label="Gate">
            <vbox>
                <table expand="0" fill="0" rows="2" cols="3">
                    <label param="meter_in" expand-y="0" fill-y="0" expand-x="0" fill-x="0" attach-x="0" attach-y="0" />
                    <vumeter param="meter_in" expand-y="0" fill-y="0" position="2" mode="0" hold="1.5" falloff="2.5" attach-x="1" attach-y="0" expand-x="1" fill-x="1" />
                    <led param="clip_in" mode="0" expand-y="0" fill-y="0" expand-x="0" fill-x="0" attach-x="2" attach-y="0" />
                    
                    <label param="meter_out" expand-y="0" fill-y="0" expand-x="0" fill-x="0" attach-x="0" attach-y="1" />
                    <vumeter param="meter_out" expand-y="0" fill-y="0" position="2" mode="0" hold="1.5" falloff="2.5" attach-x="1" attach-y="1" expand-x="1" fill-x="1" />
                    <led param="clip_out" mode="1" expand-y="0" fill-y="0" expand-x="0" fill-x="0" attach-x="2" attach-y="1" />
                </table>
                
                <table expand="1" rows="2" cols="3" homogeneous="1">
                    <vbox attach-x="0" attach-y="0">
                        <label param="attack" />
                        <knob param="attack" ticks="0 1 10 100 2000" />
                        <value param="attack" />
                    </vbox>
                    <vbox attach-x="1" attach-y="0">
                        <label param="release" />
                        <knob param="release" ticks="0 1 10 100 2000" />
                        <value param="release" />
                    </vbox>
                    <vbox attach-x="2" attach-y="0">
                        <label param="knee" />
                        <knob param="knee" ticks="1 2 4 8" />
                        <value param="knee" />
                    </vbox>
                    <vbox attach-x="0" attach-y="1">
                        <label param="ratio" />
                        <knob param="ratio" ticks="1 2 5 21" />
                        <value param="ratio" />
                    </vbox>
                    <vbox attach-x="1" attach-y="1">
                        <label param="threshold" />
                        <knob param="threshold"/>
                        <value param="threshold" />
                    </vbox>
                    <vbox attach-x="2" attach-y="1">
                        <label param="makeup" />
                        <knob param="makeup" />
                        <value param="makeup" />
                    </vbox>
                </table>
            </vbox>
        </frame>
        <frame label="Sidechain">
            <hbox>
                <vbox>
                    <label text="Active" expand="0" fill="0" />
                    <toggle param="sc_route" icon="sc_comp" fill="0" expand="0"/>
                    <label/>
                </vbox>
                <vbox>
                    <label text="Level" expand="0" fill="0" attach-x="0" attach-y="3" />
                    <knob param="sc_level" size="2" expand="0" fill="0" type="1" attach-x="1" attach-y="3"/>
                    <value param="sc_level" expand="0" fill="0" attach-x="2" attach-y="3" />
                </vbox>
                <vbox>
                    <label text="Listen" expand="0" fill="0" />
                    <toggle param="sc_listen" icon="listen" fill="0" expand="0"/>
                    <label/>
                </vbox>
            </hbox>
        </frame>
    </vbox>
    
    
      <frame label="Gating">
        <vbox spacing="8">
            <if cond="directlink">
                <line-graph refresh="1" width="265" height="265" param="bypass" square="1" expand="1" fill="1"/>
            </if>
            <vumeter param="gating" position="2" mode="2" hold="1.5" />
        </vbox>
      </frame>
    
    <vbox spacing="5">
        
        <frame label="Options">
            <hbox homogeneous="1">
                <vbox>
                    <label param="stereo_link" expand-y="0" fill-y="0"/>
                    <combo param="stereo_link"/>
                </vbox>
                <vbox>
                    <label param="detection" expand-y="0" fill-y="0" expand-x="1" fill-x="1"/>
                    <combo param="detection"/>
                </vbox>
            </hbox>
        </frame>
        
        <if cond="directlink">
            <frame label="S/C Filter">
                <vbox spacing="8">
                    <line-graph refresh="1" width="235" height="112" param="sc_listen" expand="1" fill="1" crosshairs="1" freqhandles="2" handle1-x="f1_freq" label1="F1" handle2-x="f2_freq" label2="F2" active1="f1_active" active2="f2_active" />
                    <combo param="sc_mode" fill="0" expand="0" />
                </vbox>
            </frame>
        </if>
        
        <hbox spacing="8">
            <frame label="Filter 1">
                <hbox>
                    <vbox>
                        <label text="Active" />
                        <led param="f1_active" mode="7"/>
                        <label/>
                    </vbox>
                    <vbox>
                        <label text="Freq" />
                        <knob param="f1_freq" size="2" ticks="10 100 1000 18000" />
                        <value param="f1_freq" />
                    </vbox>
                    <vbox>
                        <label text="Level" />
                        <knob param="f1_level" type="1" size="2" />
                        <value param="f1_level" />
                    </vbox>
                </hbox>
            </frame>
            
            <frame label="Filter 2">
                <hbox>
                    <vbox>
                        <label text="Active" />
                        <led param="f2_active" mode="7"/>
                        <label/>
                    </vbox>
                    <vbox>
                        <label text="Freq" />
                        <knob param="f2_freq" size="2" ticks="10 100 1000 18000" />
                        <value param="f2_freq" />
                    </vbox>
                    <vbox>
                        <label text="Level" />
                        <knob param="f2_level" type="1" size="2" />
                        <value param="f2_level" />
                    </vbox>
                </hbox>
            </frame>
        </hbox>
        
    </vbox>
</hbox>
