<?xml version='1.0' encoding='utf-8'?>
<MixxxControllerPreset mixxxVersion="1.11.0+" schemaVersion="1">
   <info>
       <name>Korg Nanokontrol 2 (alternative)</name>
       <author>Juan Pedro Bolivar Puente &lt;raskolnikov@gnu.org&gt;</author>
       <description>Controller mapping for Korg Nanokontrol 2.  Unlike
other scripts that are oriented as a secondary
controller, this provides basic deck controls, being
usable as primary interface.</description>
       <wiki>https://sinusoid.es/mixco/script/korg_nanokontrol2.mixco.html</wiki>
       <forums>https://github.com/arximboldi/mixco/issues</forums>
   </info>
   <controller id="korg_nanokontrol2">
       <scriptfiles>
           <file functionprefix="korg_nanokontrol2"
                 filename="korg_nanokontrol2.mixco.output.js"/>
       </scriptfiles>
       <controls>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x2e</key>
               <status>0xb0</status>
               <midino>0x2e</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x3a</key>
               <status>0xb0</status>
               <midino>0x3a</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x3b</key>
               <status>0xb0</status>
               <midino>0x3b</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x2b</key>
               <status>0xb0</status>
               <midino>0x2b</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x2c</key>
               <status>0xb0</status>
               <midino>0x2c</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x3c</key>
               <status>0xb0</status>
               <midino>0x3c</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x3d</key>
               <status>0xb0</status>
               <midino>0x3d</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x3e</key>
               <status>0xb0</status>
               <midino>0x3e</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x2a</key>
               <status>0xb0</status>
               <midino>0x2a</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x29</key>
               <status>0xb0</status>
               <midino>0x29</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x2d</key>
               <status>0xb0</status>
               <midino>0x2d</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>headVolume</key>
               <status>0xb0</status>
               <midino>0x6</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>headMix</key>
               <status>0xb0</status>
               <midino>0x5</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>crossfader</key>
               <status>0xb0</status>
               <midino>0x2</midino>
               <options>
                   <soft-takeover/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>balance</key>
               <status>0xb0</status>
               <midino>0x1</midino>
               <options>
                   <soft-takeover/>
               </options>
           </control>
           <control>
               <group>[Channel1]</group>
               <key>filterLow</key>
               <status>0xb0</status>
               <midino>0x13</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel1]</group>
               <key>filterMid</key>
               <status>0xb0</status>
               <midino>0x12</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel1]</group>
               <key>filterHigh</key>
               <status>0xb0</status>
               <midino>0x11</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel1]</group>
               <key>pregain</key>
               <status>0xb0</status>
               <midino>0x10</midino>
               <options>
                   <soft-takeover/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x23</key>
               <status>0xb0</status>
               <midino>0x23</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Channel1]</group>
               <key>cue_default</key>
               <status>0xb0</status>
               <midino>0x33</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel1]</group>
               <key>play</key>
               <status>0xb0</status>
               <midino>0x43</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel1]</group>
               <key>volume</key>
               <status>0xb0</status>
               <midino>0x3</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel1]</group>
               <key>bpm_tap</key>
               <status>0xb0</status>
               <midino>0x20</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel1]</group>
               <key>keylock</key>
               <status>0xb0</status>
               <midino>0x30</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel1]</group>
               <key>beats_translate_curpos</key>
               <status>0xb0</status>
               <midino>0x40</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel1]</group>
               <key>rate</key>
               <status>0xb0</status>
               <midino>0x0</midino>
               <options>
                   <soft-takeover/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x22</key>
               <status>0xb0</status>
               <midino>0x22</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x21</key>
               <status>0xb0</status>
               <midino>0x21</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x32</key>
               <status>0xb0</status>
               <midino>0x32</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x31</key>
               <status>0xb0</status>
               <midino>0x31</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x42</key>
               <status>0xb0</status>
               <midino>0x42</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x41</key>
               <status>0xb0</status>
               <midino>0x41</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Channel2]</group>
               <key>filterLow</key>
               <status>0xb0</status>
               <midino>0x14</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel2]</group>
               <key>filterMid</key>
               <status>0xb0</status>
               <midino>0x15</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel2]</group>
               <key>filterHigh</key>
               <status>0xb0</status>
               <midino>0x16</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel2]</group>
               <key>pregain</key>
               <status>0xb0</status>
               <midino>0x17</midino>
               <options>
                   <soft-takeover/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x24</key>
               <status>0xb0</status>
               <midino>0x24</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Channel2]</group>
               <key>cue_default</key>
               <status>0xb0</status>
               <midino>0x34</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel2]</group>
               <key>play</key>
               <status>0xb0</status>
               <midino>0x44</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel2]</group>
               <key>volume</key>
               <status>0xb0</status>
               <midino>0x4</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel2]</group>
               <key>bpm_tap</key>
               <status>0xb0</status>
               <midino>0x27</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel2]</group>
               <key>keylock</key>
               <status>0xb0</status>
               <midino>0x37</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel2]</group>
               <key>beats_translate_curpos</key>
               <status>0xb0</status>
               <midino>0x47</midino>
               <options>
                   <normal/>
               </options>
           </control>
           <control>
               <group>[Channel2]</group>
               <key>rate</key>
               <status>0xb0</status>
               <midino>0x7</midino>
               <options>
                   <soft-takeover/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x25</key>
               <status>0xb0</status>
               <midino>0x25</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x26</key>
               <status>0xb0</status>
               <midino>0x26</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x35</key>
               <status>0xb0</status>
               <midino>0x35</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x36</key>
               <status>0xb0</status>
               <midino>0x36</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x45</key>
               <status>0xb0</status>
               <midino>0x45</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
           <control>
               <group>[Master]</group>
               <key>korg_nanokontrol2.__handle_xb0_x46</key>
               <status>0xb0</status>
               <midino>0x46</midino>
               <options>
                   <script-binding/>
               </options>
           </control>
       </controls>
       <outputs>
           <output>
               <group>[Channel1]</group>
               <key>pfl</key>
               <status>0xb0</status>
               <midino>0x23</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
           <output>
               <group>[Channel1]</group>
               <key>cue_indicator</key>
               <status>0xb0</status>
               <midino>0x33</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
           <output>
               <group>[Channel1]</group>
               <key>play</key>
               <status>0xb0</status>
               <midino>0x43</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
           <output>
               <group>[Channel1]</group>
               <key>beat_active</key>
               <status>0xb0</status>
               <midino>0x20</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
           <output>
               <group>[Channel1]</group>
               <key>keylock</key>
               <status>0xb0</status>
               <midino>0x30</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
           <output>
               <group>[Channel1]</group>
               <key>beats_translate_curpos</key>
               <status>0xb0</status>
               <midino>0x40</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
           <output>
               <group>[Channel2]</group>
               <key>pfl</key>
               <status>0xb0</status>
               <midino>0x24</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
           <output>
               <group>[Channel2]</group>
               <key>cue_indicator</key>
               <status>0xb0</status>
               <midino>0x34</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
           <output>
               <group>[Channel2]</group>
               <key>play</key>
               <status>0xb0</status>
               <midino>0x44</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
           <output>
               <group>[Channel2]</group>
               <key>beat_active</key>
               <status>0xb0</status>
               <midino>0x27</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
           <output>
               <group>[Channel2]</group>
               <key>keylock</key>
               <status>0xb0</status>
               <midino>0x37</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
           <output>
               <group>[Channel2]</group>
               <key>beats_translate_curpos</key>
               <status>0xb0</status>
               <midino>0x47</midino>
               <on>0x7f</on>
               <off>0x0</off>
               <minimum>1</minimum>
           </output>
       </outputs>
   </controller>
</MixxxControllerPreset>
