<vbox>
    <table attach-x="0" attach-y="0" 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" />
        <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 attach-x="3" attach-y="0" expand-x="0"  param="on"/>
        <toggle attach-x="3" attach-y="1" expand-x="0" attach-h="2" param="on"/>
                 
        <label attach-x="4" 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="4" attach-y="1" expand-x="1" />
        <vumeter param="meter_outR" position="2" mode="0" hold="1.5" falloff="2.5" attach-x="4" 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="4" attach-y="3" expand-x="1" />
        
        <label attach-x="5" attach-y="0" expand-x="0" text="Clip"/>
        <led param="clip_outL" mode="1" attach-x="5" attach-y="1" expand-x="0" />
        <led param="clip_outR" mode="1" attach-x="5" attach-y="2" expand-x="0" />
        
        <label param="level_out" attach-x="6" attach-y="0" expand-x="0" />
        <knob param="level_out" attach-x="6" attach-y="1" attach-h="2" expand-x="0" type="1" />
        <value param="level_out" attach-x="6" attach-y="3" expand-x="0" />
    </table>
    <table cols="3" rows="2">
        <table rows="1" cols="6" homogeneous="1" spacing="2" attach-x="1" attach-y="1" shrink-y="1">
            <vbox expand="0" attach-x="0" attach-y="0">
                <label param="base_freq" />
                <knob param="base_freq" ticks="20 100 1000 20000" />
                <value param="base_freq" />
            </vbox>
            <vbox expand="0" attach-x="1" attach-y="0">
                <label param="mod_depth" />
                <knob param="mod_depth" />
                <value param="mod_depth" />
            </vbox>
            <vbox expand="0" attach-x="2" attach-y="0">
                <label param="feedback" />
                <knob param="feedback" type="1" />
                <value param="feedback" />
            </vbox>
            <vbox expand="0" attach-x="3" attach-y="0">
                <label param="stages" />
                <knob param="stages" ticks="1 2 3 4 5 6 7 8 9 10 11 12" />
                <value param="stages" />
            </vbox>
            <vbox expand="0" attach-x="4" attach-y="0">
                <label param="amount" />
                <knob param="amount" ticks="0 0.0625 0.25 1 4" />
                <value param="amount" />
            </vbox>
            <vbox expand="0" attach-x="5" attach-y="0">
                <label param="dry" />
                <knob param="dry" ticks="0 0.0625 0.25 1 4" />
                <value param="dry" />
            </vbox>
        </table>
        
        <vbox border="10" attach-x="0" attach-y="0">
            <label param="mod_rate" align-y="1.0" />
            <knob param="mod_rate" size="5" ticks="0.01 0.1 1 10 20" />
            <value param="mod_rate" align-y="0.0" />
        </vbox>
        
        <vbox border="10" attach-x="2" attach-y="0">
            <label param="stereo" align-y="1.0" />
            <knob param="stereo" type="3" size="5" />
            <value param="stereo" align-y="0.0" />
        </vbox>
        
        <align attach-x="0" attach-y="1"><toggle param="lfo" icon="pauseplay" /></align>
        
        <align attach-x="2" attach-y="1"><button param="reset" /></align>
        
        <if cond="directlink">
            <frame label="Frequency response" attach-x="1" attach-y="0" >
                <vbox expand-x="1" fill-x="1" >
                    <line-graph refresh="1" width="160" height="160" param="base_freq" crosshairs="1"/>
                </vbox>
            </frame>
        </if>
    </table>
</vbox>
