<?xml version="1.0" encoding="UTF-8"?>
<ArdourMIDIBindings version="1.0.0" name="Novation LaunchKey 49">

<!-- This mapping relies on the Basic MIDI preset in the LaunchKey 49. -->
<!-- http://mixbus.harrisonconsoles.com/forum/thread-5874-post-34958.html -->

<DeviceInfo bank-size="8"/>

<!-- Transport Control -->

<Binding channel="1" ctl="112" action="Transport/Rewind"/>
<Binding channel="1" ctl="113" action="Transport/Forward"/>
<Binding channel="1" ctl="114" function="transport-stop"/>
<Binding channel="1" ctl="115" function="transport-roll"/>
<Binding channel="1" ctl="116" function="loop-toggle"/>
<Binding channel="1" ctl="117" function="toggle-rec-enable"/>

<!-- Gain controls. Faders are mapped to faders. -->

<Binding channel="1" ctl="41" uri="/route/gain B1"/>
<Binding channel="1" ctl="42" uri="/route/gain B2"/>
<Binding channel="1" ctl="43" uri="/route/gain B3"/>
<Binding channel="1" ctl="44" uri="/route/gain B4"/>
<Binding channel="1" ctl="45" uri="/route/gain B5"/>
<Binding channel="1" ctl="46" uri="/route/gain B6"/>
<Binding channel="1" ctl="47" uri="/route/gain B7"/>
<Binding channel="1" ctl="48" uri="/route/gain B8"/>
<Binding channel="1" ctl="7" uri="/bus/gain master"/>

<!-- Pan controls. Encoders are mapped to pan direction. -->
<!-- There doesn't seem to be a way to map encoders to pan width. -->

<Binding channel="1" ctl="21" uri="/route/pandirection B1"/>
<Binding channel="1" ctl="22" uri="/route/pandirection B2"/>
<Binding channel="1" ctl="23" uri="/route/pandirection B3"/>
<Binding channel="1" ctl="24" uri="/route/pandirection B4"/>
<Binding channel="1" ctl="25" uri="/route/pandirection B5"/>
<Binding channel="1" ctl="26" uri="/route/pandirection B6"/>
<Binding channel="1" ctl="27" uri="/route/pandirection B7"/>
<Binding channel="1" ctl="28" uri="/route/pandirection B8"/>

<!-- Round buttons beside transport -->
<Binding channel="1" ctl="104" action="Editor/select-next-route"/>
<Binding channel="1" ctl="105" action="Editor/select-prev-route"/>

<!-- Status controls -->
<!-- Status buttons are mapped to solo toggles. -->

<Binding channel="1" ctl="51" uri="/route/solo B1"/>
<Binding channel="1" ctl="52" uri="/route/solo B2"/>
<Binding channel="1" ctl="53" uri="/route/solo B3"/>
<Binding channel="1" ctl="54" uri="/route/solo B4"/>
<Binding channel="1" ctl="55" uri="/route/solo B5"/>
<Binding channel="1" ctl="56" uri="/route/solo B6"/>
<Binding channel="1" ctl="57" uri="/route/solo B7"/>
<Binding channel="1" ctl="58" uri="/route/solo B8"/>
<Binding channel="1" ctl="59" uri="/bus/mute master"/>"

<!-- Bank Control -->

<Binding channel="1" ctl="103" function="prev-bank"/>
<Binding channel="1" ctl="102" function="next-bank"/>

</ArdourMIDIBindings> 
