<vbox spacing="8">
    <table expand-y="0" expand-x="1" spacing="5" rows="1" cols="8">
        <label param="level_in" attach-x="0" attach-y="0" expand-x="0" />
        <knob param="level_in" type="1" attach-x="0" attach-y="1" attach-h="2" expand-x="0" />
        <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="3" attach-y="0" expand-x="0" />
        <toggle param="bypass" icon="bypass" attach-x="3" attach-y="1" attach-h="2" expand-x="0" />
        
        <label param="mono" attach-x="4" attach-y="0" expand-x="0" />
        <toggle param="mono" icon="mono" attach-x="4" attach-y="1" attach-h="2" 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" />
        <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="5" attach-y="3" 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" type="1" attach-x="7" attach-y="1" attach-h="2" expand-x="0" />
        <value param="level_out" attach-x="7" attach-y="3" expand-x="0" />
    </table>
    <hbox spacing="20">
        <!-- TIMING -->
        <frame label="Timing">
            <vbox>
                <notebook param="timing">
                    <table page="BPM" rows="3" cols="2">
                        <label param="bpm"  attach-x="0" attach-y="0"/>
                        <knob param="bpm" attach-x="0" attach-y="1" size="5" ticks="30 60 120 180 240 300"/>
                        <value param="bpm" attach-x="0" attach-y="2"/>
                        <vbox attach-x="1" attach-y="1" expand-y="0" fill-y="0">
                            <label text="Tap"/>
                            <tap param="bpm"/>
                            <label/>
                        </vbox>
                    </table>
                    <hbox page="ms">
                        <vbox>
                            <label param="ms" />
                            <knob param="ms" size="5" ticks="10 200 400 600 800 1000 1200 1400 1600 1800 2000"/>
                            <value param="ms"/>
                        </vbox>
                    </hbox>
                    <hbox page="Hz">
                        <vbox>
                            <label param="hz" />
                            <knob param="hz" size="5" ticks="0.01 0.1 1 10 100"/>
                            <value param="hz"/>
                        </vbox>
                    </hbox>
                    <hbox page="Sync">
                        <value param="bpm_host"/>
                    </hbox>
                </notebook>
                <button param="reset" />
            </vbox>
        </frame>
        <!-- TIMING -->
        <frame label="Modulation">
            <vbox spacing="3">
                <combo param="mode" />
                <label/>
                <vbox>
                    <label param="amount"  />
                    <knob size="5" param="amount" />
                    <value param="amount" />
                </vbox>
                <label/>
                <combo param="pulsewidth" />
            </vbox>
        </frame>
        <frame label="Pulse">
            <vbox spacing="5">
                <if cond="directlink">
                    <line-graph refresh="1" width="400" height="120" param="hz" expand="1" fill="1"/>
                </if>
                <table rows="2" cols="2">
                    <label param="offset_l" attach-x="0" attach-y="0" />
                    <hscale param="offset_l" size="2" width="300" attach-x="1" attach-y="0" />
                    <label param="offset_r" attach-x="0" attach-y="1"/>
                    <hscale param="offset_r" size="2" width="300" attach-x="1" attach-y="1" />
                </table>
            </vbox>
        </frame>
    </hbox>
</vbox>
