<device>
    <nickname offset-bytes="202" bytes="32" command="23"/>
    <mixer>
        <inputs num="30" pin0="0x300"/>
        <mixes num="16" pin0="0x300"/>
    </mixer>
    <inputs offset-bytes="130" bytes="72">
        <analogue name="Analogue 1" stereo-name="Analogue 1-2" pin="0x400">
            <air offset-bytes="170" bits="1" command="8"/>
            <mode offset-bytes="162" bits="2" command="7">
                <enum value="Mic" option="0"/>
                <enum value="Line" option="1"/>
                <enum value="Inst" option="2"/>
            </mode>
            <phantom offset-bytes="154" bits="1" command="11"/>
            <phase offset-bytes="186" bits="1" command="12"/>
            <hpf offset-bytes="178" bits="1" command="10"/>
            <mic-gain offset-bytes="130" bits="8" command="9"/>
            <line-gain offset-bytes="131" bits="8" command="9"/>
            <inst-gain offset-bytes="132" bits="8" command="9"/>
            <stereo-link offset-bytes="194" bits="1" command="13"/>
        </analogue>
        <analogue name="Analogue 2" pin="0x401">
            <air offset-bytes="171" bits="1" command="8"/>
            <mode offset-bytes="163" bits="2" command="7">
                <enum value="Mic" option="0"/>
                <enum value="Line" option="1"/>
                <enum value="Inst" option="2"/>
            </mode>
            <phantom offset-bytes="155" bits="1" command="11"/>
            <phase offset-bytes="187" bits="1" command="12"/>
            <hpf offset-bytes="179" bits="1" command="10"/>
            <mic-gain offset-bytes="133" bits="8" command="9"/>
            <line-gain offset-bytes="134" bits="8" command="9"/>
            <inst-gain offset-bytes="135" bits="8" command="9"/>
            <stereo-link offset-bytes="195" bits="1" command="13"/>
        </analogue>
        <analogue name="Analogue 3" stereo-name="Analogue 3-4" pin="0x402">
            <air offset-bytes="172" bits="1" command="8"/>
            <mode offset-bytes="164" bits="2" command="7">
                <enum value="Mic" option="0"/>
                <enum value="Line" option="1"/>
            </mode>
            <phantom offset-bytes="156" bits="1" command="11"/>
            <phase offset-bytes="188" bits="1" command="12"/>
            <hpf offset-bytes="180" bits="1" command="10"/>
            <mic-gain offset-bytes="136" bits="8" command="9"/>
            <line-gain offset-bytes="137" bits="8" command="9"/>
            <stereo-link offset-bytes="196" bits="1" command="13"/>
        </analogue>
        <analogue name="Analogue 4" pin="0x403">
            <air offset-bytes="173" bits="1" command="8"/>
            <mode offset-bytes="165" bits="2" command="7">
                <enum value="Mic" option="0"/>
                <enum value="Line" option="1"/>
            </mode>
            <phantom offset-bytes="157" bits="1" command="11"/>
            <phase offset-bytes="189" bits="1" command="12"/>
            <hpf offset-bytes="181" bits="1" command="10"/>
            <mic-gain offset-bytes="139" bits="8" command="9"/>
            <line-gain offset-bytes="140" bits="8" command="9"/>
            <stereo-link offset-bytes="197" bits="1" command="13"/>
        </analogue>
        <analogue name="Analogue 5" stereo-name="Analogue 5-6" pin="0x407"/>
        <analogue name="Analogue 6" pin="0x406"/>
        <analogue name="Analogue 7" stereo-name="Analogue 7-8" pin="0x405"/>
        <analogue name="Analogue 8" pin="0x404"/>
        <spdif-rca name="S/PDIF L" stereo-name="S/PDIF L-R" pin="0x408" />
        <spdif-rca name="S/PDIF R" pin="0x409" />
        <adat name="ADAT 1.1" stereo-name="ADAT 1.1-1.2" pin="0x200" />
        <adat name="ADAT 1.2" pin="0x201" />
        <adat name="ADAT 1.3" stereo-name="ADAT 1.3-1.4" pin="0x202" pin-h="0x0" />
        <adat name="ADAT 1.4" pin="0x203" pin-h="0x0" />
        <adat name="ADAT 1.5" stereo-name="ADAT 1.5-1.6" pin="0x204" pin-m="0x0" />
        <adat name="ADAT 1.6" pin="0x205" pin-m="0x0" />
        <adat name="ADAT 1.7" stereo-name="ADAT 1.7-1.8" pin="0x206" pin-m="0x0" />
        <adat name="ADAT 1.8" pin="0x207" pin-m="0x0" />
        <adat name="ADAT 2.1" stereo-name="ADAT 2.1-2.2" pin="0x208" pin-m="0x204" pin-h="0x202" />
        <adat name="ADAT 2.2" pin="0x209" pin-m="0x205" pin-h="0x203" />
        <adat name="ADAT 2.3" stereo-name="ADAT 2.3-2.4" pin="0x20a" pin-m="0x206" pin-h="0x0" />
        <adat name="ADAT 2.4" pin="0x20b" pin-m="0x207" pin-h="0x0" />
        <adat name="ADAT 2.5" stereo-name="ADAT 2.5-2.6" pin="0x20c" pin-m="0x0" />
        <adat name="ADAT 2.6" pin="0x20d" pin-m="0x0" />
        <adat name="ADAT 2.7" stereo-name="ADAT 2.7-2.8" pin="0x20e" pin-m="0x0" />
        <adat name="ADAT 2.8" pin="0x20f" pin-m="0x0" />
        <dante name="Dante 1" stereo-name="Dante 1-2" pin="0x800"/>
        <dante name="Dante 2" pin="0x801"/>
        <dante name="Dante 3" stereo-name="Dante 3-4" pin="0x802"/>
        <dante name="Dante 4" pin="0x803"/>
        <dante name="Dante 5" stereo-name="Dante 5-6" pin="0x804"/>
        <dante name="Dante 6" pin="0x805"/>
        <dante name="Dante 7" stereo-name="Dante 7-8" pin="0x806"/>
        <dante name="Dante 8" pin="0x807"/>
        <dante name="Dante 9" stereo-name="Dante 9-10" pin="0x808"/>
        <dante name="Dante 10" pin="0x809"/>
        <dante name="Dante 11" stereo-name="Dante 11-12" pin="0x80a"/>
        <dante name="Dante 12" pin="0x80b"/>
        <dante name="Dante 13" stereo-name="Dante 13-14" pin="0x80c"/>
        <dante name="Dante 14" pin="0x80d"/>
        <dante name="Dante 15" stereo-name="Dante 15-16" pin="0x80e"/>
        <dante name="Dante 16" pin="0x80f"/>
        <dante name="Dante 17" stereo-name="Dante 17-18" pin="0x810" pin-h="0x0"/>
        <dante name="Dante 18" pin="0x811" pin-h="0x0"/>
        <dante name="Dante 19" stereo-name="Dante 19-20" pin="0x812" pin-h="0x0"/>
        <dante name="Dante 20" pin="0x813" pin-h="0x0"/>
        <dante name="Dante 21" stereo-name="Dante 21-22" pin="0x814" pin-h="0x0"/>
        <dante name="Dante 22" pin="0x815" pin-h="0x0"/>
        <dante name="Dante 23" stereo-name="Dante 23-24" pin="0x816" pin-h="0x0"/>
        <dante name="Dante 24" pin="0x817" pin-h="0x0"/>
        <dante name="Dante 25" stereo-name="Dante 25-26" pin="0x818" pin-h="0x0"/>
        <dante name="Dante 26" pin="0x819" pin-h="0x0"/>
        <dante name="Dante 27" stereo-name="Dante 27-28" pin="0x81a" pin-h="0x0"/>
        <dante name="Dante 28" pin="0x81b" pin-h="0x0"/>
        <dante name="Dante 29" stereo-name="Dante 29-30" pin="0x81c" pin-h="0x0"/>
        <dante name="Dante 30" pin="0x81d" pin-h="0x0"/>
        <dante name="Dante 31" stereo-name="Dante 31-32" pin="0x81e" pin-h="0x0"/>
        <dante name="Dante 32" pin="0x81f" pin-h="0x0"/>
        <playback name="Playback 1" pin="0x600" stereo-name="Playback 1-2" />
        <playback name="Playback 2" pin="0x601" />
        <playback name="Playback 3" pin="0x602" stereo-name="Playback 3-4" />
        <playback name="Playback 4" pin="0x603" />
        <playback name="Playback 5" pin="0x604" stereo-name="Playback 5-6" />
        <playback name="Playback 6" pin="0x605" />
        <playback name="Playback 7" pin="0x606" stereo-name="Playback 7-8" />
        <playback name="Playback 8" pin="0x607" />
        <playback name="Playback 9" pin="0x608" stereo-name="Playback 9-10" />
        <playback name="Playback 10" pin="0x609" />
        <playback name="Playback 11" pin="0x60a" stereo-name="Playback 11-12" />
        <playback name="Playback 12" pin="0x60b" />
        <playback name="Playback 13" pin="0x60c" stereo-name="Playback 13-14" />
        <playback name="Playback 14" pin="0x60d" />
        <playback name="Playback 15" pin="0x60e" stereo-name="Playback 15-16" />
        <playback name="Playback 16" pin="0x60f" />
        <playback name="Playback 17" pin="0x610" stereo-name="Playback 17-18" />
        <playback name="Playback 18" pin="0x611" />
        <playback name="Playback 19" pin="0x612" stereo-name="Playback 19-20" />
        <playback name="Playback 20" pin="0x613" />
        <playback name="Playback 21" pin="0x614" stereo-name="Playback 21-22" />
        <playback name="Playback 22" pin="0x615" />
        <playback name="Playback 23" pin="0x616" stereo-name="Playback 23-24" />
        <playback name="Playback 24" pin="0x617" />
        <playback name="Playback 25" pin="0x618" stereo-name="Playback 25-26" />
        <playback name="Playback 26" pin="0x619" />
        <playback name="Playback 27" pin="0x61a" stereo-name="Playback 27-28" />
        <playback name="Playback 28" pin="0x61b" />
        <playback name="Playback 29" pin="0x61c" stereo-name="Playback 29-30" />
        <playback name="Playback 30" pin="0x61d" />
        <playback name="Playback 31" pin="0x61e" stereo-name="Playback 31-32" />
        <playback name="Playback 32" pin="0x61f" />
        <playback name="Playback 33" pin="0x620" stereo-name="Playback 33-34" />
        <playback name="Playback 34" pin="0x621" />
        <playback name="Playback 35" pin="0x622" stereo-name="Playback 35-36" />
        <playback name="Playback 36" pin="0x623" />
        <playback name="Playback 37" pin="0x624" pin-h="0x0" stereo-name="Playback 37-38" />
        <playback name="Playback 38" pin="0x625" pin-h="0x0" />
        <playback name="Playback 39" pin="0x626" pin-h="0x0" stereo-name="Playback 39-40" />
        <playback name="Playback 40" pin="0x627" pin-h="0x0" />
        <playback name="Playback 41" pin="0x628" pin-h="0x0" stereo-name="Playback 41-42" />
        <playback name="Playback 42" pin="0x629" pin-h="0x0" />
        <playback name="Playback 43" pin="0x62a" pin-h="0x0" stereo-name="Playback 43-44" />
        <playback name="Playback 44" pin="0x62b" pin-h="0x0" />
        <playback name="Playback 45" pin="0x62c" pin-h="0x0" stereo-name="Playback 45-46" />
        <playback name="Playback 46" pin="0x62d" pin-h="0x0" />
        <playback name="Playback 47" pin="0x62e" pin-h="0x0" stereo-name="Playback 47-48" />
        <playback name="Playback 48" pin="0x62f" pin-h="0x0" />
        <playback name="Playback 49" pin="0x630" pin-h="0x0" stereo-name="Playback 49-50" />
        <playback name="Playback 50" pin="0x631" pin-h="0x0" />
        <playback name="Playback 51" pin="0x632" pin-h="0x0" stereo-name="Playback 51-52" />
        <playback name="Playback 52" pin="0x633" pin-h="0x0" />
        <playback name="Playback 53" pin="0x634" pin-h="0x0" stereo-name="Playback 53-54" />
        <playback name="Playback 54" pin="0x635" pin-h="0x0" />
        <playback name="Playback 55" pin="0x636" pin-h="0x0" stereo-name="Playback 55-56" />
        <playback name="Playback 56" pin="0x637" pin-h="0x0" />
        <playback name="Playback 57" pin="0x638" pin-m="0x0" stereo-name="Playback 57-58" />
        <playback name="Playback 58" pin="0x639" pin-m="0x0" />
        <playback name="Playback 59" pin="0x63a" pin-m="0x0" stereo-name="Playback 59-60" />
        <playback name="Playback 60" pin="0x63b" pin-m="0x0" />
        <playback name="Playback 61" pin="0x63c" pin-m="0x0" stereo-name="Playback 61-62" />
        <playback name="Playback 62" pin="0x63d" pin-m="0x0" />
        <playback name="Playback 63" pin="0x63e" pin-m="0x0" stereo-name="Playback 63-64" />
        <playback name="Playback 64" pin="0x63f" pin-m="0x0" />
    </inputs>
    <outputs offset-bytes="24" bytes="88">
        <analogue name="Monitor Output 1" stereo-name="Monitor Outputs 1-2" pin="0x400" monitor="true">
            <gain offset-bytes="24" bits="16" command="1" gain-mode="gain"/>
            <dim offset-bytes="68" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="90" bits="2" command="3"/>
        </analogue>
        <analogue name="Monitor Output 2" pin="0x401" monitor="true">
            <gain offset-bytes="26" bits="16" command="1" gain-mode="gain"/>
            <dim offset-bytes="69" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="91" bits="2" command="3"/>
        </analogue>
        <analogue name="Headphone 1 (L)" stereo-name="Headphones 1" pin="0x402" headphone="1" hardware-controls="1" independent="true">
            <gain offset-bytes="28" bits="16" command="1" gain-mode="gain"/>
            <dim offset-bytes="70" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="92" bits="2" command="3"/>
        </analogue>
        <analogue name="Headphone 1 (R)" pin="0x403" headphone="1" hardware-controls="1" independent="true">
            <gain offset-bytes="30" bits="16" command="1" gain-mode="gain"/>
            <dim offset-bytes="71" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="93" bits="2" command="3"/>
        </analogue>
        <analogue name="Headphone 2 (L)" stereo-name="Headphones 2" pin="0x404" headphone="2" hardware-controls="2" independent="true">
            <gain offset-bytes="32" bits="16" command="1" headphone="2" gain-mode="gain"/>
            <dim offset-bytes="72" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="94" bits="2" command="3"/>
        </analogue>
        <analogue name="Headphone 2 (R)" pin="0x405" headphone="2" hardware-controls="2" independent="true">
            <gain offset-bytes="34" bits="16" command="1" gain-mode="gain"/>
            <dim offset-bytes="73" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="95" bits="2" command="3"/>
        </analogue>
        <analogue name="Line Output 3" stereo-name="Line Outputs 3-4" pin="0x406">
            <gain offset-bytes="36" bits="16" command="1" gain-mode="gain"/>
            <mute offset-bytes="74" bits="1" command="15"/>
            <dim offset-bytes="74" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="96" bits="2" command="3"/>
        </analogue>
        <analogue name="Line Output 4" pin="0x407">
            <gain offset-bytes="38" bits="16" command="1" gain-mode="gain"/>
            <mute offset-bytes="75" bits="1" command="15"/>
            <dim offset-bytes="75" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="97" bits="2" command="3"/>
        </analogue>
        <analogue name="Line Output 5" stereo-name="Line Outputs 5-6" pin="0x408">
            <gain offset-bytes="40" bits="16" command="1" gain-mode="gain"/>
            <mute offset-bytes="76" bits="1" command="15"/>
            <dim offset-bytes="76" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="98" bits="2" command="3"/>
        </analogue>
        <analogue name="Line Output 6" pin="0x409">
            <gain offset-bytes="42" bits="16" command="1" gain-mode="gain"/>
            <mute offset-bytes="77" bits="1" command="15"/>
            <dim offset-bytes="77" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="99" bits="2" command="3"/>
        </analogue>
        <analogue name="Line Output 7" stereo-name="Line Outputs 7-8" pin="0x40a">
            <gain offset-bytes="44" bits="16" command="1" gain-mode="gain"/>
            <mute offset-bytes="78" bits="1" command="15"/>
            <dim offset-bytes="78" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="100" bits="2" command="3"/>
        </analogue>
        <analogue name="Line Output 8" pin="0x40b" >
            <gain offset-bytes="46" bits="16" command="1" gain-mode="gain"/>
            <mute offset-bytes="79" bits="1" command="15"/>
            <dim offset-bytes="79" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="101" bits="2" command="3"/>
        </analogue>
        <analogue name="Line Output 9" stereo-name="Line Outputs 9-10" pin="0x40c">
            <gain offset-bytes="48" bits="16" command="1" gain-mode="gain" />
            <mute offset-bytes="80" bits="1" command="15"/>
            <dim offset-bytes="80" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="102" bits="2" command="3"/>
        </analogue>
        <analogue name="Line Output 10" pin="0x40d">
            <gain offset-bytes="50" bits="16" command="1"  gain-mode="gain"/>
            <mute offset-bytes="81" bits="1" command="15"/>
            <dim offset-bytes="81" offset-bits="1" bits="1" command="15"/>
            <enable-hardware-control offset-bytes="103" bits="2" command="3"/>
        </analogue>
        <spdif-rca name="S/PDIF Output L" stereo-name="S/PDIF Outputs L-R" pin="0x186"/>
        <spdif-rca name="S/PDIF Output R" pin="0x187"/>
        <adat name="ADAT Output 1.1" stereo-name="ADAT Outputs 1.1-1.2" pin="0x200"/>
        <adat name="ADAT Output 1.2" pin="0x201"/>
        <adat name="ADAT Output 1.3" stereo-name="ADAT Outputs 1.3-1.4" pin="0x202" pin-h="0x0"/>
        <adat name="ADAT Output 1.4" pin="0x203" pin-h="0x0"/>
        <adat name="ADAT Output 1.5" stereo-name="ADAT Outputs 1.5-1.6" pin="0x204" pin-m="0x0"/>
        <adat name="ADAT Output 1.6" pin="0x205" pin-m="0x0"/>
        <adat name="ADAT Output 1.7" stereo-name="ADAT Outputs 1.7-1.8" pin="0x206" pin-m="0x0"/>
        <adat name="ADAT Output 1.8" pin="0x207" pin-m="0x0"/>
        <adat name="ADAT Output 2.1" stereo-name="ADAT Outputs 2.1-2.2" pin="0x208" pin-m="0x204" pin-h="0x202"/>
        <adat name="ADAT Output 2.2" pin="0x209" pin-m="0x205" pin-h="0x203"/>
        <adat name="ADAT Output 2.3" stereo-name="ADAT Outputs 2.3-2.4" pin="0x20a" pin-m="0x206" pin-h="0x0"/>
        <adat name="ADAT Output 2.4" pin="0x20b" pin-m="0x207" pin-h="0x0"/>
        <adat name="ADAT Output 2.5" stereo-name="ADAT Outputs 2.5-2.6" pin="0x20c" pin-m="0x0"/>
        <adat name="ADAT Output 2.6" pin="0x20d" pin-m="0x0"/>
        <adat name="ADAT Output 2.7" stereo-name="ADAT Outputs 2.7-2.8" pin="0x20e" pin-m="0x0"/>
        <adat name="ADAT Output 2.8" pin="0x20f" pin-m="0x0"/>
        <dante name="Dante 1" stereo-name="Dante 1-2" pin="0x800"/>
        <dante name="Dante 2" pin="0x801"/>
        <dante name="Dante 3" stereo-name="Dante 3-4" pin="0x802"/>
        <dante name="Dante 4" pin="0x803"/>
        <dante name="Dante 5" stereo-name="Dante 5-6" pin="0x804"/>
        <dante name="Dante 6" pin="0x805"/>
        <dante name="Dante 7" stereo-name="Dante 7-8" pin="0x806"/>
        <dante name="Dante 8" pin="0x807"/>
        <dante name="Dante 9" stereo-name="Dante 9-10" pin="0x808"/>
        <dante name="Dante 10" pin="0x809"/>
        <dante name="Dante 11" stereo-name="Dante 11-12" pin="0x80a"/>
        <dante name="Dante 12" pin="0x80b"/>
        <dante name="Dante 13" stereo-name="Dante 13-14" pin="0x80c"/>
        <dante name="Dante 14" pin="0x80d"/>
        <dante name="Dante 15" stereo-name="Dante 15-16" pin="0x80e"/>
        <dante name="Dante 16" pin="0x80f"/>
        <dante name="Dante 17" stereo-name="Dante 17-18" pin="0x810" pin-h="0x0"/>
        <dante name="Dante 18" pin="0x811" pin-h="0x0"/>
        <dante name="Dante 19" stereo-name="Dante 19-20" pin="0x812" pin-h="0x0"/>
        <dante name="Dante 20" pin="0x813" pin-h="0x0"/>
        <dante name="Dante 21" stereo-name="Dante 21-22" pin="0x814" pin-h="0x0"/>
        <dante name="Dante 22" pin="0x815" pin-h="0x0"/>
        <dante name="Dante 23" stereo-name="Dante 23-24" pin="0x816" pin-h="0x0"/>
        <dante name="Dante 24" pin="0x817" pin-h="0x0"/>
        <dante name="Dante 25" stereo-name="Dante 25-26" pin="0x818" pin-h="0x0"/>
        <dante name="Dante 26" pin="0x819" pin-h="0x0"/>
        <dante name="Dante 27" stereo-name="Dante 27-28" pin="0x81a" pin-h="0x0"/>
        <dante name="Dante 28" pin="0x81b" pin-h="0x0"/>
        <dante name="Dante 29" stereo-name="Dante 29-30" pin="0x81c" pin-h="0x0"/>
        <dante name="Dante 30" pin="0x81d" pin-h="0x0"/>
        <dante name="Dante 31" stereo-name="Dante 31-32" pin="0x81e" pin-h="0x0"/>
        <dante name="Dante 32" pin="0x81f" pin-h="0x0"/>
    </outputs>
    <record-outputs mutable="true">
        <!-- Mapping the hardware inputs to the DAW inputs -->
        <!-- These correspond to the table of Inputs in Appendix 2 of the Red4Pre user guide. -->
        <record pin="0x600" input="0"/>                                         <!-- HW input 0 (Analogue 1 - Mic/Line/Inst) (Low, Med, Hi) to DAW input  0 -->
        <record pin="0x601" input="1"/>                                         <!-- HW input 1 (Analogue 2 - Mic/Line/Inst) (Low, Med, Hi) to DAW input  1 -->
        <record pin="0x602" input="2"/>                                         <!-- HW input 2 (Analogue 3 - Mic/Line) (Low, Med, Hi)      to DAW input  2 -->
        <record pin="0x603" input="3"/>                                         <!-- HW input 3 (Analogue 4 - Mic/Line) (Low, Med, Hi)      to DAW input  3 -->
        <record pin="0x604" input="4"/>                                         <!-- HW input 4 (Analogue 5 - Line in) (Low, Med, Hi)       to DAW input  4 -->
        <record pin="0x605" input="5"/>                                         <!-- HW input 5 (Analogue 6 - Line in) (Low, Med, Hi)       to DAW input  5 -->
        <record pin="0x606" input="6"/>                                         <!-- HW input 6 (Analogue 7 - Line in) (Low, Med, Hi)       to DAW input  6 -->
        <record pin="0x607" input="7"/>                                         <!-- HW input 7 (Analogue 8 - Line in) (Low, Med, Hi)       to DAW input  7 -->
        <record pin="0x608" input="8"/>                                         <!-- HW input 8 (S/PDIF) (Low, Med, Hi)                     to DAW input  8 -->
        <record pin="0x609" input="9"/>                                         <!-- HW input 9 (S/PDIF) (Low, Med, Hi)                     to DAW input  9 -->
        <loopback name="Loopback 1" stereo-name="Loopback 1-2" pin="0x60a"/>    <!-- Loopback 1 (Low, Med, Hi)                              to DAW input 10 -->
        <loopback name="Loopback 2" pin="0x60b"/>                               <!-- Loopback 2 (Low, Med, Hi)                              to DAW input 11 -->
        <record pin="0x60c" input="10"/>                                        <!-- HW input 10 (ADAT-1 1) (Low, Med, Hi)                  to DAW input 12 -->
        <record pin="0x60d" input="11"/>                                        <!-- HW input 11 (ADAT-1 2) (Low, Med, Hi)                  to DAW input 13 -->
        <record pin="0x60e" input="12" input-h="18"/>               <!-- HW input 12 (ADAT-1  3) (Low, Med)                     18 (ADAT-2  9) (Hi) to DAW input 14 -->
        <record pin="0x60f" input="13" input-h="19"/>               <!-- HW input 13 (ADAT-1  4) (Low, Med)                     19 (ADAT-2 10) (Hi) to DAW input 15 -->
        <record pin="0x610" input="14" input-m="18" input-h="26"/>  <!-- HW input 14 (ADAT-1  5) (Low)  18 (ADAT-2  9) (Med)    26 (Dante  1) (Hi)  to DAW input 16 -->
        <record pin="0x611" input="15" input-m="19" input-h="27"/>  <!-- HW input 15 (ADAT-1  6) (Low)  19 (ADAT-2 10) (Med)    27 (Dante  2) (Hi)  to DAW input 17 -->
        <record pin="0x612" input="16" input-m="20" input-h="28"/>  <!-- HW input 16 (ADAT-1  7) (Low)  20 (ADAT-2 11) (Med)    28 (Dante  3) (Hi)  to DAW input 18 -->
        <record pin="0x613" input="17" input-m="21" input-h="29"/>  <!-- HW input 17 (ADAT-1  8) (Low)  21 (ADAT-2 12) (Med)    29 (Dante  4) (Hi)  to DAW input 19 -->
        <record pin="0x614" input="18" input-m="26" input-h="30"/>  <!-- HW input 18 (ADAT-2  9) (Low)  26 (DANTE  1) (Med)     30 (Dante  5) (Hi)  to DAW input 20 -->
        <record pin="0x615" input="19" input-m="27" input-h="31"/>  <!-- HW input 19 (ADAT-2 10) (Low)  27 (DANTE  2) (Med)     31 (Dante  6) (Hi)  to DAW input 21 -->
        <record pin="0x616" input="20" input-m="28" input-h="32"/>  <!-- HW input 20 (ADAT-2 11) (Low)  28 (DANTE  3) (Med)     32 (Dante  7) (Hi)  to DAW input 22 -->
        <record pin="0x617" input="21" input-m="29" input-h="33"/>  <!-- HW input 21 (ADAT-2 12) (Low)  29 (DANTE  4) (Med)     33 (Dante  8) (Hi)  to DAW input 23 -->
        <record pin="0x618" input="22" input-m="30" input-h="34"/>  <!-- HW input 22 (ADAT-2 13) (Low)  30 (DANTE  5) (Med)     34 (Dante  9) (Hi)  to DAW input 24 -->
        <record pin="0x619" input="23" input-m="31" input-h="35"/>  <!-- HW input 23 (ADAT-2 14) (Low)  31 (DANTE  6) (Med)     35 (Dante 10) (Hi)  to DAW input 25 -->
        <record pin="0x61a" input="24" input-m="32" input-h="36"/>  <!-- HW input 24 (ADAT-2 15) (Low)  32 (DANTE  7) (Med)     36 (Dante 11) (Hi)  to DAW input 26 -->
        <record pin="0x61b" input="25" input-m="33" input-h="37"/>  <!-- HW input 25 (ADAT-2 16) (Low)  33 (DANTE  8) (Med)     37 (Dante 12) (Hi)  to DAW input 27 -->
        <record pin="0x61c" input="26" input-m="34" input-h="38"/>  <!-- HW input 26 (DANTE  1) (Low)   34 (DANTE  9) (Med)     38 (Dante 13) (Hi)  to DAW input 28 -->
        <record pin="0x61d" input="27" input-m="35" input-h="39"/>  <!-- HW input 27 (DANTE  2) (Low)   35 (DANTE 10) (Med)     39 (Dante 14) (Hi)  to DAW input 29 -->
        <record pin="0x61e" input="28" input-m="36" input-h="40"/>  <!-- HW input 28 (DANTE  3) (Low)   36 (DANTE 11) (Med)     40 (Dante 15) (Hi)  to DAW input 30 -->
        <record pin="0x61f" input="29" input-m="37" input-h="41"/>  <!-- HW input 29 (DANTE  4) (Low)   37 (DANTE 12) (Med)     41 (Dante 16) (Hi)  to DAW input 31 -->
        <record pin="0x620" pin-h="0x0" input="30" input-m="38"/>   <!-- HW input 30 (DANTE  5) (Low)   38 (DANTE 13) (Med)     NOT ROUTED (Hi)     to DAW input 32 -->
        <record pin="0x621" pin-h="0x0" input="31" input-m="39"/>   <!-- HW input 31 (DANTE  6) (Low)   39 (DANTE 14) (Med)     NOT ROUTED (Hi)     to DAW input 33 -->
        <record pin="0x622" pin-h="0x0" input="32" input-m="40"/>   <!-- HW input 32 (DANTE  7) (Low)   40 (DANTE 15) (Med)     NOT ROUTED (Hi)     to DAW input 34 -->
        <record pin="0x623" pin-h="0x0" input="33" input-m="41"/>   <!-- HW input 33 (DANTE  8) (Low)   41 (DANTE 16) (Med)     NOT ROUTED (Hi)     to DAW input 35 -->
        <record pin="0x624" pin-h="0x0" input="34" input-m="42"/>   <!-- HW input 34 (DANTE  9) (Low)   42 (DANTE 17) (Med)     NOT ROUTED (Hi)     to DAW input 36 -->
        <record pin="0x625" pin-h="0x0" input="35" input-m="43"/>   <!-- HW input 35 (DANTE 10) (Low)   43 (DANTE 18) (Med)     NOT ROUTED (Hi)     to DAW input 37 -->
        <record pin="0x626" pin-h="0x0" input="36" input-m="44"/>   <!-- HW input 36 (DANTE 11) (Low)   44 (DANTE 19) (Med)     NOT ROUTED (Hi)     to DAW input 38 -->
        <record pin="0x627" pin-h="0x0" input="37" input-m="45"/>   <!-- HW input 37 (DANTE 12) (Low)   45 (DANTE 20) (Med)     NOT ROUTED (Hi)     to DAW input 39 -->
        <record pin="0x628" pin-h="0x0" input="38" input-m="46"/>   <!-- HW input 38 (DANTE 13) (Low)   46 (DANTE 21) (Med)     NOT ROUTED (Hi)     to DAW input 40 -->
        <record pin="0x629" pin-h="0x0" input="39" input-m="47"/>   <!-- HW input 39 (DANTE 14) (Low)   47 (DANTE 22) (Med)     NOT ROUTED (Hi)     to DAW input 41 -->
        <record pin="0x62a" pin-h="0x0" input="40" input-m="48"/>   <!-- HW input 40 (DANTE 15) (Low)   48 (DANTE 23) (Med)     NOT ROUTED (Hi)     to DAW input 42 -->
        <record pin="0x62b" pin-h="0x0" input="41" input-m="49"/>   <!-- HW input 41 (DANTE 16) (Low)   49 (DANTE 24) (Med)     NOT ROUTED (Hi)     to DAW input 43 -->
        <record pin="0x62c" pin-h="0x0" input="42" input-m="50"/>   <!-- HW input 42 (DANTE 17) (Low)   50 (DANTE 25) (Med)     NOT ROUTED (Hi)     to DAW input 44 -->
        <record pin="0x62d" pin-h="0x0" input="43" input-m="51"/>   <!-- HW input 43 (DANTE 18) (Low)   51 (DANTE 26) (Med)     NOT ROUTED (Hi)     to DAW input 45 -->
        <record pin="0x62e" pin-h="0x0" input="44" input-m="52"/>   <!-- HW input 44 (DANTE 19) (Low)   52 (DANTE 27) (Med)     NOT ROUTED (Hi)     to DAW input 46 -->
        <record pin="0x62f" pin-h="0x0" input="45" input-m="53"/>   <!-- HW input 45 (DANTE 20) (Low)   53 (DANTE 28) (Med)     NOT ROUTED (Hi)     to DAW input 47 -->
        <record pin="0x630" pin-h="0x0" input="46" input-m="54"/>   <!-- HW input 46 (DANTE 21) (Low)   54 (DANTE 29) (Med)     NOT ROUTED (Hi)     to DAW input 48 -->
        <record pin="0x631" pin-h="0x0" input="47" input-m="55"/>   <!-- HW input 47 (DANTE 22) (Low)   55 (DANTE 30) (Med)     NOT ROUTED (Hi)     to DAW input 49 -->
        <record pin="0x632" pin-h="0x0" input="48" input-m="56"/>   <!-- HW input 48 (DANTE 23) (Low)   56 (DANTE 31) (Med)     NOT ROUTED (Hi)     to DAW input 50 -->
        <record pin="0x633" pin-h="0x0" input="49" input-m="57"/>   <!-- HW input 49 (DANTE 24) (Low)   57 (DANTE 32) (Med)     NOT ROUTED (Hi)     to DAW input 51 -->
        <record pin="0x634" pin-m="0x0" input="50"/>                <!-- HW input 50 (DANTE 25) (Low)   NOT ROUTED (Med)        NOT ROUTED (Hi)     to DAW input 52 -->
        <record pin="0x635" pin-m="0x0" input="51"/>                <!-- HW input 51 (DANTE 26) (Low)   NOT ROUTED (Med)        NOT ROUTED (Hi)     to DAW input 53  -->
        <record pin="0x636" pin-m="0x0" input="52"/>                <!-- HW input 52 (DANTE 27) (Low)   NOT ROUTED (Med)        NOT ROUTED (Hi)     to DAW input 54  -->
        <record pin="0x637" pin-m="0x0" input="53"/>                <!-- HW input 53 (DANTE 28) (Low)   NOT ROUTED (Med)        NOT ROUTED (Hi)     to DAW input 55  -->
        <record pin="0x638" pin-m="0x0" input="54"/>                <!-- HW input 54 (DANTE 29) (Low)   NOT ROUTED (Med)        NOT ROUTED (Hi)     to DAW input 56  -->
        <record pin="0x639" pin-m="0x0" input="55"/>                <!-- HW input 55 (DANTE 30) (Low)   NOT ROUTED (Med)        NOT ROUTED (Hi)     to DAW input 57  -->
        <record pin="0x63a" pin-m="0x0" input="56"/>                <!-- HW input 56 (DANTE 31) (Low)   NOT ROUTED (Med)        NOT ROUTED (Hi)     to DAW input 58  -->
        <record pin="0x63b" pin-m="0x0" input="57"/>                <!-- HW input 57 (DANTE 32) (Low)   NOT ROUTED (Med)        NOT ROUTED (Hi)     to DAW input 59  -->
    </record-outputs>
    <monitoring offset-bytes="112" bytes="18" flexible-monitoring="true">
        <!-- For those under monitor control -->
        <hardware-controls>
            <group knob="encoder" strategy="red" exclusive="false" min-gain="-112.0" max-gain="0.0" snapshotable="true" >
                <mute offset-bytes="124" bits="1" command="2"/>
                <dim offset-bytes="124" bits="1" offset-bits="1" command="2"/>
                <gain offset-bytes="112" bits="16" command="6"/>
            </group>
            <group knob="encoder" strategy="red" exclusive="false" min-gain="-112.0" max-gain="0.0" snapshotable="true" >
                <mute offset-bytes="126" bits="1" command="2" />
                <dim offset-bytes="126" bits="1" offset-bits="1" command="2"/>
                <gain offset-bytes="116" bits="16" command="6"/>
            </group>
            <group knob="encoder" strategy="red" exclusive="false" min-gain="-112.0" max-gain="0.0" snapshotable="true" >
                <mute offset-bytes="128" bits="1" command="2"/>
                <dim offset-bytes="128" bits="1" offset-bits="1" command="2"/>
                <gain offset-bytes="120" bits="16" command="6"/>
            </group>
        </hardware-controls>
    </monitoring>
    <clocking>
        <clock-source>
            <enum value="Internal" option="24"/>
            <enum value="S/PDIF" option="3"/>
            <enum value="ADAT 1" option="0"/>
            <enum value="ADAT 2" option="1"/>
            <enum value="Wordclock" option="2"/>
            <enum value="Dante" option="4"/>
            <enum value="Loop Sync" option="5"/>
        </clock-source>
        <sample-rate>
            <enum value="44.1 kHz" option="44100"/>
            <enum value="48 kHz" option="48000"/>
            <enum value="88.2 kHz" option="88200"/>
            <enum value="96 kHz" option="96000"/>
            <enum value="176.4 kHz" option="176400"/>
            <enum value="192 kHz" option="192000"/>
        </sample-rate>
        <dante-preferred-master offset-bytes="264" bits="16" command="16" />
    </clocking>
    <settings>
        <buffer-size>
            <enum value="32"/>
            <enum value="64"/>
            <enum value="128"/>
            <enum value="256"/>
            <enum value="512"/>
            <enum value="1024"/>
            <enum value="2048"/>
        </buffer-size>
        <spdif-mode name="S/PDIF Source" num="0" >
            <mode>
                <enum value="RCA" option="2"/>
                <enum value="Optical" option="1"/>
            </mode>
            <input offset-bytes="244" bits="2" command="4"/>
            <output offset-bytes="236" bits="2" command="4"/>
        </spdif-mode>
        <meter-source offset-bytes="268" bits="8" command="14">
            <enum value="Analogue Inputs 1-8"   option="0" />
            <enum value="Analogue Outputs 3-10" option="2" />
            <enum value="S/PDIF Inputs 1-2"     option="4" />
            <enum value="S/PDIF Outputs 1-2"    option="5" />
            <enum value="ADAT Inputs 1-8"       option="6" />
            <enum value="ADAT Inputs 9-16"      option="7" />
            <enum value="ADAT Outputs 1-8"      option="8" />
            <enum value="ADAT Outputs 9-16"     option="9" />
            <enum value="Dante Inputs 1-8"      option="10" />
            <enum value="Dante Inputs 9-16"     option="11" />
            <enum value="Dante Inputs 17-24"    option="12" />
            <enum value="Dante Inputs 25-32"    option="13" />
            <enum value="Dante Outputs 1-8"     option="14" />
            <enum value="Dante Outputs 9-16"    option="15" />
            <enum value="Dante Outputs 17-24"   option="16" />
            <enum value="Dante Outputs 25-32"   option="17" />
        </meter-source>
        <standalone offset-bytes="248" bits="1"/>
        <host-mode offset-bytes="258" bits="1" command="18">
            <enum value="Thunderbolt" option="0"/>
            <enum value="Pro Tools" option="1"/>
        </host-mode>
        <delay-compensation>
            <preset>
                <enum value="Small"    option="1" />
                <enum value="Medium"   option="2" />
                <enum value="Large "   option="3" />
            </preset>
            <supported              offset-bytes="295" bits="8"/>
            <analogue-spdif-enabled offset-bytes="291" bits="8" command= "22" />
            <analogue-spdif-value   offset-bytes="292" bits="8" command= "22" />
            <protools-enabled       offset-bytes="293" bits="8" command= "22" />
            <protools-value         offset-bytes="294" bits="8" command= "22" />
        </delay-compensation>
        <phantom-persistence offset-bytes="271" bits="8" command="11" />
    </settings>
    <preset>
        <enum value="Default Routing"/>
        <enum value="Quick-Setup Routing"/>
        <enum value="System Playback"/>
        <enum value="Digital"/>
        <enum value="Analogue + Digital"/>
        <enum value="Dante"/>
        <enum value="Clear Custom Mix"/>
    </preset>
    <notifications>
        <notification name="input-gain"     value="0x00200000" />
        <notification name="input-other"    value="0x00400000" />
        <notification name="output"         value="0x00800000" />
        <notification name="global"         value="0x01000000" />
        <notification name="dante-persist"  value="0x02000000" />
        <notification name="dante-volatile" value="0x04000000" />
    </notifications>
    <appspace appspace-size="8508" app-ofs="316" appstorage-size="8192" flash-command="5"/>
    <routing num="154" num-m="138" num-h="98"/>
    <firmware start-notification="19" stop-notification="20">
        <segment name="App_Upgrade" nickname="App" version="1008" file="Red4PreApp.tca">
            <version offset-bytes="8" bits="32"/>
        </segment>
        
        <!-- One of the FPGA segments will be removed at runtime -->
        <segment name="FPGA_Upgrade" nickname="FPGA" version="657" file="fp001054_tb_top.bit">
            <version offset-bytes="12" bits="32"/>
            <type offset-bytes="16" bits="32"/>
        </segment>
        <segment name="FPGA_Upgrade" nickname="FPGA" version="951" file="Red4PreFPGA.bit">
            <version offset-bytes="12" bits="32"/>
            <type offset-bytes="16" bits="32"/>
        </segment>
        
        <segment name="Front_Upgrade" nickname="Front" version="231" file="Red4PreFrontPanel.bin">
            <version offset-bytes="20" bits="32"/>
        </segment>
    </firmware>
    <dante appspace-size="40" flash-command="5" >
        <available          offset-bytes="262"  bits="1" />
        <network-master     offset-bytes= "28"  bits="1" />
        <external-clock     offset-bytes= "29"  bits="1" />
        <primary-network    offset-bytes= "30"  bits="1" />
        <secondary-network  offset-bytes= "31"  bits="1" />
        <network-locked     offset-bytes= "32"  bits="1" />
        <dante-device-lock  offset-bytes= "33"  bits="1" />
        <mac-address        offset-bytes= "34"  bytes="6" />
    </dante>
    <pairable-devices>
        <pairable-device> <!-- R1 -->
            <paired-state offset-bytes="299" bits="2" command="24">
                <enum value="Not Paired" option="0"/>
                <enum value="Paired" option="1"/>
                <enum value="Pairing Lost" option="2"/>
            </paired-state>
            <heartbeat notification="25">
                <interval-seconds offset-bytes="300" bits="8"/>
            </heartbeat>
        </pairable-device>
    </pairable-devices>
</device>
