<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="4" attach-y="0" expand-x="0" />
        <toggle param="bypass" attach-x="4" attach-y="1" attach-h="2" expand-x="0" pad-x="10"/>
        
        <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="mix" attach-x="7" attach-y="0" expand-x="0" />
        <knob param="mix" attach-x="7" attach-y="1" attach-h="2" expand-x="0" pad-x="10" />
        <value param="mix" attach-x="7" attach-y="3" expand-x="0" />
        
        <label param="level_out" attach-x="8" attach-y="0" expand-x="0" />
        <knob param="level_out" attach-x="8" attach-y="1" attach-h="2" expand-x="0" type="1" />
        <value param="level_out" attach-x="8" attach-y="3" expand-x="0" />
    </table>
    <hbox spacing="20">
        <if cond="directlink">
            <frame label="Waveform">
                <hbox>
                    <table rows="7" cols="2">
                        <vbox attach-x="0" attach-y="0" spacing="0">
                            <label text="Display" align-x="1.0"/>
                            <value param="display" align-x="1.0"/>
                        </vbox>
                        <knob param="display" size="2" attach-x="1" attach-y="0"/>
                        <vbox attach-x="0" attach-y="1" spacing="0">
                            <label text="Threshold" align-x="1.0"/>
                            <value param="display_threshold" align-x="1.0"/>
                        </vbox>
                        <knob param="display_threshold" size="2" attach-x="1" attach-y="1"/>
                        <label param="input" align-x="1" attach-x="0" attach-y="2"/>
                        <toggle param="input" size="1" attach-x="1" attach-y="2"/>
                        <label param="output" align-x="1" attach-x="0" attach-y="3"/>
                        <toggle param="output" size="1" attach-x="1" attach-y="3"/>
                        <label param="envelope" align-x="1" attach-x="0" attach-y="4"/>
                        <toggle param="envelope" size="1" attach-x="1" attach-y="4"/>
                        <label param="attack" align-x="1" attach-x="0" attach-y="5"/>
                        <toggle param="attack" size="1" attach-x="1" attach-y="5"/>
                        <label param="release" align-x="1" attach-x="0" attach-y="6"/>
                        <toggle param="release" size="1" attach-x="1" attach-y="6"/>
                    </table>
                    <line-graph refresh="1" width="440" height="220" param="sustain_threshold"/>
                </hbox>
            </frame>
        </if>
        
        <vbox>
                <hbox>
                    <vbox>
                        <label param="lookahead"/>
                        <knob param="lookahead" size="2"/>
                        <value param="lookahead"/>
                    </vbox>
                </hbox>
                <label/>
                <vbox spacing="10">
                    <vbox>
                        <label param="attack_boost"/>
                        <knob param="attack_boost" size="4" type="1"/>
                        <value param="attack_boost"/>
                    </vbox>
                    <vbox>
                        <label param="attack_time"/>
                        <knob param="attack_time" size="2"/>
                        <value param="attack_time"/>
                    </vbox>
                </vbox>
        </vbox>
        
        <vbox>
                <hbox>
                    <vbox>
                        <label text="Sustain Thres"/>
                        <knob param="sustain_threshold" size="2" type="2"/>
                        <value param="sustain_threshold"/>
                    </vbox>
                </hbox>
                <label/>
                <vbox spacing="10">
                    <vbox>
                        <label param="release_boost"/>
                        <knob param="release_boost" size="4" type="1"/>
                        <value param="release_boost"/>
                    </vbox>
                    <vbox>
                        <label param="release_time"/>
                        <knob param="release_time" size="2"/>
                        <value param="release_time"/>
                    </vbox>
                </vbox>
        </vbox>
    
    </hbox>
</vbox>
