<?xml version="1.0" encoding="UTF-8"?>
<ArdourMIDIBindings version="1.0.0" name="M-Audio Axiom 49 MkII">

<!-- 2015-04-25 Edgar Aichinger: initial version for Axiom 61 -->
<!-- 2024-10-14 Francois-Xavier Thomas: adaptation for Axiom 49 MkII -->
<!-- I'm assuming Factory default, preset/patch 1 in the Axiom 49 MkII. -->

<!-- Faders, mapped to track faders 1-8 and Master -->

  <Binding channel="1" ctl="74" uri="/route/gain 1"/>
  <Binding channel="1" ctl="71" uri="/route/gain 2"/>
  <Binding channel="1" ctl="91" uri="/route/gain 3"/>
  <Binding channel="1" ctl="93" uri="/route/gain 4"/>
  <Binding channel="1" ctl="73" uri="/route/gain 5"/>
  <Binding channel="1" ctl="72" uri="/route/gain 6"/>
  <Binding channel="1" ctl="5" uri="/route/gain 7"/>
  <Binding channel="1" ctl="84" uri="/route/gain 8"/>
  <Binding channel="1" ctl="7" uri="/bus/gain master"/>

<!-- Zone/Group buttons, below the faders -->
<!-- these toggle record for the corresponding tracks (1-8) and metronome/click on the rightmost button -->

  <Binding channel="1" pgm="0" uri="/route/recenable 1"/>
  <Binding channel="1" pgm="1" uri="/route/recenable 2"/>
  <Binding channel="1" pgm="2" uri="/route/recenable 3"/>
  <Binding channel="1" pgm="3" uri="/route/recenable 4"/>
  <Binding channel="1" pgm="4" uri="/route/recenable 5"/>
  <Binding channel="1" pgm="5" uri="/route/recenable 6"/>
  <Binding channel="1" pgm="6" uri="/route/recenable 7"/>
  <Binding channel="1" pgm="7" uri="/route/recenable 8"/>
  <Binding channel="1" pgm="8" action="Transport/ToggleClick"/>

<!-- Encoders, mapped to pan direction. -->

  <Binding channel="1" ctl="75" uri="/route/pandirection 1"/>
  <Binding channel="1" ctl="76" uri="/route/pandirection 2"/>
  <Binding channel="1" ctl="92" uri="/route/pandirection 3"/>
  <Binding channel="1" ctl="95" uri="/route/pandirection 4"/>
  <Binding channel="1" ctl="10" uri="/route/pandirection 5"/>
  <Binding channel="1" ctl="77" uri="/route/pandirection 6"/>
  <Binding channel="1" ctl="78" uri="/route/pandirection 7"/>
  <Binding channel="1" ctl="79" uri="/route/pandirection 8"/>

<!-- Transport controls -->

  <Binding channel="16" ctl="114" action="Common/jump-backward-to-mark"/>
  <Binding channel="16" ctl="115" action="Common/jump-forward-to-mark"/>
  <Binding channel="16" ctl="116" function="transport-stop"/>
  <Binding channel="16" ctl="117" function="transport-roll"/>
  <Binding channel="16" ctl="113" function="loop-toggle"/>
  <Binding channel="16" ctl="118" function="toggle-rec-enable"/>

</ArdourMIDIBindings>