<?xml version="1.0" encoding="UTF-8"?>
<ArdourMIDIBindings version="1.0.0" name="M-Audio Oxygen 61 v4">
  <!-- 2017-02-12 Ashley Kitson -->
  <!-- Preset 1 in the Oxygen 61 v4 after factory reset-->

<!--	Values are decimal
	Faders: Channel 1 Controller change event
	C1: 20
	C2: 21
	C3: 71
	C4: 72
	C5: 25
	C6: 73
	C7: 74
	C8: 70
	C9: 63

	Pots: Channel 1 Controller change event
	C10: 22
	C11: 23
	C12: 61
	C13: 24
	C14: 26
	C15: 27
	C16: 62
	C17: 95

	Buttons: Channel 1 Program change event
	C18: 0
	C19: 1
	C20: 2
	C21: 3
	C22: 4
	C23: 5
	C24: 6
	C25: 7
	C26: 8
	Buttons: Channel 1 Controller change event
	C27: 113
	C28: 116
	C29: 117
	C30: 118

	Pads: Channel 10 Note event
	1: 36 Bass drum
	2: 38 Acoustic snare
	3: 42 Closed hi-hat
	4: 46 Open hi-hat
	5: 50 Hi tom
	6: 45 Lo tom
	7: 51 Ride cymbal
	8: 49 Crash cymbal


-->

  <!-- Faders, mapped to track gain 1-8 and Master -->
  <Binding channel="1" ctl="20" uri="/route/gain 1"/>
  <Binding channel="1" ctl="21" uri="/route/gain 2"/>
  <Binding channel="1" ctl="71" uri="/route/gain 3"/>
  <Binding channel="1" ctl="72" uri="/route/gain 4"/>
  <Binding channel="1" ctl="25" uri="/route/gain 5"/>
  <Binding channel="1" ctl="73" uri="/route/gain 6"/>
  <Binding channel="1" ctl="74" uri="/route/gain 7"/>
  <Binding channel="1" ctl="70" uri="/route/gain 8"/>
  <Binding channel="1" ctl="63" uri="/bus/gain master"/>

  <!-- Buttons below the faders, mapped to track solo 1-8 -->
  <Binding channel="1" pgm="0" uri="/route/solo 1"/>
  <Binding channel="1" pgm="1" uri="/route/solo 2"/>
  <Binding channel="1" pgm="2" uri="/route/solo 3"/>
  <Binding channel="1" pgm="3" uri="/route/solo 4"/>
  <Binding channel="1" pgm="4" uri="/route/solo 5"/>
  <Binding channel="1" pgm="5" uri="/route/solo 6"/>
  <Binding channel="1" pgm="6" uri="/route/solo 7"/>
  <Binding channel="1" pgm="7" uri="/route/solo 8"/>
  <!-- <Binding channel="1" pgm="8" uri="/bus/mute master"/> -->

  <!-- Encoders, mapped to pan direction -->
  <Binding channel="1" ctl="22" uri="/route/pandirection 1"/>
  <Binding channel="1" ctl="23" uri="/route/pandirection 2"/>
  <Binding channel="1" ctl="61" uri="/route/pandirection 3"/>
  <Binding channel="1" ctl="24" uri="/route/pandirection 4"/>
  <Binding channel="1" ctl="26" uri="/route/pandirection 5"/>
  <Binding channel="1" ctl="27" uri="/route/pandirection 6"/>
  <Binding channel="1" ctl="62" uri="/route/pandirection 7"/>
  <Binding channel="1" ctl="95" uri="/route/pandirection 8"/>

  <!-- Transport controls -->
  <Binding channel="1" ctl="113" function="loop-toggle"/>
  <!--<Binding channel="16" ctl="115" function="transport-end"/> -->
  <Binding channel="1" ctl="116" function="transport-stop"/>
  <Binding channel="1" ctl="117" function="transport-roll"/>
  <Binding channel="1" ctl="118" function="rec-enable"/>
  <!-- bind c26 to transport start -->
  <Binding channel="1" pgm="8" function="transport-start"/>

</ArdourMIDIBindings>
