<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<touchdaw_daw_profile>
    <master_section>
        <!-- 
            Let's you set titles and grouping for all buttons in the global / master zone of the tablet DAW Controller screen.
            The "id" attribute is required.
            "name" is optional and only in here to make clear what button is referred to. Values match button labels on the original hardware (and TouchDAW under the Logic preset).
            Edit the "title" attribute to set an alternative label.
            Set the "group" attribute to 0, 1, 2, 3 or 4 to have buttons grouped by color.
            Additionally buttons can be set to be lockable by adding a "lockable" attribute with a value of "true". 
            (Remove the "lockable" attribute or set it to "false" if you want a lockable button to act normally)
         -->
        <control id="0" name="SMPTE" title="SMPTE"/>
        <control id="1" name="Name" title="Name"/>
        <control id="2" name="Flip" title="Flip" group="1"/>
        <control id="3" name="Global" title="Global" group="1"/>
        
        <control id="4" name="Track" title="Track"/>
        <control id="5" name="Send" title="Send"/>
        <control id="6" name="Pan" title="Pan"/>
        <control id="7" name="Plugin" title="Plugin"/>
        <control id="8" name="EQ" title="EQ"/>
        <control id="9" name="Instr" title="Instr"/>
        
        <control id="10" name="F1" title="F1" group="2"/>
        <control id="11" name="F2" title="F2" group="2"/>
        <control id="12" name="F3" title="F3" group="2"/>
        <control id="13" name="F4" title="F4" group="2"/>
        <control id="14" name="F5" title="F5" group="2"/>
        <control id="15" name="F6" title="F6" group="2"/>
        <control id="16" name="F7" title="F7" group="2"/>
        <control id="17" name="F8" title="F8" group="2"/>
        
        <!-- "L_" & "_R" will be replaced with unicode arrow symbols, which can be a drag to use in xml -->
        <control id="18" name="Page Down" title="L_Page"/>
        <control id="19" name="Page Up" title="Page_R"/>
        <control id="20" name="Bank Down" title="L_L_BANK"/>
        <control id="21" name="Bank Up" title="Bank_R_R"/>
        
        <control id="22" name="MIDI" title="G1" group="2"/>
        <control id="23" name="Inputs" title="G2" group="2"/>
        <control id="24" name="Audio" title="G3" group="2"/>
        <control id="25" name="Instr" title="G4" group="2"/>
        <control id="26" name="Aux" title="G5" group="2"/>
        <control id="27" name="Busses" title="G6" group="2"/>
        <control id="28" name="Outputs" title="G7" group="2"/>
        <control id="29" name="User" title="G8" group="2"/>
        
        <control id="30" name="Shift" title="Shift" lockable="true"/>
        <control id="31" name="Option" title="Option" lockable="true"/>
        <control id="32" name="Read" title="Read" group="1"/>
        <control id="33" name="Write" title="Write" group="1"/>
        <control id="34" name="Trim" title="Trim" group="1"/>
        <control id="35" name="Save" title="Save"/>
        <control id="36" name="Undo" title="Undo"/>
        
        <control id="37" name="Ctrl" title="Ctrl" lockable="true"/>
        <control id="38" name="Alt" title="Alt" lockable="true"/>
        <control id="39" name="Touch" title="Touch" group="1"/>
        <control id="40" name="Latch" title="Latch" group="1"/>
        <control id="41" name="Group" title="Group"/>
        <control id="42" name="Cancel" title="Cancel"/>
        <control id="43" name="Enter" title="Enter"/>
        
        <control id="44" name="Marker" title="Marker" group="2"/>
        <control id="45" name="Nudge" title="Nudge" group="2"/>
        <control id="46" name="Cycle" title="Cycle"/>
        <control id="47" name="Drop" title="Drop" group="1"/>
        <control id="48" name="Replace" title="Replace" group="1"/>
        <control id="49" name="Click" title="Click"/>
        <control id="50" name="Solo" title="Solo"/>
    </master_section>
    
    <!-- Defines button combinations that can then be triggered from assignable buttons. The midi & midi_off attributes contain raw MIDI bytes (NOT button IDs) and should use running status where possible.  
    Title will be shown in function list dialogs. The unicode icon is optional. If not given title will also be used on the button itself, but would likely get truncated. -->
    <combined_commands>
    	<!-- basic example for a button / modifier combination. When pressed the MCU 'Shift' key (MIDI note number 0x46) will be sent followed by the MCU 'Undo' button. Releasing the button sends off-states for both buttons in reverse order. This particular conbination will be interpreted by most DAWs as 'Redo' -->  
        <command title="Combi Example 1" icon="&#x25A0;" midi="0x90,0x46,0x7F,0x51,0x7F" midi_off="0x90,0x51,0x00,0x46,0x00"></command>
        
        <!--Slightly more complex example that represents first pressing and releasing the MCU 'Marker' button, then holding down 'Shift' and pressing 'Rewind'. Upon release first 'Rewind' is set to off, followed by 'Shift' and another full press/release of the 'Marker' button. -->
        <command title="Combi Example 2" icon="&#x2623;" midi="0x90,0x55,0x7F,0x55,0x00,0x46,0x7F,0x5B,0x7F" midi_off="0x90,0x5B,0x00,0x46,0x00,0x55,0x7F,0x55,0x00"></command>
        
        <!-- Example with Note / Controller combination. Button press sends the MCU 'Control' button, on release the jogwheel is turned one tick counterclockwise before the 'Control' button is released again.-->
        <command title="Combi Example 3" icon="&#x2B24;" midi="0x90,0x48,0x7F" midi_off="0xB0,0x3C,0x41,0x90,0x48,0x00"></command>
    </combined_commands>

 </touchdaw_daw_profile>