<?xml version="1.0" encoding="UTF-8"?>
<ArdourMIDIBindings version="1.0.0" name="X-Touch Mini Mix v1">

<!--
		******	POUR QUE CE MAPPING FONCTIONNE CORRECTEMENT,
		******	IL FAUT UTILISER LA X-TOUCH MINI EN COMPLEMENT DE PURE DATA, AVEC LE PROJET CORRESPONDANT !
		******	Pure Data doit être configuré pour avoir 2 ports MIDI en entrée et en sortie.
		******	Le signal MIDI doit être routé comme suit :
		******	X-Touch mini MIDI out -> Pure Data port 1 in
		******	Pure Data port 1 out -> Ardour MIDI control in
		******	Ardour MIDI control out -> Pure Data port 2	in
		******	Pure Data port 2 out -> X-Touch mini MIDI in.
		******	Les pistes sur Ardour doivent avoir, en insert et pré-fader, un a-comp et un X42-EQ, dans cet ordre,
		******	pour que les "presets" dédiés au compresseur (2) et à l'EQ (3-5) fonctionnent correctement.
-->

  <DeviceInfo bank-size="8" />

<!-- LAYER A -->

	<!-- Encodeurs (ctl 1-8) = volume des pistes -->
	
		<Binding channel="11" ctl="1"	uri="/route/gain	B1" />
		<Binding channel="11" ctl="2"	uri="/route/gain	B2" />
		<Binding channel="11" ctl="3"	uri="/route/gain	B3" />
		<Binding channel="11" ctl="4"	uri="/route/gain	B4" />
		<Binding channel="11" ctl="5"	uri="/route/gain	B5" />
		<Binding channel="11" ctl="6"	uri="/route/gain	B6" />
		<Binding channel="11" ctl="7"	uri="/route/gain	B7" />
		<Binding channel="11" ctl="8"	uri="/route/gain	B8" />
		
		<!-- Encodeurs (ctl 101-108) = pan des pistes (avec le "pan mode" activé) -->
	
		<Binding channel="11" ctl="101"	uri="/route/pandirection	B1" />
		<Binding channel="11" ctl="102"	uri="/route/pandirection	B2" />
		<Binding channel="11" ctl="103"	uri="/route/pandirection	B3" />
		<Binding channel="11" ctl="104"	uri="/route/pandirection	B4" />
		<Binding channel="11" ctl="105"	uri="/route/pandirection	B5" />
		<Binding channel="11" ctl="106"	uri="/route/pandirection	B6" />
		<Binding channel="11" ctl="107"	uri="/route/pandirection	B7" />
		<Binding channel="11" ctl="108"	uri="/route/pandirection	B8" />
    
	<!-- Boutons rangée du "milieu" (note 8-15) = solos -->

		<Binding channel="11" note="8"	uri="/route/solo	B1"	/>
		<Binding channel="11" note="9"	uri="/route/solo	B2"	/>
		<Binding channel="11" note="10"	uri="/route/solo	B3"	/>
		<Binding channel="11" note="11"	uri="/route/solo	B4"	/>
		<Binding channel="11" note="12"	uri="/route/solo	B5"	/>
		<Binding channel="11" note="13"	uri="/route/solo	B6"	/>
		<Binding channel="11" note="14"	uri="/route/solo	B7"	/>
		<Binding channel="11" note="15"	uri="/route/solo	B8"	/>

	<!-- Boutons rangée du bas (note 16-23), layer A -->

		<Binding channel="11" note="16" function="prev-bank"/>
		<Binding channel="11" note="17" function="next-bank"/>
		<Binding channel="11" note="18" action="Common/jump-backward-to-mark"/> 	<!-- Marqueur précédent -->
		<Binding channel="11" note="19" action="Common/jump-forward-to-mark"/> 		<!-- Marqueur suivant -->
		<Binding channel="11" note="20" action="Transport/Loop"/>					<!-- Lire la boucle -->
		<Binding channel="11" note="21" function="transport-stop"/>					<!-- Stop -->
		<Binding channel="11" note="22" function="transport-roll"/>					<!-- Play -->

		<!-- La note 23 (bouton bas droite) est inactive puisqu'elle sert à activer le "pan mode" sur le layer A -->

	<!-- Fader (ctl 9) = Master gain -->

		<Binding channel="11" ctl="9"   uri="/bus/gain master"	/>



<!-- LAYER B -->

	<!-- PRESET 1 : TRACK - fader 10, encodeurs 11-18, push 24-31 -->

		<!-- Fader (ctl 10) -->

			<Binding channel="11" ctl="10"	uri="/route/gain				S1"			/>		<!-- Volume de la piste -->

		<!-- Encodeurs (ctl 11-18) -->

			<Binding channel="11" ctl="11"	uri="/route/trim				S1"			/>		<!-- Trim -->
			<Binding channel="11" ctl="12"	uri="/route/pandirection		S1"			/>		<!-- Pan -->
			<Binding channel="11" ctl="13"	uri="/route/panwidth			S1"			/>		<!-- Width -->
			<Binding channel="11" ctl="14"	uri="/route/send/gain			S1 1" 		/>		<!-- Send 1 -->
			<Binding channel="11" ctl="15"	uri="/route/send/gain			S1 2" 		/>		<!-- Send 2 -->
			<Binding channel="11" ctl="16"	uri="/route/send/gain			S1 3" 		/>		<!-- Send 3 -->
			<Binding channel="11" ctl="17"	uri="/route/send/gain			S1 4" 		/>		<!-- Send 4 -->
			<Binding channel="11" ctl="18"	uri="/route/send/gain			S1 5" 		/>		<!-- Send 5 -->

		<!-- Push  (note 24-31) -->

<!--		<Binding channel="11" note="24"	uri="..."	/>
			<Binding channel="11" note="25"	uri="..."	/>
			<Binding channel="11" note="26"	uri="..."	/>
			<Binding channel="11" note="27"	uri="..."	/>
			<Binding channel="11" note="28"	uri="..."	/>
			<Binding channel="11" note="29"	uri="..."	/>
			<Binding channel="11" note="30"	uri="..."	/>
			<Binding channel="11" note="31"	uri="..."	/>		-->


	<!-- PRESET 2 : A-COMP -->

		<!-- Fader (ctl 20) -->

			<Binding channel="11" ctl="20"	uri="/route/gain				S1"			/>		<!-- Volume de la piste -->

		<!-- Encodeurs (ctl 21-28) -->

<!--		<Binding channel="11" ctl="21"	uri="/route/plugin/parameter	S1 1 x"		/>		Pas de in gain -->
			<Binding channel="11" ctl="22"	uri="/route/plugin/parameter	S1 1 5"		/>		<!-- Threshold -->
			<Binding channel="11" ctl="23"	uri="/route/plugin/parameter	S1 1 4"		/>		<!-- Ratio - -->
			<Binding channel="11" ctl="24"	uri="/route/plugin/parameter	S1 1 3"		/>		<!-- Knee -->
			<Binding channel="11" ctl="25"	uri="/route/plugin/parameter	S1 1 1"		/>		<!-- Attack -->
			<Binding channel="11" ctl="26"	uri="/route/plugin/parameter	S1 1 2"		/>		<!-- Release -->
			<Binding channel="11" ctl="27"	uri="/route/plugin/parameter	S1 1 6"		/>		<!-- Makeup -->
<!--		<Binding channel="11" ctl="28"	uri="/route/plugin/parameter	S1 1 x"		/>		Pas de out gain -->

		<!-- Push (note 51-58) -->

			<Binding channel="11" note="51"	uri="/route/plugin/parameter	S1 1 11"	/>		<!-- FX bypass sur tous les push -->
			<Binding channel="11" note="52"	uri="/route/plugin/parameter	S1 1 11"	/>
			<Binding channel="11" note="53"	uri="/route/plugin/parameter	S1 1 11"	/>
			<Binding channel="11" note="54"	uri="/route/plugin/parameter	S1 1 11"	/>
			<Binding channel="11" note="55"	uri="/route/plugin/parameter	S1 1 11"	/>
			<Binding channel="11" note="56"	uri="/route/plugin/parameter	S1 1 11"	/>
			<Binding channel="11" note="57"	uri="/route/plugin/parameter	S1 1 11"	/>
			<Binding channel="11" note="58"	uri="/route/plugin/parameter	S1 1 11"	/>


	<!-- PRESET 3 : X42 EQ - low & high pass -->

		<!-- Fader (ctl 30) -->

			<Binding channel="11" ctl="30"	uri="/route/gain				S1"			/>		<!-- Volume de la piste -->

		<!-- Encodeurs (ctl 31-38) -->

<!--		<Binding channel="11" ctl="31"	uri="/route/plugin/parameter	S1 2 x"		/>		Pas de in gain -->
			<Binding channel="11" ctl="32"	uri="/route/plugin/parameter	S1 2 8"		/>		<!-- High pass freq -->
			<Binding channel="11" ctl="33"	uri="/route/plugin/parameter	S1 2 9"		/>		<!-- High pass Q - -->
<!--		<Binding channel="11" ctl="34"	uri="/route/plugin/parameter	S1 2 x"		/>	 	-->
			<Binding channel="11" ctl="35"	uri="/route/plugin/parameter	S1 2 11"	/>		<!-- Low pass freq -->
			<Binding channel="11" ctl="36"	uri="/route/plugin/parameter	S1 2 12"	/>		<!-- Low pass Q -->
<!--		<Binding channel="11" ctl="37"	uri="/route/plugin/parameter	S1 2 x"		/>	 	-->
			<Binding channel="11" ctl="38"	uri="/route/plugin/parameter	S1 2 4"		/>		<!-- Out gain -->

		<!-- Push (note 61-68) -->

			<Binding channel="11" note="61"	uri="/route/plugin/parameter	S1 2 3"		/>		<!-- FX bypass -->
			<Binding channel="11" note="62"	uri="/route/plugin/parameter	S1 2 7"		/>		<!-- High pass bypass -->
			<Binding channel="11" note="63"	uri="/route/plugin/parameter	S1 2 7"		/>		<!-- High pass bypass -->
			<Binding channel="11" note="64"	uri="/route/plugin/parameter	S1 2 7"		/>		<!-- High pass bypass -->
			<Binding channel="11" note="65"	uri="/route/plugin/parameter	S1 2 10"	/>		<!-- Low pass bypass -->
			<Binding channel="11" note="66"	uri="/route/plugin/parameter	S1 2 10"	/>		<!-- Low pass bypass -->
			<Binding channel="11" note="67"	uri="/route/plugin/parameter	S1 2 10"	/>		<!-- Low pass bypass -->
			<Binding channel="11" note="68"	uri="/route/plugin/parameter	S1 2 3"		/>		<!-- FX bypass -->


	<!-- PRESET 4 : X42 EQ - low & high shelves -->

		<!-- Fader (ctl 40) -->

			<Binding channel="11" ctl="40"	uri="/route/gain				S1"			/>		<!-- Volume de la piste -->

		<!-- Encodeurs (ctl 41-48) -->

<!--		<Binding channel="11" ctl="41"	uri="/route/plugin/parameter	S1 2 x"		/>		Pas de in gain -->
			<Binding channel="11" ctl="42"	uri="/route/plugin/parameter	S1 2 14"	/>		<!-- Low shelf freq -->
			<Binding channel="11" ctl="43"	uri="/route/plugin/parameter	S1 2 15"	/>		<!-- Low shelf Q - -->
			<Binding channel="11" ctl="44"	uri="/route/plugin/parameter	S1 2 16"	/>	 	<!-- Low shelf gain-->
			<Binding channel="11" ctl="45"	uri="/route/plugin/parameter	S1 2 34"	/>		<!-- High shelf freq -->
			<Binding channel="11" ctl="46"	uri="/route/plugin/parameter	S1 2 35"	/>		<!-- High shelf Q -->
			<Binding channel="11" ctl="47"	uri="/route/plugin/parameter	S1 2 36"	/> 		<!-- High shelf freq -->
			<Binding channel="11" ctl="48"	uri="/route/plugin/parameter	S1 2 4"		/>		<!-- Out gain -->

		<!-- Push (note 71-78) -->

			<Binding channel="11" note="71"	uri="/route/plugin/parameter	S1 2 3"		/>		<!-- FX bypass -->
			<Binding channel="11" note="72"	uri="/route/plugin/parameter	S1 2 13"	/>		<!-- Low shelf bypass -->
			<Binding channel="11" note="73"	uri="/route/plugin/parameter	S1 2 13"	/>		<!-- Low shelf bypass -->
			<Binding channel="11" note="74"	uri="/route/plugin/parameter	S1 2 13"	/>		<!-- Low shelf bypass -->
			<Binding channel="11" note="75"	uri="/route/plugin/parameter	S1 2 33"	/>		<!-- High shelf bypass -->
			<Binding channel="11" note="76"	uri="/route/plugin/parameter	S1 2 33"	/>		<!-- High shelf bypass -->
			<Binding channel="11" note="77"	uri="/route/plugin/parameter	S1 2 33"	/>		<!-- High shelf bypass -->
			<Binding channel="11" note="78"	uri="/route/plugin/parameter	S1 2 3"		/>		<!-- FX bypass -->


	<!-- PRESET 5 : X42 EQ - bands -->

		<!-- Fader (ctl 50) -->

			<Binding channel="11" ctl="50"	uri="/route/gain				S1"			/>		<!-- Volume de la piste -->

		<!-- Encodeurs (ctl 51-58) -->

<!--		<Binding channel="11" ctl="51"	uri="/route/plugin/parameter	S1 2 x"		/>		Pas de in gain -->
			<Binding channel="11" ctl="52"	uri="/route/plugin/parameter	S1 2 22"	/>		<!-- Band 2 freq -->
			<Binding channel="11" ctl="53"	uri="/route/plugin/parameter	S1 2 23"	/>		<!-- Band 2 Q - -->
			<Binding channel="11" ctl="54"	uri="/route/plugin/parameter	S1 2 24"	/>	 	<!-- Band 2 gain-->
			<Binding channel="11" ctl="55"	uri="/route/plugin/parameter	S1 2 26"	/>		<!-- Band 3 freq -->
			<Binding channel="11" ctl="56"	uri="/route/plugin/parameter	S1 2 27"	/>		<!-- Band 3 Q -->
			<Binding channel="11" ctl="57"	uri="/route/plugin/parameter	S1 2 28"	/> 		<!-- Band 3 freq -->
			<Binding channel="11" ctl="58"	uri="/route/plugin/parameter	S1 2 4"		/>		<!-- Out gain -->
	
		<!-- Push (ctl 81-88) -->

			<Binding channel="11" note="81"	uri="/route/plugin/parameter	S1 2 3"		/>		<!-- FX bypass -->
			<Binding channel="11" note="82"	uri="/route/plugin/parameter	S1 2 21"	/>		<!-- Band 2 bypass -->
			<Binding channel="11" note="83"	uri="/route/plugin/parameter	S1 2 21"	/>		<!-- Band 2 bypass -->
			<Binding channel="11" note="84"	uri="/route/plugin/parameter	S1 2 21"	/>		<!-- Band 2 bypass -->
			<Binding channel="11" note="85"	uri="/route/plugin/parameter	S1 2 25"	/>		<!-- Band 3 bypass -->
			<Binding channel="11" note="86"	uri="/route/plugin/parameter	S1 2 25"	/>		<!-- Band 3 bypass -->
			<Binding channel="11" note="87"	uri="/route/plugin/parameter	S1 2 25"	/>		<!-- Band 3 bypass -->
			<Binding channel="11" note="88"	uri="/route/plugin/parameter	S1 2 3"		/>		<!-- FX bypass -->


<!-- 	****** LES PRESET 6, 7 ET 8 SONT RESERVES AU MIDI LEARN, OU N'IMPORTE QUOI D'AUTRE...	******
		****** SI VOUS VOULEZ LES UTILISER, VOICI LES VALEURS DE CONTROLEURS A MAPPER : 		******-->

	<!-- PRESET 6 -->

		<!-- Fader (ctl 60) -->

<!--		<Binding channel="11" ctl="60"	uri="..."	/>		-->

		<!-- Encodeurs (ctl 61-68) -->

<!--		<Binding channel="11" ctl="61"	uri="..."	/>
			<Binding channel="11" ctl="62"	uri="..."	/>
			<Binding channel="11" ctl="63"	uri="..."	/>
			<Binding channel="11" ctl="64"	uri="..."	/>
			<Binding channel="11" ctl="65"	uri="..."	/>
			<Binding channel="11" ctl="66"	uri="..."	/>
			<Binding channel="11" ctl="67"	uri="..."	/>
			<Binding channel="11" ctl="68"	uri="..."	/>		-->

		<!-- Push (ctl 91-98) -->

<!--		<Binding channel="11" note="91"	uri="..."	/>
			<Binding channel="11" note="92"	uri="..."	/>
			<Binding channel="11" note="93"	uri="..."	/>
			<Binding channel="11" note="94"	uri="..."	/>
			<Binding channel="11" note="95"	uri="..."	/>
			<Binding channel="11" note="96"	uri="..."	/>
			<Binding channel="11" note="97"	uri="..."	/>
			<Binding channel="11" note="98"	uri="..."	/>		-->


	<!-- PRESET 7 -->

		<!-- Fader (ctl 70) -->

<!--		<Binding channel="11" ctl="70"	uri="..."	/>		-->

		<!-- Encodeurs (ctl 71-78) -->

<!--		<Binding channel="11" ctl="71"	uri="..."	/>
			<Binding channel="11" ctl="72"	uri="..."	/>
			<Binding channel="11" ctl="73"	uri="..."	/>
			<Binding channel="11" ctl="74"	uri="..."	/>
			<Binding channel="11" ctl="75"	uri="..."	/>
			<Binding channel="11" ctl="76"	uri="..."	/>
			<Binding channel="11" ctl="77"	uri="..."	/>
			<Binding channel="11" ctl="78"	uri="..."	/>		-->

		<!-- Push (ctl 101-108) -->

<!--		<Binding channel="11" note="101"	uri="..."	/>
			<Binding channel="11" note="102"	uri="..."	/>
			<Binding channel="11" note="103"	uri="..."	/>
			<Binding channel="11" note="104"	uri="..."	/>
			<Binding channel="11" note="105"	uri="..."	/>
			<Binding channel="11" note="106"	uri="..."	/>
			<Binding channel="11" note="107"	uri="..."	/>
			<Binding channel="11" note="108"	uri="..."	/>		-->


	<!-- PRESET 8 -->

		<!-- Fader (ctl 80) -->

<!--		<Binding channel="11" ctl="80"	uri="..."	/>		-->

		<!-- Encodeurs (ctl 81-88) -->

<!--		<Binding channel="11" ctl="81"	uri="..."	/>
			<Binding channel="11" ctl="82"	uri="..."	/>
			<Binding channel="11" ctl="83"	uri="..."	/>
			<Binding channel="11" ctl="84"	uri="..."	/>
			<Binding channel="11" ctl="85"	uri="..."	/>
			<Binding channel="11" ctl="86"	uri="..."	/>
			<Binding channel="11" ctl="87"	uri="..."	/>
			<Binding channel="11" ctl="88"	uri="..."	/>		-->

		<!-- Push (ctl 111-118) -->

<!--		<Binding channel="11" note="111"	uri="..."	/>
			<Binding channel="11" note="112"	uri="..."	/>
			<Binding channel="11" note="113"	uri="..."	/>
			<Binding channel="11" note="114"	uri="..."	/>
			<Binding channel="11" note="115"	uri="..."	/>
			<Binding channel="11" note="116"	uri="..."	/>
			<Binding channel="11" note="117"	uri="..."	/>
			<Binding channel="11" note="118"	uri="..."	/>		-->


	<!-- Boutons rangée du bas, layer B (note 40-47) -->

    	<Binding channel="11" note="40" action="Editor/select-prev-route" momentary="yes"/>	<!-- Sélectionner piste précédente -->
    	<Binding channel="11" note="41" action="Editor/select-next-route" momentary="yes"/>	<!-- Sélectionner piste suivante -->
		<Binding channel="11" note="42" action="Common/jump-backward-to-mark"/> 			<!-- Marqueur précédent -->
		<Binding channel="11" note="43" action="Common/jump-forward-to-mark"/> 				<!-- Marqueur suivant -->
		<Binding channel="11" note="44" action="Transport/Loop"/>							<!-- Lire la boucle -->
		<Binding channel="11" note="45" function="transport-stop"/>							<!-- Stop -->
		<Binding channel="11" note="46" function="transport-roll"/>							<!-- Play -->
		<Binding channel="11" note="47" uri="/route/solo	S1"/>							<!-- Mettre la piste active en solo -->

</ArdourMIDIBindings>
