<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE channel [
  <!ENTITY noteOn "0x94">
  <!ENTITY noteOff "0x84">
  <!ENTITY CC "0xB4">
]>
<MixxxControllerPreset mixxxVersion="2.2.0" schemaVersion="1">
    <info>
        <name>Behringer CMD MM-1</name>
        <author>Swiftb0y</author>
        <description>4 deck mapping with options for controlling effect units. Refer to the Mixxx wiki page for how to configure it to control effect units.</description>
        <forums>https://www.mixxx.org/forums/viewtopic.php?f=7&amp;t=9276</forums>
        <manual>behringer_cmd_mm_1</manual>
    </info>
    <controller id="CMD">
        <scriptfiles>
            <file filename="common-controller-scripts.js"/>
            <file filename="lodash.mixxx.js"/>
            <file filename="midi-components-0.0.js"/>
            <file functionprefix="CMDMM" filename="Behringer-CMD-MM1-scripts.js"/>
        </scriptfiles>
        <controls>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[1].knobUnit.knobs[2].input</key>
                <description>knob[2,3]</description>
                <status>&CC;</status>
                <midino>0x0F</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[3].knobUnit.knobs[0].input</key>
                <description>knob[4,1]</description>
                <status>&CC;</status>
                <midino>0x09</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Channel4]</group>
                <key>CMDMM.Decks[3].buttonCue.input</key>
                <description>pfl</description>
                <status>&noteOn;</status>
                <midino>0x33</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[EffectRack1_EffectUnit1]</group>
                <key>CMDMM.Decks[1].button1.input</key>
                <description>group_[Channel2]_enable</description>
                <status>&noteOn;</status>
                <midino>0x17</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Channel1]</group>
                <key>CMDMM.Decks[0].fader.input</key>
                <description>volume</description>
                <status>&CC;</status>
                <midino>0x30</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[2].knobUnit.knobs[3].input</key>
                <description>knob[3,4]</description>
                <status>&CC;</status>
                <midino>0x14</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Master]</group>
                <key>CMDMM.shiftButton.input</key>
                <description>shiftOff</description>
                <status>&noteOff;</status>
                <midino>0x10</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Library]</group>
                <key>CMDMM.libraryEncoder.input</key>
                <description>left/right library select encoder</description>
                <status>&CC;</status>
                <midino>0x03</midino>
                <options>
                    <selectknob/>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Master]</group>
                <key>CMDMM.ctrlButton.input</key>
                <description>ctrlOn</description>
                <status>&noteOn;</status>
                <midino>0x11</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[0].knobUnit.knobs[2].input</key>
                <description>knob[1,3]</description>
                <status>&CC;</status>
                <midino>0x0E</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[EffectRack1_EffectUnit2]</group>
                <key>CMDMM.Decks[2].button2.input</key>
                <description>group_[Channel3]_enable</description>
                <status>&noteOn;</status>
                <midino>0x1C</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Master]</group>
                <key>CMDMM.crossfader.input</key>
                <description>crossfader</description>
                <status>&CC;</status>
                <midino>0x40</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[2].knobUnit.knobs[0].input</key>
                <description>knob[3,1]</description>
                <status>&CC;</status>
                <midino>0x08</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Channel3]</group>
                <key>CMDMM.Decks[2].buttonCue.input</key>
                <description>pfl</description>
                <status>&noteOn;</status>
                <midino>0x32</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[1].knobUnit.knobs[3].input</key>
                <description>knob[2,4]</description>
                <status>&CC;</status>
                <midino>0x13</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[EffectRack1_EffectUnit2]</group>
                <key>CMDMM.out2.input</key>
                <description>Master Gain</description>
                <status>&CC;</status>
                <midino>0x02</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Master]</group>
                <key>CMDMM.shiftButton.input</key>
                <description>shiftOn</description>
                <status>&noteOn;</status>
                <midino>0x10</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[3].knobUnit.knobs[1].input</key>
                <description>knob[4,2]</description>
                <status>&CC;</status>
                <midino>0x0D</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[EffectRack1_EffectUnit1]</group>
                <key>CMDMM.Decks[2].button1.input</key>
                <description>group_[Channel3]_enable</description>
                <status>&noteOn;</status>
                <midino>0x1B</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Channel2]</group>
                <key>CMDMM.Decks[1].buttonCue.input</key>
                <description>pfl</description>
                <status>&noteOn;</status>
                <midino>0x31</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[1].knobUnit.knobs[0].input</key>
                <description>knob[2,1]</description>
                <status>&CC;</status>
                <midino>0x07</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[0].knobUnit.knobs[3].input</key>
                <description>knob[1,4]</description>
                <status>&CC;</status>
                <midino>0x12</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[EffectRack1_EffectUnit2]</group>
                <key>CMDMM.Decks[3].button2.input</key>
                <description>group_[Channel4]_enable</description>
                <status>&noteOn;</status>
                <midino>0x20</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Master]</group>
                <key>CMDMM.out1.input</key>
                <description>Master balance</description>
                <status>&CC;</status>
                <midino>0x01</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[2].knobUnit.knobs[1].input</key>
                <description>knob[3,2]</description>
                <status>&CC;</status>
                <midino>0x0C</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Channel4]</group>
                <key>CMDMM.Decks[3].fader.input</key>
                <description>volume</description>
                <status>&CC;</status>
                <midino>0x33</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Channel1]</group>
                <key>CMDMM.Decks[0].buttonCue.input</key>
                <description>pfl</description>
                <status>&noteOn;</status>
                <midino>0x30</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[0].knobUnit.knobs[0].input</key>
                <description>knob[1,1]</description>
                <status>&CC;</status>
                <midino>0x06</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[EffectRack1_EffectUnit2]</group>
                <key>CMDMM.Decks[0].button2.input</key>
                <description>group_[Channel1]_enable</description>
                <status>&noteOn;</status>
                <midino>0x14</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[3].knobUnit.knobs[2].input</key>
                <description>knob[4,3]</description>
                <status>&CC;</status>
                <midino>0x11</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[EffectRack1_EffectUnit1]</group>
                <key>CMDMM.Decks[3].button1.input</key>
                <description>group_[Channel4]_enable</description>
                <status>&noteOn;</status>
                <midino>0x1F</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Library]</group>
                <key>CMDMM.libraryButton.input</key>
                <description>Middle click libraryEncoder</description>
                <status>&noteOn;</status>
                <midino>0x03</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Library]</group>
                <key>CMDMM.libraryButton.input</key>
                <description>Middle click libraryEncoder</description>
                <status>&noteOff;</status>
                <midino>0x03</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[1].knobUnit.knobs[1].input</key>
                <description>knob[2,2]</description>
                <status>&CC;</status>
                <midino>0x0B</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Channel3]</group>
                <key>CMDMM.Decks[2].fader.input</key>
                <description>volume</description>
                <status>&CC;</status>
                <midino>0x32</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Master]</group>
                <key>CMDMM.cueMix.input</key>
                <description>script pfl mix</description>
                <status>&CC;</status>
                <midino>0x05</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[EffectRack1_EffectUnit1]</group>
                <key>CMDMM.Decks[0].button1.input</key>
                <description>group_[Channel1]_enable</description>
                <status>&noteOn;</status>
                <midino>0x13</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[2].knobUnit.knobs[2].input</key>
                <description>knob[3,3]</description>
                <status>&CC;</status>
                <midino>0x10</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[0].knobUnit.knobs[1].input</key>
                <description>knob[1,2]</description>
                <status>&CC;</status>
                <midino>0x0A</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[EffectRack1_EffectUnit2]</group>
                <key>CMDMM.Decks[1].button2.input</key>
                <description>group_[Channel2]_enable</description>
                <status>&noteOn;</status>
                <midino>0x18</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Channel2]</group>
                <key>CMDMM.Decks[1].fader.input</key>
                <description>volume</description>
                <status>&CC;</status>
                <midino>0x31</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[MixerEQ]</group>
                <key>CMDMM.Decks[3].knobUnit.knobs[3].input</key>
                <description>knob[4,4]</description>
                <status>&CC;</status>
                <midino>0x15</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Master]</group>
                <key>CMDMM.ctrlButton.input</key>
                <description>ctrl</description>
                <status>&noteOff;</status>
                <midino>0x11</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Master]</group>
                <key>CMDMM.cueVol.input</key>
                <description>inscript pfl volume</description>
                <status>&CC;</status>
                <midino>0x04</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
            <control>
                <group>[Master]</group>
                <key>CMDMM.middleButton.input</key>
                <description>Button in the Middle (shift on other mappings)</description>
                <status>&noteOn;</status>
                <midino>0x12</midino>
                <options>
                    <script-binding/>
                </options>
            </control>
        </controls>
        <outputs/>
    </controller>
</MixxxControllerPreset>
