<vbox spacing="8">
    <table expand-y="0" expand-x="1" spacing="5" rows="1" cols="7">
        <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" />
        
        <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="3" attach-y="0" expand-x="0" />
        <toggle param="bypass" attach-x="3" attach-y="1" attach-h="2" expand-x="0" pad-x="10"/>
        
        <label param="mix" attach-x="4" attach-y="0" expand-x="0" />
        <knob param="mix" attach-x="4" attach-y="1" attach-h="2" expand-x="0" pad-x="10" />
        <value param="mix" attach-x="4" attach-y="3" expand-x="0" />
        
        <label attach-x="5" 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="5" attach-y="1" expand-x="1" />
        <vumeter param="meter_outR" position="2" mode="0" hold="1.5" falloff="2.5" attach-x="5" attach-y="2" expand-x="1" />
        
        <label attach-x="6" attach-y="0" expand-x="0" text="Clip"/>
        <led param="clip_outL" mode="1" attach-x="6" attach-y="1" expand-x="0" />
        <led param="clip_outR" mode="1" attach-x="6" attach-y="2" expand-x="0" />
        
        <label param="level_out" attach-x="7" attach-y="0" expand-x="0" />
        <knob param="level_out" attach-x="7" attach-y="1" attach-h="2" expand-x="0" type="1" />
        <value param="level_out" attach-x="7" attach-y="3" expand-x="0" />
    </table>
    <hbox>
        <frame label="Attack">
            <hbox spacing="4">
                <vbox>
                    <label text="Time"/>
                    <knob param="attack_time" size="3"/>
                    <value param="attack_time"/>
                </vbox>
                <vbox>
                    <label text="Boost"/>
                    <knob param="attack_boost" size="5" type="1"/>
                    <value param="attack_boost"/>
                </vbox>
            </hbox>
        </frame>
        
        <frame label="Release">
            <hbox spacing="4">
                <vbox>
                    <label text="Boost"/>
                    <knob param="release_boost" size="5" type="1"/>
                    <value param="release_boost"/>
                </vbox>
                <vbox>
                    <label text="Time"/>
                    <knob param="release_time" size="3"/>
                    <value param="release_time"/>
                </vbox>
            </hbox>
        </frame>
        
        <frame label="Sustain">
            <hbox>
                <vbox>
                    <label text="Threshold"/>
                    <knob param="sustain_threshold" size="3"/>
                    <value param="sustain_threshold"/>
                </vbox>
            </hbox>
        </frame>
        
        <if cond="directlink">
            <frame label="Waveform">
                <hbox>
                    <vbox>
                        <label text="Display"/>
                        <knob param="display"/>
                        <value param="display"/>
                        <label text="Threshold"/>
                        <knob param="display_threshold"/>
                        <value param="display_threshold"/>
                    </vbox>
                    <line-graph refresh="1" width="375" height="150" param="sustain_threshold"/>
                </hbox>
            </frame>
        </if>
    </hbox>
    
</vbox>
